LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   chmod/chown and folders :) (https://www.linuxquestions.org/questions/linux-newbie-8/chmod-chown-and-folders-318196/)

chibi 04-28-2005 03:56 PM

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

masand 04-28-2005 04:12 PM

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

chibi 04-28-2005 04:56 PM

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 01:08 AM.