LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Users created with bad permissions (https://www.linuxquestions.org/questions/linux-server-73/users-created-with-bad-permissions-638069/)

SystemOverload 04-26-2008 07:23 PM

Users created with bad permissions
 
Hi,

I'm running CentOS Linux and when I try to create users (actually using the cPanel user creation script, but cPanel have insisted it is a problem with the system), there are some permissions problems with the user's home directory and the user isn't setup properly.

tar: ./public_html: Cannot mkdir: Permission denied
tar: ./public_ftp: Cannot mkdir: Permission denied
tar: .: Cannot utime: Operation not permitted
tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: Error exit delayed from previous errors

[root@bell cptest]# ls -al
total 16
drwx------ 2 root root 4096 Apr 23 22:26 .
drwx--x--x 400 root root 12288 Apr 23 22:26 ..
---------- 1 root root 0 Apr 23 22:26 .bash_profile

I have been told this is a common problem but I haven't found a fix.

unSpawn 04-27-2008 05:03 PM

Quote:

Originally Posted by SystemOverload (Post 3134018)
when I try to create users (actually using the cPanel user creation script, but cPanel have insisted it is a problem with the system), there are some permissions problems with the user's home directory and the user isn't setup properly.

You could test that by trying to set up a user account manually with 'useradd'.


Quote:

Originally Posted by SystemOverload (Post 3134018)
tar: ./public_html: Cannot mkdir: Permission denied

No idea what command caused this.


Quote:

Originally Posted by SystemOverload (Post 3134018)
[root@bell cptest]# ls -al

If you meant this is inside /home/cptest, then /home by default has octal mode 0755 and user-owned homes minimally 0700.


All times are GMT -5. The time now is 09:27 AM.