Skip to main content

Permission to directory via SSH

Comments

5 comments

  • cPanelMichael
    Hello :) Is there a specific reason you require those permissions on the directories? You should not have to modify the default directory permissions in order to upload files via FTP. The default 0755 permissions are recommended for directories with files available to the public. What specific error message are you receiving when attempting to upload files to your account via FTP? Thank you.
    0
  • aristomania
    I require those permissions because Ive tried million times uploading files and each time I get "error 553 you dont have permission to upload" Ive tried everything from changing permissions on cpanel and ftp but nothing.. The only way it seems is changing the permssions to 777 via SSH with chmod -R, and I have to give permissions each time I need to upload to that specific folder... It somehow resets permissions everyday because Im having the same error on the folder wich I gave permission a week ago, now I get the error again... anyway Thanks
    0
  • 24x7server
    Hello, Can you please try to update the correct ownership of your all files and folder and after that try to upload the files. I think there is an issues with the ownership of your files.
    0
  • cPanelMichael
    Feel free to open a support ticket using the URL in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • rachelm
    By any chance did you create the folder via ssh then try to ftp files to it? If so the folder will be owned by root, so 755 would stop the user but 777 would allow it since it's global perms. Solution would be to chown the folder (and any contents) to the site username. Then you should be able to set perms of 755 and upload. Also, if you are running suhosin you might need to change perms for the folder to 750.
    0

Please sign in to leave a comment.