jailkit-users
[Top][All Lists]
Advanced

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

[Jailkit-users] permission problem


From: jstiller
Subject: [Jailkit-users] permission problem
Date: Tue, 7 Nov 2006 19:06:36 -0500

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"
 
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.
 
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:
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
Nov  7 17:59:14 localhost jk_chrootsh[23594]: abort, path /home/jail is not a safe jail, check ownership and permissions
Nov  7 17:59:14 localhost sshd(pam_unix)[23593]: session closed for user testuser
 
Please help.
 
Thanks,
Jim

 

reply via email to

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