Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-22-2006, 02:03 AM   #1
Registered: Jan 2005
Location: Noscut, Arizona
Distribution: Ubuntu 10.04
Posts: 83

Rep: Reputation: 15
jailkit issues

k well i followed all the directions on the jailkit page and still no luck the jails setup just when i goto login via ssh user gets kicked out and localhost jk_chrootsh[6614]: abort, path /home/jail/./home/user is not owned 1002:100
in /var/log/auth.log
Old 01-22-2006, 02:30 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,289

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
The user's home directory in the jail must be owned by the user and writeable only by him. It sounds like this is the case. I'm assuming that the user trying to login has UID 1002. Check the ownership of his home directory and that the /etc/passwd and /etc/group files have the correct UID for the user.
Old 01-22-2006, 02:35 AM   #3
Registered: Jan 2005
Location: Noscut, Arizona
Distribution: Ubuntu 10.04
Posts: 83

Original Poster
Rep: Reputation: 15
yup the ids are correct
Old 01-22-2006, 05:06 AM   #4
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I have not created a chrooted account yet so I am talking through my *^&^. However, that isn't going to stop me.

I believe that you need to set up a partial image of the real file system in the jail. That partial image has whatever directories and files are required by the jailed process to run. The files in the jail should be stripped down, though. So if you wanted to keep an ftp account in a jail you might set it up like this.


In this system the /jail/etc directory would have a stripped version of the passwd, group, and shadow files. These three files would only have entries for the ftp daemon account. Then the /jail/bin would have a static image of the ftp daemon binary such as vsftpd. (Static image means that all of the required library modules are compiled into the binary.) THESE files in /jail/etc have to have the proper permissions to allow the jailed account to read them.

Or I could be wrong.


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
iso issues, icewm issues +_+ Linux - Newbie 2 08-23-2005 10:50 AM
X11 TTF Issues; OOo Font Issues Kenji Miyamoto Slackware 2 05-27-2005 06:30 PM
New to linux, so so lost, auto mounting issues, permissions issues slowhand22 Linux - Newbie 2 02-10-2005 09:41 AM
CD-ROM issues, or IDE issues? GAVollink Linux - Hardware 0 10-16-2003 03:04 PM
Sound issues + Mouse wheel issues matt3333 Slackware 2 10-12-2003 03:09 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:51 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