Server Fault is a question and answer site for system and network administrators. 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 block users from changing directories when they log in via scponly's shell. How can I do that? I need to be able to provide users with their own upload directory that only they can see and read/write. They should not be allowed to execute any code, ie, change directories or the like.

share|improve this question
up vote 2 down vote accepted

chrooted scponly might be what you're looking for.

if you use debian/ubuntu - when installing scponly you will be asked which version you want.

also read here.

share|improve this answer
+1 And you can run dpkg-reconfigure scponly if you're not running the chrooted version – kaerast Jun 6 '10 at 21:16
The scoponly documentation says "if you don't know what chrooting is, don't do it." I don't know what it is-- where's a good place to start looking? – mmr Jun 6 '10 at 21:18
@mmr - in essence making small environment - a jail - out of which process cannot go above [ you just make /some/dir/ to appear as root of filesystem for a process [eg scp server]]. dont worry - just follow the tutorial. – pQd Jun 6 '10 at 21:49

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.