Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-24-2005, 12:07 PM   #1
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?

Old 01-24-2005, 12:11 PM   #2
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, 12:26 PM   #3
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, 08:42 PM   #4
Registered: Aug 2002
Posts: 117

Rep: Reputation: 15
try ...
Old 01-25-2005, 11:48 AM   #5
Registered: Dec 2004
Posts: 145

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


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

All times are GMT -5. The time now is 10:38 AM.

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