LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 08-11-2004, 03:36 PM   #1
tolindsey
LQ Newbie
 
Registered: Jul 2003
Location: Victoria
Distribution: redhat 9
Posts: 9

Rep: Reputation: 0
Restrict users logging in by SSH


I'm still relatively new to Linux, but I'm giving it my best shot!

i'm using Fedora, and the GNOME desktop - if that makes a difference.

I have apache setup with the usual php etc... and ssh setup so users can login to change their website files etc.

What I need to be able to do is restrict these users (somehow) so that they can only access their own folder (home folder would be fine). I've searched the net (including these forums) for a way to do this.. but have only come across very complicated soln's (most related to FTP).

Any advice for me? simple instructions? I'm not worried about malicious users so much, but am more concerned about the stupidity factor.

thanks so much for any help...

L
 
Old 08-11-2004, 05:31 PM   #2
Charalambos
Member
 
Registered: Aug 2004
Location: Switzerland
Distribution: debian
Posts: 149

Rep: Reputation: 15
You can either use tools like jailer, jailtool, chrootjail... to build jails for certain applications,
or you can use chrootssh: http://chrootssh.sourceforge.net/
 
Old 08-11-2004, 07:06 PM   #3
tolindsey
LQ Newbie
 
Registered: Jul 2003
Location: Victoria
Distribution: redhat 9
Posts: 9

Original Poster
Rep: Reputation: 0
how does this look?

thanks for your response... it's given me a better starting place! I found these instructions (Which seems to be fairly easy to follow).

Thoughts?

http://www.brandonhutchinson.com/chroot_ssh.html
 
Old 08-11-2004, 07:11 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
You can also use rssh and scponly to allow only scp/sftp access to a chrooted directory.
 
Old 08-12-2004, 05:17 PM   #5
tolindsey
LQ Newbie
 
Registered: Jul 2003
Location: Victoria
Distribution: redhat 9
Posts: 9

Original Poster
Rep: Reputation: 0
thanks

thanks for the tips..

Got it sorted out using scponly - seems to work well!

L
 
  


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
restrict/allow ssh users mike30188 Linux - Security 2 06-20-2005 09:37 PM
restrict unix users to ~ novaprime Linux - Software 20 01-26-2005 12:41 AM
restrict space for some users in directories CleonII Linux - Security 5 02-25-2004 11:08 AM
Restrict Directories to users with SSH aeruzcar Linux - General 5 09-11-2003 04:28 PM
How to restrict email from users... Supp0rtLinux Linux - Software 1 01-08-2003 04:37 AM


All times are GMT -5. The time now is 03:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration