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

1 Answer 1

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

 
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.