Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What permissions to set

Status
Not open for further replies.

Tison

Programmer
May 12, 1999
216
CH
What permissions do I have to set in order that a user can "cat" a file in a directory but not write or execute it ?
Look at the following file ;
-rw-rw-rw- batch staff logfile
The directory perms are ;
drwxr--r-- batch bin logdir
I would think that a user of fred (in group staff) could read this file but he cannot ?

Any ideas ?
[sig][/sig]
 
[tt]cat[/tt] command can't find the file to start reading it if you don't put [tt]x[/tt] permission in the parent directory.

I hope it works... [sig][/sig]
 
The 'r' permission in the directory lets you 'ls' it. But the 'x' in the directory lets you 'cd' into it. In order to cat files, you have to have permission to &quot;be in&quot; that directory. [sig]<p>Doug Tyre<br><a href=mailto: > </a><br><a href= Information Systems Institute (at UM)</a><br> [/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top