LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-02-2013, 01:25 PM   #1
arpanetguru
Member
 
Registered: Nov 2005
Location: USA
Distribution: Slackware
Posts: 80

Rep: Reputation: 0
Create sftp user and chroot


Thanks for taking the time to view this thread.

I'm running into problems creating a user and chroot-ing them to a specific folder.

I have created the user jdoe and modified the sshd_config accordingly, as well as set the permissions of the root folder to root:root and the folder I want the user to be jailed in to jdoe:jdoe. Also, I created a folder /var/www/vhost/www.foobar.org/

The permissions of /var/www/vhost are root:root and the permissions of the /var/www/vhost/www.foobar.org are jdoe:jdoe.

The home directory listed in the passwd file for jdoe is /var/www/vhost/www.foobar.org/

The user is able to log in, however they are able to navigate to the root of the system /

What have I missed? Thank you.
 
Old 12-02-2013, 02:08 PM   #2
arpanetguru
Member
 
Registered: Nov 2005
Location: USA
Distribution: Slackware
Posts: 80

Original Poster
Rep: Reputation: 0
After some tinkering I was able to solve the issue myself. I set the permissions to the directory jdoe:sftp-group. Thank you
 
  


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
SFTP logging for Chroot on CentOS 6.2 with openssh-5.3 not working (internal-sftp) RatherBFishin Linux - Server 1 08-30-2012 06:45 PM
How to setup SFTP chroot jail for some particular user. jeesun Linux - Security 1 08-09-2011 10:58 PM
how to create sftp user only in red hat 4 not ftp user ..only sftp user princeu28 Linux - Newbie 1 10-14-2008 08:10 AM
chroot sftp user group bmeckle Linux - Newbie 0 06-02-2004 03:58 PM
chroot sftp user? cliffyman Linux - Security 8 05-08-2003 09:58 PM


All times are GMT -5. The time now is 10:14 PM.

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