![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Awk - to test multiple files "read" permission ? | lokiman | Shell Programming and Scripting | 1 | 02-09-2008 08:10 AM |
| ls while read loop - internal read picking up wrong input | dkieran | Shell Programming and Scripting | 2 | 05-14-2007 12:02 PM |
| Permission file questions--Please read!!! | bobo | UNIX for Dummies Questions & Answers | 4 | 02-10-2007 07:03 PM |
| Read Permission | vineetrocks2005 | UNIX for Dummies Questions & Answers | 9 | 05-22-2006 11:00 AM |
| read line and read next | ariuscy | UNIX for Dummies Questions & Answers | 7 | 09-21-2005 04:04 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
read permission but cant ls -l it.
ok what is the signifigance of the -l that wont let you list the contents of a directory you clearly have access to list files. what am i missing
Code:
[qgatu003]/tmp$ls -l hold hold/file1: Permission denied total 0 [qgatu003]/tmp$ls hold file1 [qgatu003]/tmp$ls -l dr-x---r-- 2 root other 179 Apr 23 09:18 hold edit:: i want to say its because i can not read the inode information from the file. does the system need to pull you to the files current directory in order to gets its full list of required arguments?...... Last edited by Optimus_P; 04-23-2004 at 08:03 AM. |
| Forum Sponsor | ||
|
|
|
|||
|
yeah i know if i add o+x i can list it. but why do you need to be able to enter the directory in order to read its contents is what i am trying to get at.
mabey i am not seeing the big picture or something but if you have read permission on a directory you should be able to list the file in all forms. apparently you need to be able to enter the directory to beable to read its inode information .... which i dont understand as to why. |
|
|||
|
504 perms you can do everything except (useing the command ls):
-R -l -n -o -g -t -p -F -s which is kinda why i brought it up. i mean you obvestly i can get some info from the filesystem abou the file but I cant read the inode info. i can accept you need r-x to list files and its attributes. but its i want to understand why i have to accept it. |
|
||||
|
I assume that this a directory that you don't own so that you are relying the 4 of 504.
The reason is that the stat system call is not working. Remember that a directory is just a list of filenames and inode numbers. Until you stat the the file, there is no way to know its size, owner, group, etc. Why do you have to accept it? I guess you don't. But besides accepting it, what other choices do you see? Switch to another OS? Rewrite the kernel? Lobby for a change? Personally, I'd just live with it... |
|
|||
|
well... i do own it cuz i am the admin but i was just doing an exersize and came across it.
well after reading the man page for stat it just planly layes it out. You need to be able to use/execute the directory in order for the stat function to work. Code:
DESCRIPTION
The stat() function obtains information about the file
pointed to by path. Read, write, or execute permission of
the named file is not required, but all directories listed
in the path name leading to the file must be searchable.
|
|||
| Google The UNIX and Linux Forums |