#1  
Old 14th February 2011, 01:55
denmaddog denmaddog is offline
Junior Member
 
Join Date: Feb 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation Jailkit not working ISPConfig

I have setup my server based on tutorial Howto perfect server ISPConfig Ubuntu 10.10, but Jailkit isn't working. When I add shell user to some site and choose "Jailkit"( options are "None" and "Jailkit" ) option and then login via ssh as that user, the user can browse all system. Outputs are:

tail -f /var/log/auth.log

Feb 12 16:58:43 www sshd[4370]: Accepted password for bojana from 10.13.1.56 port 2128 ssh2
Feb 12 16:58:43 www sshd[4370]: pam_unix(sshd:session): session opened for user bojana by (uid=0)
Feb 12 16:58:44 www sshd[4370]: pam_unix(sshd:session): session closed for user bojana

/etc/passwd

web3:x:5006:5005::/var/www/clients/client1/web3/./home/web3:/bin/false

bojana:x:5006:5005::/var/www/clients/client1/web3/./home/bojana:/bin/bash

/etc/init.d/jailkit restart

Stopping jailkit: jk_socketd/usr/sbin/jk_socketd: no process found

done.

Starting jailkit: jk_socketdversion 2.13, no sockets specified in configfile /etc/jailkit/jk_socketd.ini or on commandline, nothing to do, exiting...

done.

It seems like Jailkit is not properly configured. I tried updating ISPConfig and reconfiguring services but problem remains.

Please can you help me solve this.


Zeljko
Reply With Quote
Sponsored Links
  #2  
Old 14th February 2011, 10:02
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,509
Thanks: 815
Thanked 5,269 Times in 4,130 Posts
Default

The jailkit daemon is not used, so its ok that it does not start.

Regarding the login issue, the user bojana uses a wrong shell. Have you edited anything in the /etc/passwd file manually or did you change any settings of the user bojana manually on the shell?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 14th February 2011, 11:02
denmaddog denmaddog is offline
Junior Member
 
Join Date: Feb 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Till,

I haven't changed anything manualy...I will add new shell user now and post what happend in /etc/passwd


Tnx.
Reply With Quote
  #4  
Old 14th February 2011, 11:07
denmaddog denmaddog is offline
Junior Member
 
Join Date: Feb 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After adding new testuser this is the line in /etc/passwd

testuser:x:5006:5005::/var/www/clients/client1/web3/./home/testuser:/bin/false

And I cannot login to server with putty ... putty just crashes ( disapear ).

root@www:~# tail -f /var/log/auth.log
Feb 14 11:04:20 www sshd[10294]: Accepted password for testuser from 192.168.13.202 port 3756 ssh2
Feb 14 11:04:20 www sshd[10294]: pam_unix(sshd:session): session opened for user testuser by (uid=0)
Feb 14 11:04:20 www sshd[10294]: pam_unix(sshd:session): session closed for user testuser
Reply With Quote
  #5  
Old 14th February 2011, 11:13
denmaddog denmaddog is offline
Junior Member
 
Join Date: Feb 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If I change the shell from /bin/false to /usr/sbin/jk_chrootsh in /ets/passwd I got this in /var/log/auth.log

Feb 14 11:10:34 www sshd[10702]: Accepted password for testuser from 192.168.13.202 port 3882 ssh2
Feb 14 11:10:34 www sshd[10702]: pam_unix(sshd:session): session opened for user testuser by (uid=0)
Feb 14 11:10:34 www jk_chrootsh[10770]: now entering jail /var/www/clients/client1/web3 for user testuser (5006)
Feb 14 11:10:34 www jk_chrootsh[10770]: abort, failed to get user information in the jail for user ID 5006: Success, check /var/www/clients/client1/web3/etc/passwd
Feb 14 11:10:34 www sshd[10702]: pam_unix(sshd:session): session closed for user testuser

Any idea?
Reply With Quote
  #6  
Old 14th February 2011, 11:18
denmaddog denmaddog is offline
Junior Member
 
Join Date: Feb 2011
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I assume ISPConfig/Jailkit should make some shanges to /var/www/clients/client1/web3/etc/passwd and group file, but those files are empty ...

I'm getting desperate
Reply With Quote
Reply

Bookmarks

Tags
ispconfig, jailkit, jailkit problem

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 16:03
The autoresponse is not working with ISPConfig 3.0.1.4 voltron81 Installation/Configuration 4 13th October 2009 13:03
ISPConfig 3.0.0.7 Beta released till General 78 24th December 2008 11:47
ISPConfig 3.0.0.5 Beta Released till General 77 23rd July 2008 12:14
Working through the ISPConfig source code catdude General 1 25th August 2007 08:38


All times are GMT +2. The time now is 07:52.


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