chmod/chown and folders :)
Hello,
Simple question for chmod and chown. I want to make it so that users cannot rename a folder because they dont have permission, but all the files -inside- the folder they can go ahead and rwx all they want. so if the folder is called 'protected' and i did: chmod ugo=rx protected/ Because there is no recursive -R in there, the files inside arent affected right? The user could still for instance: mv /protected/another_folder /protected/new_name Would this be correct? (assuming another_folder had ugo=rwx) And the same question for chown: drw-r-xr-x 2 users users 517 Apr 28 12:17 protected/ chown root:root protected/ Because there is no recursive -R in there, the files inside arent affected right? The old user named users could still for instance: mv /protected/another_folder /protected/new_name because the files inside still belonged to them? Thanks for the help :) -Chibi |
i am confused by your question
do u want users to restrict doing some activuty in that directory or allow them and what problem are u facing regards |
I dont want any restrictions inside the directory.
I do want them to have restrictions to the directory itself. So that they cant rename the directory, but keeping it so that they can do whatever they want to the files inside of it. Thanks :) |
All times are GMT -5. The time now is 05:06 AM. |