• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Linux Preventing user from leaving home directory.

Hermes

dziwki kola gramy w lola
Joined
Nov 17, 2007
Messages
1,867
Reaction score
14
Location
Poland
Hello!

I am trying to create a specific user. When this user logs into the FTP/SFTP, he should be automatically redirected to the /home/user directory, and he shouldn't be able to leave this directory and delete/modify files that aren't in the /home/user dir.

Is there any way to do that?

I am using Debian 4.0.

Thanks in advance,
Hermes
 
But I don't want this user to access anything but /home/user directory, just because of security :c

There's one rather easy way - jail user & chroot - but it requires copying libs and other stuff - it's pointless :f.
 
Last edited:
Back
Top