LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-26-2006, 05:55 PM   #1
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Rep: Reputation: 30
directory access


i have a directory with drwx------ perms and there is a sub dir with drwxr-xr-x perm which i cannot access (when not owner)... why??
 
Old 09-26-2006, 05:59 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I believe permissions are heirarchial. So if you don't have access to the parent directory, you won't have access to the child directory either, no matter what the permissions say.
 
Old 09-27-2006, 05:44 AM   #3
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Indeed, pljvaldez, but this hierarchy is based on the "x" (execute) permission bit of the directory.

Directory permissions are:
r => read the contents of the directory (ie the names of the files/subdirs)
w => add/remove files/subdirs
x => search: this allows you to try to access a subdirectory (with it's own permissions)
So, if you don't have x permission, you can't access the subdirectory.

Whenever you access a file / directory by specifying it's full path, all the parent directories (leading up to /) must have "x" bit set.

A hint: please be carefull when setting file/directory permissions, as they are vital to your computer's security.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restrict directory access nazimrj Linux - Newbie 9 09-13-2006 08:49 AM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM
directory access Sc0pE Linux - Newbie 5 08-14-2004 04:44 AM
Access directory from specific IP mikeshn Linux - General 1 12-19-2003 01:57 PM
directory access iquadri1 Linux - Networking 0 09-29-2001 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:19 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
Open Source Consulting | Domain Registration