March 20th, 2011, 12:23 PM
Using root via SSH screws FTP user privs?
Whenever I create, move or copy into the httpdocs (host envio based on plesk installation) -- My FTP user privileges go wacky. For instance I could not delete, rename or upload anything to the directory I created as root in ssh. (All 550 errors when trying to ftp) I am new with Linux, any help is appreciated.
March 20th, 2011, 06:52 PM
When you create things they are owned by whatever user you were acting as. If you were acting as root then any files and directories you create will be owned by root.
You, the normal user and the user you FTP in as, are not root. With Unix permissions, you can't do much to root's stuff. For instance, you can't create files in a directory owned by root.
The solution is simple: don't use root.
To fix what you've done so far, run (as root):
# chown -R yourusername:yourusergroup /path/to/files