What is the difference between read and search permission bits for a directory.
I think to search u need to read the directory am i correct ?.
The read permission on a directory allows listing of its contents. TheQuote:> What is the difference between read and search permission bits for a directory.
readonly/file1 readonly/file2 readonly/file3
bash: cd: readonly: Permission denied
*** SPAM BLOCK: Remove bra before replying! ***
Moshe Jacobson :: http://runslinux.net :: moshe at runslinux dot net
!! FBI Arreseting Programmers? http://www.freesklyarov.org
!! Trust Microsoft Anti-Trust: http://www.anti-dmca.org
While this is true, it's not a very complete answer. It also allows accessQuote:>execute permission allows for entry into the directory.
tools:~#2407% mkdir readonly
tools:~#2408% echo foo > readonly/test.file
tools:~#2409% cat readonly/test.file
tools:~#2410% chmod 444 readonly
tools:~#2411% cat readonly/test.file
cat: cannot open readonly/test.file
tools:~#2412% ls -l readonly/test.file
ls: readonly/test.file: Permission denied
tools:~#2414% /bin/ls -f readonly
. .. test.file
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Does anyone know if it is possible to give a user execute permissions on a
file, but not to let them read what is contained within that file?
The case in question is a script with contains some sensitive data
(password) is required to be run by another user, but I don't want them to
see the text in the file. I have searched for information, but only seem to
have turned up details about directories which can be changed to but the
contents cannot be read.
I have tried suid but it still doesn't seem to work.
Any suggestions would be gratefully accepted.