Sunday, 15 May 2011

linux - Chown not working -



linux - Chown not working -

on ubuntu 12.04, chown command doesn't seem working should

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

running puts out

drwxr-xr-x 11 776 sftponly 4096 feb 17 14:08 other_folder

i need write permissions group, run:

chown -r 776 ./other_folder

then when run ls -al again, output still

drwxr-xr-x 11 776 sftponly 4096 feb 17 14:08 other_folder

chown used alter ownership of file, not alter permissions.

ls -al not showing owns file, permissions.

if root owns files, you'll need chown them properly, before can alter permissions:

chown -r yourname:yourname foldername

then owner can alter permissions:

chmod -r 776 foldername

edit: double checked syntax , seems right, you'll need utilize sudo utilize them.

linux ubuntu permissions chown

No comments:

Post a Comment