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.


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.

  • 1
    +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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.