LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-02-2004, 04:58 PM   #1
bmeckle
Member
 
Registered: Jun 2004
Posts: 60

Rep: Reputation: 15
chroot sftp user group


Ok, I might be as dumb as a post, but I am having some problems getting chroot to work with sftp. I got it working great with plain ftp but sftp doesn't really want to cooperate. I have looked at countless websites that haven't really been all that much help. I read the man pages and the info page and that was about as clear as mud. So I really need some help. This is what I have tried so far.
I found a doc that I thought laid it out. The ftp daemon that I am using is vsftp so I followed the instructions on setting up chroot.

For a sftp chroot
1. get a copy of ssh2 3.2.5 or new. - Done and installed
2. backup original ssh then copy ssh2 files into their place - Done
( these files include - ssh, ssh-add, ssh-agent, ssh-keygen, ssh-askpass ) I have tripple checked these to make sure they are right.
3. vi /etc/ssh2/sshd2_config
ChRootGroups ftpusersgroup
subsystem-sftp internal://sftp-server
4. service xinetd restart

Then I try to sftp and it still shows my entire path (/data/ftp/user) rather than seeing the home dir as root (/).

I have tried restarting the entire server and even putting specific users in the list as ChRootUsers with no luck. Can anyone tell me what I am doing wrong?

Any help at all would be very welcome. Thanks
 
  


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
rssh/sftp chroot problem julz_51 Linux - Security 1 11-01-2005 04:50 PM
Restrict ssh/sftp with chroot? Chowroc Linux - Networking 4 01-25-2005 11:48 AM
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 sftp user? cliffyman Linux - Security 8 05-08-2003 10:58 PM


All times are GMT -5. The time now is 12:16 AM.

Main Menu
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