Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    57
    Likes Received:
    0
    Trophy Points:
    156
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Stefaans

    Stefaans Well-Known Member

    Joined:
    Mar 5, 2002
    Messages:
    456
    Likes Received:
    3
    Trophy Points:
    318
    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 ;)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    68
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Twitter:
    You could use the CHOWN command in root/SSH
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. CaMer0n

    CaMer0n Well-Known Member

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

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

    Thank you
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. sarhosting

    sarhosting Well-Known Member

    Joined:
    Oct 1, 2007
    Messages:
    164
    Likes Received:
    2
    Trophy Points:
    68
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. CaMer0n

    CaMer0n Well-Known Member

    Joined:
    Nov 8, 2004
    Messages:
    57
    Likes Received:
    0
    Trophy Points:
    156
    That fixed it!
    Much appreciated! :) :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice