I use chmod to change the file permissions. But what if I needed to grant full control permission for the logged in user over a directory ?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
migrated from stackoverflow.com Aug 11 '12 at 6:07
|
Did your try
from the directory above the directory you want to change? Be aware that a user can only change permissions of files/directories he owns. If you want to change permissions of a directory and any subdirectories and files you have to use
|
|||
|
|
|
chmod works on files AND directories |
|||
|
|
|
correcting my response : setfacl -m u:jvmohan:rwx directory-name This should set the acl on the directory for the specific user with name jvmohan |
|||||
|
chmod u+rwx mydirand the command seems successful because the console does not give any errors. When I access the folder, I still find some files that does not havexpermission for the current user. What is the reason ? Knowing that this folder is not created by me (the current user). – Jury A Aug 10 '12 at 12:45chmodhas a-Rflag for this. – David Aug 10 '12 at 12:48