jailkit-users
[Top][All Lists]
Advanced

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

Re: [Jailkit-users] Permission denied errors


From: Olivier Sessink
Subject: Re: [Jailkit-users] Permission denied errors
Date: Tue, 07 Apr 2009 19:54:11 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090318)

Khusro Jaleel wrote:
> Hello,
> 
> I've used the following to create an SFTP jail:
> http://olivier.sessink.nl/jailkit/howtos_sftp_scp_only.html
> 
> This is quite similar to a problem posted by another user last month
> which I don't think was resolved.
> 
> I'm getting the following errors in auth.log when trying to SFTP to an
> sftp chroot jail I've setup on a Debian Etch machine. I have checked
> the permissions on everything and I don't think there is anything
> wrong that I can spot.
> 
> auth.log:
> Apr  7 15:45:08 foobar jk_chrootsh[21586]: path
> /home/sftproot/./home/test_user is setgid
> Apr  7 15:45:08 foobar jk_chrootsh[21586]: now entering jail
> /home/sftproot for user test_user (2010)
> Apr  7 15:45:08 foobar jk_chrootsh[21586]: abort,
> chdir(/home/test_user) failed inside the jail /home/sftproot:
> Permission denied, check the permissions for
> /home/sftproot//home/test_user
> 
> # ls -ld /home/sftproot
> drwxr-x--- 7 root root 4096 2009-04-02 13:53 /home/sftproot/

try
`chmod 0755 /home/sftproot`
`chmod 0755 /home/sftproot/home`
`chmod 0700 /home/sftproot/home/test_user`

regards,
        Olivier




reply via email to

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