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.

Permissions Problem

Discussion in 'General Discussion' started by stdout, Apr 6, 2004.

  1. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Hi,
    I have a problem.
    We had restored multiple accounts from backups, but it seems a single user owns multiple system files and *some* user files not associated with the user (the user that owns these files is not a reseller, he is merely a shared account).
    Here are some files that are owned by this user.

    /var/spool/mail/* - some user files there
    /etc/valiases/* - some files here
    /etc/vfilters/* - some files there
    /home/*/public_html/* - some files here

    That about sums it up.
    As you can see..these paths are pretty strange.

    Please offer ANY advice that might help fix this asap as some of the users do not have write permissions.


    OH, and to add to this.
    I tried to chown some files, but chown wouldnt WORK! -- YEAH!
    eg:

    root@neptune [/home/stdout]# ls -l /var/spool/mail/ahits
    -rw-rw---- 1 arthamus arthamus 0 Apr 5 07:41 /var/spool/mail/ahits
    root@neptune [/home/stdout]# chown ahits:ahits /var/spool/mail/ahits
    root@neptune [/home/stdout]# ls -l /var/spool/mail/ahits
    -rw-rw---- 1 arthamus arthamus 0 Apr 5 07:41 /var/spool/mail/ahits
    root@neptune [/home/stdout]#
     
  2. stdout

    stdout Well-Known Member

    Joined:
    Apr 10, 2003
    Messages:
    189
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Nelspruit, Mpumalanga, South Africa
    cPanel Access Level:
    Root Administrator
    Please, this is kind of an emergency as some users cannot overwrite/modify thier own files.

    A prompt response would be GREATLY appreciated.

    Thank You.
     
  3. Daemon1

    Daemon1 Well-Known Member

    Joined:
    Nov 26, 2003
    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    6
    This worked for me :

    chown [-R] username filenames

    If you want to do the whole directory then just do :

    chown [-R] newowner *

    Make sure you are in the directory you wish to edit the contents of course...
     
Loading...

Share This Page