[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Jailkit-users] permission problem
From: |
Olivier Sessink |
Subject: |
Re: [Jailkit-users] permission problem |
Date: |
Wed, 08 Nov 2006 08:47:13 +0100 |
User-agent: |
Thunderbird 1.5.0.7 (X11/20060927) |
jstiller wrote:
Hi,
I am trying to setup jailkit so a remote user can access the server
using ssh. Everything seems to be ok except I get the error "Could not
chdir to home directory /home/jail/./home/testuser: Permission denied"
please send
ls -l /
ls -l /home/
ls -l /home/jail/
ls -l /home/jail/home/
in the /home dir are the directories
drwxrwx--- 12 testuser testuser 4096 Nov 7 10:11 testuser
drwxrwx--- 8 root root 4096 Nov 7 15:08 jail
According to the error message there is apermission problem.. can you
tell me what the correct permissions should be.
I usually use 0755 (drwxr-xr-x)
chmod 0755 /home
chmod 0755 /home/jail
chmod 0755 /home/jail/home
It is authenticating the password correcly so up to that pint is is
working. If I enter an incorrect password the error message is
completely different so I feel the login portionis working correctly and
the problem must be with the permissions.
In the /jail/etc/group file is:
I assume you mean /home/jail/etc/group ?
testuser:x:501:
In the /jail/etc/password file is:
testuser:x:501:501::/home/testuser:/bin/bash
In the /etc/passwd file there is a line:
testuser:x:501:501::/home/jail/./home/testuser:/usr/sbin/jk_chrootsh
in the /var/log/messages file are these lines:
Nov 7 17:59:14 localhost jk_chrootsh[23594]: abort, path /home/jail is
setgid
hmm funny, setgid normally shows up in a directory listing as
drwxrws---
setting the permissions as shown above should help.
regards,
Olivier