Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have a user on my Linux NAS box running barebones and I want to setup SCP but without Shell access and I ONLY want it to access one folder. Is this possible?

share|improve this question
up vote 0 down vote accepted

It is possible , You can set the shell of the user to : /usr/lib/openssh/sftp-server

root@host # usermod -s /usr/lib/openssh/sftp-server username

Try to find the location of sftp-server because it may be placed in different location.

share|improve this answer

It looks like this has already been answered before. You might also consider installing rssh.


I inadvertently linked to the question rather than the answer. The new link is to the answer describing how to get the results you're looking for.

share|improve this answer

Your Answer


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.