LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   restricting ssh (https://www.linuxquestions.org/questions/linux-networking-3/restricting-ssh-124379/)

macie 12-09-2003 06:58 PM

restricting ssh
 
I have some users connecting in via ssh to my system but I'm trying to find a way to restrict them to their home directory only. Any suggestions how to proplery set that up will be greatly welcome.


Thx..

:)

colnago 12-09-2003 11:34 PM

I would just set up different groups for each, then go to /home and issue a 'chmod o-rwx *'. This can screw up peoples web pages if you are running a server and they set up their individual pages in a directory like '/home/<user>/public_html'. If so, just run the command recursively and then open the /home/<user> directory and the web page subdirectory. In this case, people will still be able to go in and see what files and dirs are in the users base directory, but they will not be able to open any. This assumes you are not running something like afs too, in which case you would probably not be asking the question and the method is different.

PS, you can just do a 'chmod go-rwx *' if you do not want to set up a different group for each.


All times are GMT -5. The time now is 02:00 PM.