LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 08-11-2003, 11:24 AM   #1
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Question A small question about directory permissions


I have been wondering about this question for a long time. Consider this situation:

There is a directory named DIR-A and it has a sub-directory named DIR-B. If the permission for DIR-A is rwx------ and permissions for DIR-B is rwxrwxrwx. Will other people be able to view and change the contents of DIR-B(as the permissions allow)?

Thanks.

p/s: What I was trying to say is that will permissions for a directory be influenced by the permissions of the directories above it?

Last edited by koyi; 08-11-2003 at 11:25 AM.
 
Old 08-11-2003, 12:08 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Yes and no...

If you have ultra restricted permissions on DIR-A, and it's owned only by 1 person/group (such as root.root) then only root can get in to see/change DIR-B (in the above example, if root.root owned DIR-A then anyone not having root privileges would not be able to enter DIR-A to ever see DIR-B regardless of DIR-B's permissions).

To access a directory you only need the x bit set, so you could give x writes on DIR-A, they could access DIR-A, and then have the ability to enter/read/write in DIR-B.

HTH

Cool
 
  


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
Directory Permissions question sopiaz57 Linux - General 4 06-11-2004 01:44 PM
write permissions for directory - not accidently move/deleted the directory linuxgamer Linux - Newbie 10 12-02-2003 04:04 AM
permissions question... can I make a directory writable from my user account hindenbergbaby Linux - Newbie 9 10-20-2003 05:42 PM
Openldap with small directory very small iholdap Linux - Networking 5 10-04-2003 09:09 AM
/tmp directory too small??? kazi Linux - Newbie 9 03-29-2003 01:46 PM


All times are GMT -5. The time now is 02:26 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