LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2005, 04:56 PM   #1
chibi
Member
 
Registered: Aug 2004
Location: Canada
Distribution: Debian
Posts: 62

Rep: Reputation: 15
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
 
Old 04-28-2005, 05:12 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
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
 
Old 04-28-2005, 05:56 PM   #3
chibi
Member
 
Registered: Aug 2004
Location: Canada
Distribution: Debian
Posts: 62

Original Poster
Rep: Reputation: 15
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

Last edited by chibi; 04-28-2005 at 06:44 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Chown & Chmod swatward Linux - Newbie 2 03-01-2005 01:57 PM
chmod ,chown ,chgrp------------ pal Linux - Newbie 1 02-27-2005 03:49 PM
Arg!! chown /chmod Kanon Linux - Newbie 10 01-16-2005 04:05 PM
Log Chmod and Chown FernandoLozano Linux - Security 5 01-10-2005 10:01 AM
reverse chmod/chown changes demmylls Linux - General 1 02-09-2004 01:16 AM


All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration