MStar
01-05-2004, 11:36 PM
One of our clients suddenly can't overwrite or delete any files that are uploaded in his account.
I logged in via FTP as him, and I can't overwrite, delete, or change permissions on anything.
Anyone have an answer / remedy?
MStar
01-05-2004, 11:37 PM
The file manager in cPanel doesn't appear to be changing file permissions either.
His folders appear to be set at 550.
MStar
01-05-2004, 11:43 PM
How would I go about setting his File Permissions to something like 770 in root, doesn't matter if it's console or anything.
Reddrake
01-05-2004, 11:54 PM
Try this
Run
cd /home
chown -R user.user user [User = username of user]
then cd user
chmod 755 public_html
:) That should fix it up.
LinuXpert
01-05-2004, 11:59 PM
File uploaded by PHP, CGI scripts (without suexec) is owned by user/group nobody, you can't delete or overwrite it unless it's world-writable.
>How would I go about setting his File Permissions to something like 770 in root
chmod 770 filename
or if you want to chmod 770 all files use:
chmod 770 *
However chmod'ing 770 doesn't help if his files are till owned by user/group nobody. You can change the owner of a file by using:
chown userID.groupID filename (use * instead of filename for all files)
MStar
01-05-2004, 11:59 PM
Yep, It Worked!
Now, any idea why it would revert to 550?
AFAIK noone touched permission settings...
Oh, and he uploaded via PHP.
It just recently turned to 550.
LinuXpert
01-06-2004, 12:05 AM
>Now, any idea why it would revert to 550?
Alll files or only newly uploaded files?
Bright-Byte
01-06-2004, 12:14 AM
:) Hi MStar,
This might help with your cPanel File manager problem:
http://forums.cpanel.net/showthread.php?s=&threadid=17332&highlight=change+permissions