The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

messed up file permissions

Discussion in 'General Discussion' started by mikro1n5, Jan 29, 2006.

  1. mikro1n5

    mikro1n5 Member

    Joined:
    Jun 25, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    Hi there,
    I am running a Fedora OS on a VDS and using WHM 10.8.0 cPanel 10.8.1-R113
    Fedora i686 - WHM X v3.1.0.

    When i try to add a user acct, i get the following error:
    Code:
    Changing password for abcabcc
    Password for abcabcc has been changed
    Keeping Shell Access (y)
    Copying skel files from /root/cpanel3-skel/ to /home/abcabcc/
    
    
    Could not create /home/abcabcc/mail/inbox: Permission denied 
    
    Added Entries to httpd.conf
    Bind reconfiguring on xeon using rndc
    Added Named File
    /home/abcabcc/public_html does not exist or is not a directory! 	
    
    
    Restarting apache
    Ftp Password Files synced
    Notifcation => xxx@xxx.com via EMAIL [level => 3]
    Vhost Passwords synced
    wwwacct creation finished
    
    Account Creation Complete!!!
    
    This is what the user folder looks like:
    Code:
    root@xeon [/home/abcabcc]# ls -la
    total 8
    drwx------   2 root root 4096 Jan 29 21:23 ./
    drwx--x--x  28 root root 4096 Jan 29 21:23 ../
    ----------   1 root root    0 Jan 29 21:29 .bash_logout
    
    
    Also when i create any user acct in ssh, it assigns root ownership. I tried changing it manually using chown and chgrp, and it still remains root ownership:
    Code:
    root@xeon [/home]# ls -la
    total 112
    drwx--x--x  28 root     root     4096 Jan 29 21:23 ./
    drwxr-xr-x  20 root     root     4096 Jan  3 01:59 ../
    drwxr-xr-x   5 root     root     4096 Nov 24 16:14 .cpan/
    drwx------   6 Nako     Nako     4096 Jan  8 13:32 Nako/
    drwx------   2 root     root     4096 Jan 29 19:43 aaron/
    drwx------   2 root     root     4096 Jan 29 21:23 abcabcc/
    drwx------   2 root     root     4096 Jan 29 20:46 abctest/
    drwx------  10 alex     alex     4096 Jan 29 19:55 alex/
    drwx--x--x  16 chandro  chandro  4096 Jan 29 19:36 chandro/
    drwx------   9 chompi   chompi   4096 Jan 27 16:46 chompi/
    drwx--x--x  15 corps    corps    4096 Jan 29 21:12 corps/
    drwx--x--x  14 coyote   coyote   4096 Jan 28 14:28 coyote/
    drwxr-xr-x   3 root     root     4096 Nov 24 15:14 cpins/
    drwx------   2 root     root     4096 Nov 25 12:11 cprestore/
    dr-xr-xr-x   8    32019    32019 4096 Jan 29 19:11 cristian/
    drwx------  12 daimon   daimon   4096 Jan 25 01:41 daimon/
    drwx--x--x  10 eggdrop  eggdrop  4096 Jan  8 19:44 eggdrop/
    drwx--x--x   6 psybnc   psybnc   4096 Dec 22 14:24 psybnc/
    drwx------   6 slash    slash    4096 Jan  2 01:02 slash/
    drwx--x--x  11 slashh   slashh   4096 Jan 18 21:15 slashh/
    drwx------   2 root     root     4096 Jan 29 19:07 staff/
    drwx--x--x  10 suspensi suspensi 4096 Jan 29 20:23 suspensi/
    drwx--x--x  12 tocomoch tocomoch 4096 Jan 29 21:33 tocomoch/
    drwx------   2 root     root     4096 Jan 21 15:37 topjoven/
    drwx------   8 root     root     4096 Dec 21 02:13 virtfs/
    drwx------   3 webadmin webadmin 4096 Nov 24 17:21 webadmin/
    drwx--x--x  16 wolaa    wolaa    4096 Jan 29 03:40 wolaa/
    drwx--x--x  11 xpitufo  xpitufo  4096 Jan  8 20:53 xpitufo/
    

    Code:
    root@xeon [/home]# chown -fR abcabcc abcabcc/
    root@xeon [/home]# ls -la
    total 112
    drwx--x--x  28 root     root     4096 Jan 29 21:23 ./
    drwxr-xr-x  20 root     root     4096 Jan  3 01:59 ../
    drwxr-xr-x   5 root     root     4096 Nov 24 16:14 .cpan/
    drwx------   6 Nako     Nako     4096 Jan  8 13:32 Nako/
    drwx------   2 root     root     4096 Jan 29 19:43 aaron/
    drwx------   2 root     root     4096 Jan 29 21:23 abcabcc/
    drwx------   2 root     root     4096 Jan 29 20:46 abctest/
    drwx------  10 alex     alex     4096 Jan 29 19:55 alex/
    



    Clients ( whose ownership is root) also complains they get the following error when they ssh in:

    Code:
    login as: cristian
    cristian@208.53.x.x's password:
    Could not chdir to home directory /home/cristian: Permission denied
    -bash: /home/cristian/.bash_profile: Permission denied
    -bash-2.05b$ 
    

    i have run /scripts/upcp --force multiple times and even switched form stable to release build. Can any1 pls help me out
     
  2. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    Have your tried chown user:user usrer -R, do you get any errors??
    Also Cpanel does not work at it best with i686 and if it is FC 5 then your problems have just started.
     
  3. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    If you are on a VPS the key lies in the 'quotaugidlimit' QOS setting in Virtuozzo. You need to execute the below command on the main VPS server:-

    vzctl set <VEID> --quotaugidlimit 500 --save
    where,
    <VEID> is the id of the VPS.
    500 << you can set any number.

    As I guess you wont have the access to the main VPS server, you will have to ask your Hosting company to do it for you.
     
  4. mikro1n5

    mikro1n5 Member

    Joined:
    Jun 25, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Canada
    I doubt its FC 5 coz last time i checked , the DC only provided fc3 vds template


    Shekhar, i will pass that info to the DC and see if that will help

    Thanks
     
Loading...

Share This Page