Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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
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.