Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-02-2013, 02:25 PM   #1
Registered: Nov 2005
Location: USA
Distribution: Slackware Linux
Posts: 96

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/

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

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

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, 03:08 PM   #2
Registered: Nov 2005
Location: USA
Distribution: Slackware Linux
Posts: 96

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


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 07:45 PM
How to setup SFTP chroot jail for some particular user. jeesun Linux - Security 1 08-09-2011 11: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 09:10 AM
chroot sftp user group bmeckle Linux - Newbie 0 06-02-2004 04:58 PM
chroot sftp user? cliffyman Linux - Security 8 05-08-2003 10:58 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration