2 Apr
2002
2 Apr
'02
10:15
Hi, How can I do a chroot when a user login in the server? My idea is that when somebody logs in (with ssh) he/she can't get access to my files. What about editing a script that when it makes a chroot, finaly runs the correct shell? That's creating a new shell that only includes the line "chroot ~" and finally runs sh. When I try it, it returns me that I have no permision. Is it a good idea? I'm new in linux world, and i supose it's a very simple question, but i don't find anything in manuals or texts... Thanks