LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-24-2005, 11:07 AM   #1
Chowroc
Member
 
Registered: Dec 2004
Posts: 145

Rep: Reputation: 15
Restrict ssh/sftp with chroot?


I want to make some users to be chrooted when he ssh/sftp. I haven't find these parameters in sshd_config. How can I achieve that?

thanks.
 
Old 01-24-2005, 11:11 AM   #2
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
you mean you wanted to let them have root access when they ssh? why not give them the root password, and let them su?

but why would you want to open up your system like that? what are you trying to accomplish?
 
Old 01-24-2005, 11:26 AM   #3
Chowroc
Member
 
Registered: Dec 2004
Posts: 145

Original Poster
Rep: Reputation: 15
I mean chroot to a certain directory, for example, make /home/USER or /mnt/SSH as the root directory(/) of those users when they ssh/sftp, so they can't chdir(cd) and browse(ls) other directories of the system.

for exmaple, if chroot to /home/USER, they can't:
# cd ../
# ls ../
Because /home/USER is their root dir!
 
Old 01-24-2005, 07:42 PM   #4
BinaryBob
Member
 
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
try ...
http://www.debian.org/doc/manuals/se...sh-env.en.html
 
Old 01-25-2005, 10:48 AM   #5
Chowroc
Member
 
Registered: Dec 2004
Posts: 145

Original Poster
Rep: Reputation: 15
Thank you. I think this is what I want.
 
  


Reply



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
chroot sftp user group bmeckle Linux - Newbie 0 06-02-2004 03:58 PM
sftp + chroot ... almost schwing Linux - Software 1 10-26-2003 08:31 PM
Sftp and chroot axman Linux - Security 4 10-02-2003 04:51 PM
chroot jail sftp users f1uke Linux - Security 1 07-28-2003 10:29 AM
chroot sftp user? cliffyman Linux - Security 8 05-08-2003 09:58 PM

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

All times are GMT -5. The time now is 05:39 PM.

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