1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2010
    Rep Power

    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.

    Thank you.
  2. #2
  3. Impoverished Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Washington, USA
    Rep Power
    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

IMN logo majestic logo threadwatch logo seochat tools logo