Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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.