Does not work

On Ubuntu 12.04, the chown command doesn't seem to work as if it should

root @server: / var / www / folder / # ls -al

Running this launches

drwxr-xr-x 11 776 sftponly 4096 17 Feb 14:08 Other_Folder

I need write permissions for the group, so I run:

chown -R 776./Other_Folder

Then when I ran ls -al again, the output is still

drwxr-xr-x 11 776 sftponly 4096 17 Feb 14:08 Other_Folder

+3


source to share


1 answer


chown

used to change ownership of a file, not to change access rights.

ls -al

doesn't show you who owns the file, only its permissions.

If root owns these files, you will need chown

them correctly before you can change their permissions:

chown -R yourname:yourname folderName

      



Then, as owner, you can change your permissions:

chmod -R 776 folderName

      

Edit: I've double checked the syntax and it looks like he's right, you probably need to use sudo to use them.

+13


source







All Articles