Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have read that if folder has only x set permission to execute it actually means that you are permitted to search this directory. So how to search it?

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

You misunderstand. “Search” permission is a bit of a misnomer; if you have execution permission but not read permission on a directory, you can access a file in this directory only if you know its name. That is, given a name, you can search the file with this name (and, more importantly, you can access the file that you find). You do that in the usual way, by accessing the file directoryname/filename. You can't browse the list of entries in the directory, so you can't make more advanced searches such as pattern matching. That would require the read permission; the read permission is precisely what lets you browse the list of entries in the directory.

See also Why do directories need the executable (X) permission to be opened?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.