Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th February 2011, 19:13
outeredge outeredge is offline
Member
 
Join Date: Oct 2010
Posts: 34
Thanks: 3
Thanked 3 Times in 3 Posts
Question 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
Reply With Quote
Sponsored Links
  #2  
Old 18th February 2011, 17:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

Which Jailkit version do you use? You should use 2.13: http://www.howtoforge.com/forums/sho...hlight=jailkit
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th February 2011, 17:55
outeredge outeredge is offline
Member
 
Join Date: Oct 2010
Posts: 34
Thanks: 3
Thanked 3 Times in 3 Posts
Default

We're using 2.13, any thoughts? That ./home doesn't look right to me
Reply With Quote
  #4  
Old 19th February 2011, 17:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 19th February 2011, 18:51
outeredge outeredge is offline
Member
 
Join Date: Oct 2010
Posts: 34
Thanks: 3
Thanked 3 Times in 3 Posts
Default

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
Reply With Quote
  #6  
Old 21st February 2011, 00:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
Default

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?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 21st February 2011, 15:21
outeredge outeredge is offline
Member
 
Join Date: Oct 2010
Posts: 34
Thanks: 3
Thanked 3 Times in 3 Posts
Default

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
Reply With Quote
  #8  
Old 21st February 2011, 15:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 37,045
Thanks: 841
Thanked 5,661 Times in 4,468 Posts
 
Default

Please run the command:

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

and try to login again.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
ispconfig3, jailkit, ssh

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
jailkit not working on ISPconfig v 3.0.2 Debian Lenny jwlinux General 14 5th May 2011 17:03
Auth.log question spikes Server Operation 0 12th December 2010 22:24
Vhosts...conf not synced to changes crypted General 50 24th April 2010 01:54
Dovecot fails to deliver to all mail clients zwelabantu Installation/Configuration 3 19th June 2009 17:57
can't login user account(s) elloydaz General 2 20th October 2008 06:56


All times are GMT +2. The time now is 10:11.


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