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