HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Jailkit SSH user login fails (http://www.howtoforge.com/forums/showthread.php?t=51493)

outeredge 17th February 2011 19:13

Jailkit SSH user login fails
 
Hi,

Having created a SSH user with Jailkit enabled in the CP, we get the following errors in our Auth log for the server the SSH user is on when trying to connect:

Code:

Feb 16 17:00:01 web-01 jk_chrootsh[14362]: path /var/www/clients/client20/web59/./home/web59 is not owned by user 1026
Feb 16 17:00:01 web-01 jk_chrootsh[14362]: path /var/www/clients/client20/web59/./home/web59 is not owned by group 1024
Feb 16 17:00:01 web-01 jk_chrootsh[14362]: abort, path /var/www/clients/client20/web59/./home/web59 is not owned by 1026
Feb 16 17:00:01 web-01 CRON[14358]: pam_unix(cron:session): session closed for user web59

Should the ./home parts be in there and how can we remove them. We don't use /home just the other path.

Also, the path /var/www/clients/client20/web59/ is owned by root which I believe is how ISPConfig handles things, will this cause any problems?

Thanks

David

falko 18th February 2011 17:28

Which Jailkit version do you use? You should use 2.13: http://www.howtoforge.com/forums/sho...hlight=jailkit

outeredge 18th February 2011 17:55

We're using 2.13, any thoughts? That ./home doesn't look right to me

falko 19th February 2011 17:37

Can you post the output of
Code:

ls -la /var/www/clients/client20/web59/home/
?

The ./home is ok, it just means that the directory is chrooted.

outeredge 19th February 2011 18:51

Sure, here's the output:

Code:

web-01:/home/admin# ls -la /var/www/clients/client20/web59/home/
total 12
drwxr-x--x  3 root  root    4096 Feb 16 14:04 .
drwxr-x--x 12 web59 client20 4096 Feb 16 14:04 ..
drwxr-xr-x  2 root  root    4096 Feb 16 14:04 web59


falko 21st February 2011 00:06

Do you have a user with the user ID 1026 in /etc/passwd? And do you have a group with the group ID 1024 in /etc/groups?

outeredge 21st February 2011 15:21

Hi Falko,

/etc/passwd:

Quote:

web59:x:1026:1024::/var/www/clients/client20/web59/./home/web59:/bin/false
/etc/group

Quote:

client20:x:1024:www-data

till 21st February 2011 15:40

Please run the command:

chown web59:client20 /var/www/clients/client20/web59/home/web59

and try to login again.


All times are GMT +2. The time now is 15:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.