I want to create an user inmy ubuntu server, but this user CANNOT read outside his /home/user how can i do?

link|improve this question
We need more information. Why do you want to keep him in $HOME? Is this for ssh access? ftp? sftp? – Alex Holst Sep 16 '11 at 20:12
yes exactly..... for ssh access – user94956 Sep 16 '11 at 20:16
feedback

migrated from stackoverflow.com Sep 16 '11 at 20:00

This question came from our site for professional and enthusiast programmers.

closed as not constructive by Zoredache, WesleyDavid, Scott Pack, Ward, Iain Sep 17 '11 at 16:16

This question is not a good fit to our Q&A format. We expect answers to generally involve facts, references, or specific expertise; this question will likely solicit opinion, debate, arguments, polling, or extended discussion. See the FAQ for guidance on how to improve it.

2 Answers

You can use a popular jailing script written in python. Check it at the address: http://lshell.ghantoos.org/

link|improve this answer
feedback

Essentially, you want chrooted accounts. Here is a howto:

http://www.howtoforge.com/chrooted-ssh-sftp-tutorial-debian-lenny

More information can be found in the sshd_config's man page:

http://www.openbsd.org/cgi-bin/man.cgi?query=sshd_config&sektion=5

link|improve this answer
feedback