jailkit-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Jailkit-users] Beginner - Problems creating jail


From: dev
Subject: Re: [Jailkit-users] Beginner - Problems creating jail
Date: Thu, 03 Jan 2008 12:03:57 +0100

Hello Kevin, welcome aboard.
Getting this message in /var/log/auth
Jan  2 23:57:49 Sudarshan jk_chrootsh[12975]: abort, path
/home/jail/./home/kyle is not a directory
Relevant entries in my /etc/passwd are:
kyle:x:1001:1001::/home/jail/./home/kyle:/usr/sbin/jk_chrootsh

[...]
Both the /home/jail and /home/kyle directories exist:
drwxr-xr-x 10 root      root      4096 2008-01-02 23:42 jail
drwxr-xr-x  2 kyle      kyle      4096 2008-01-02 23:28 kyle

This looks ok. However /home/kyle must be within /home/jail (because you're jailing kyle within the jail). So move your directory /home/kyle to within home/jail, then you will have the directory /home/jail/home/kyle and it should run just fine. If you're used to linux/unix-style ways of adressing directories you will be aware that a "." has the meaning of "this directory/the current directory", so /home/jail/./home/kyle is just an other way of saying /home/jail/home/kyle. There is of course a deeper reason why jailkit does that. If you're interested in it, dig yourself deeper into jailkit (man pages) or into some old mailing list posts.
Have a nice day,
Stephen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]