Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to restrict access to certain directories to my ssh users but allow them to read files by known path from there(mostly it's meant to be done by applications). How is that possible? Are there easy ways? Thank you.

share|improve this question
up vote 4 down vote accepted

Shouldn't be enough to chmod -r /certain/directories?

share|improve this answer
thanks that should do the trick! – user34520 Apr 17 '10 at 23:30

Directories have to have +x permissions in order of someone to read files from within via exact path.

share|improve this answer
This is wrong. Without the x-permission you cannot access files in the directory. (Well, I find the things happening w/o the exec permission kind of strange, but…) Listing files, as the OP asked, requires the r-permission. – DerMike Jul 13 '13 at 9:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .