LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-09-2003, 06:58 PM   #1
macie
Member
 
Registered: Oct 2003
Location: /dev/null
Posts: 33

Rep: Reputation: 15
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..

 
Old 12-09-2003, 11:34 PM   #2
colnago
Member
 
Registered: Nov 2003
Location: Canada
Distribution: ArchLinux
Posts: 324

Rep: Reputation: 30
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.

Last edited by colnago; 12-09-2003 at 11:36 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricting SSH logins. bullium Linux - Security 3 05-10-2005 01:15 AM
Restricting SSH access by IP sooner5150 Linux - Security 3 11-18-2004 11:09 AM
Restricting SFTP, SSH Remote Login majicrobot Linux - Security 1 09-20-2004 10:54 AM
restricting ssh users from certain programs/files nixel Linux - Security 5 05-13-2004 12:54 AM
Restricting SSH Access ErocM Linux - Security 4 02-20-2004 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration