Syntax to change chmod in ssh
I just need to change the permissions on one folder to chmod 777. The web host said I can't use ftp for this as Linux so need to use ssh. I'm using a program called PuTTY to do this, but when I put in:
chmod 777 courses/admin
(admin is the folder whose permission I want to change)
it comes back as 'file not found'.
How should I be writing the command? Apologies, I'm out of my depth, but it's only one thing I want to change.
Many thanks in advance for any help.
-
You want to do chmod 777 /full/path/to/the/file
are you modifying the permissions of a file that's visible within the file manager? If so you can change the permissions of the file through cPanel>>Files>>File Manager. Thanks!0 -
OK, thanks for quick reply. I tried that and it was not rejected as before, but the permissions had not changed when I checked. For the cPanel file manager, how do I access that? Thanks 0 -
If you use Filezilla (or many other FTP programs) you can choose properties for the folder (in the FTP client) and change the permissions from there. 0 -
If you use Filezilla (or many other FTP programs) you can choose properties for the folder (in the FTP client) and change the permissions from there.
Tried that. It works for individual files, but not a folder. Something to do with server being Linux and not windows. The provider said need to use ssh, but support not great and my knowledge pretty limited. Cheers anyway.0 -
OK, thanks for quick reply. I tried that and it was not rejected as before, but the permissions had not changed when I checked. For the cPanel file manager, how do I access that? Thanks
You'd access through cPanel by going to cPanel -> Files -> File Manager as I indicated previously.0
Please sign in to leave a comment.
Comments
5 comments