Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-24-2005, 11:07 AM
|
#1
|
|
Member
Registered: Dec 2004
Posts: 145
Rep:
|
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.
|
|
|
|
01-24-2005, 11:11 AM
|
#2
|
|
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154
Rep:
|
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?
|
|
|
|
01-24-2005, 11:26 AM
|
#3
|
|
Member
Registered: Dec 2004
Posts: 145
Original Poster
Rep:
|
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!
|
|
|
|
01-24-2005, 07:42 PM
|
#4
|
|
Member
Registered: Aug 2002
Posts: 117
Rep:
|
|
|
|
|
01-25-2005, 10:48 AM
|
#5
|
|
Member
Registered: Dec 2004
Posts: 145
Original Poster
Rep:
|
Thank you. I think this is what I want.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:38 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|