Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-11-2003, 10:24 AM   #1
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)?


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 10:25 AM.
Old 08-11-2003, 11:08 AM   #2
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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.




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

All times are GMT -5. The time now is 02:55 AM.

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