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.

FTP upload gives 'permission denied' error, ever since server move

Discussion in 'General Discussion' started by CaMer0n, Oct 3, 2007.

  1. CaMer0n

    CaMer0n Well-Known Member

    Joined:
    Nov 8, 2004
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    hi

    I recently migrated to a new host, but am finding that all the FTP accounts no longer allow the users to upload files or create directories etc. (but they can login).

    Can someone please explain to me how to correct this issue?
    I'm assuming it has something to do with folder ownership or permissions?

    Thanks in advance.
    Cameron
    ps: I am on a dedicated machine and have shell access.
     
  2. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    451
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Vancouver, Canada
    Yes, it will be something related to permissions of ownership. We use PhpSuexec on our servers, and in that scenario the public_html directory's ownership is typically username:nobody, and all files and directories inside it are username:username. Directory permissions are generally 755.

    I do not know what the ownership and permissions should be when not using PhpSuexec, sorry.

    I hope this helps ;)
     
  3. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    You could use the CHOWN command in root/SSH
     
  4. CaMer0n

    CaMer0n Well-Known Member

    Joined:
    Nov 8, 2004
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
    thanks, but could you be a little more specific?

    How does one use it, and what are the correct variables to use?

    Thank you
     
  5. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    Of course

    Use this command in SSH root

    chown -R group target files/folders

    If you get stuck type chown - help

    I hope this helps.
     
  6. CaMer0n

    CaMer0n Well-Known Member

    Joined:
    Nov 8, 2004
    Messages:
    59
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page