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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th June 2013, 20:11
Gherc Gherc is offline
Junior Member
 
Join Date: Mar 2012
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default ISPConfig- Jailkit stoped working after Wheezy upgrade

Hello!

Please help!
Upgraded Debian Squeeze To Wheezy from this how to. Everything looks fine but Jailkit in ispconfig no longer working.
I've reinstalled to latest jailkit 2.16, then reconfigured services ISPConfig 3.0.5.2 with update.php .
Created a new user with shh, new site and a new shell user.
When trying sftp
FileZilla drops connectin-
Code:
Error:	Connection closed by server with exitcode 39
Error:	Unable to connect to server
auth.log
Code:
Jun 17 12:20:31 uupis sshd[1972]: Accepted password for tests1t1 from 192.168.88.22 port 63840 ssh2
Jun 17 12:20:31 uupis sshd[1972]: pam_unix(sshd:session): session opened for user tests1t1 by (uid=0)
Jun 17 12:20:31 uupis sshd[1974]: subsystem request for sftp by user tests1t1
Jun 17 12:20:31 uupis jk_chrootsh[1975]: now entering jail /var/www/clients/client10/web14 for user tests1t1 (5010) with arguments -c /usr/lib/openssh/sftp-server
Jun 17 12:20:31 uupis jk_chrootsh[1975]: abort, failed to find user 5010 in /var/www/clients/client10/web14/etc/passwd
Jun 17 12:20:31 uupis sshd[1972]: pam_unix(sshd:session): session closed for user tests1t1
Jun 17 12:20:33 uupis sshd[1899]: pam_unix(sshd:session): session closed for user tests1t1
/var/www/clients/client10/web14/etc/passwd
Code:
root:x:0:0:root:/root:/bin/bash
tests1t1:x:5010:5013:::/bin/bash
/etc/passwd
Code:
web14:x:5010:5013::/var/www/clients/client10/web14/./home/tests1t1:/usr/sbin/jk_chrootsh
tests1t1:x:5010:5013::/var/www/clients/client10/web14/./home/tests1t1:/usr/sbin/jk_chrootsh
ls -l /var/www/clients/client10/web14/etc/passwd
Code:
-rw-r--r-- 1 root root 65 17 11:43 var/www/clients/client10/web14/etc/passwd
ISPConfig Server Config->Jailkit

Code:
Jailkit chroot home -/home/[username]
Jailkit chroot app sections -basicshell editors extendedshell netutils ssh sftp scp groups jk_lsh
Jailkit chrooted applications -/usr/bin/groups /usr/bin/id /usr/bin/dircolors /usr/bin/lesspipe /usr/bin/basename /usr/bin/dirname /usr/bin/nano /usr/bin/pico
Jailkit cron chrooted applications -/usr/bin/php /usr/bin/perl /usr/share/perl /usr/share/php
What has gone wrong?
Jaikit really important for my server
Reply With Quote
Sponsored Links
  #2  
Old 18th June 2013, 09:04
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,416
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

Pleasetry to edit the file:

/var/www/clients/client10/web14/etc/passwd

and replace line:

tests1t1:x:5010:5013:::/bin/bash

with:

tests1t1:x:5010:5013::/home/tests1t1:/bin/bash

and check if its works then again.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 18th June 2013, 09:29
Gherc Gherc is offline
Junior Member
 
Join Date: Mar 2012
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you!

Yes it works! Now It's jailed in tests1t1 home dir.
Is there any idea why ISPConfig creating a new shell user points the wrong directory?
How to correct it so I would not have to edit manually for each new user?
Reply With Quote
  #4  
Old 18th June 2013, 13:24
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,416
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
Default

Quote:
Is there any idea why ISPConfig creating a new shell user points the wrong directory?
The passwd file is created by jailkit and not ispconfig if I remember correctly, but I will have to check that. If its created by ispconfig, we will release a fix.

I tested it here in ISPConfig 3.0.5.2 on debian squeeze with jailkit 2.1.14 and the path is empty but the jail works, so this path was optional till now.So the difference is either the jailkit version or a library or program for wheezy.

Quote:
How to correct it so I would not have to edit manually for each new user?
Is this path set in the local passwd files of old users on your server or is it empty as in the file you posted above?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 18th June 2013, 14:35
Gherc Gherc is offline
Junior Member
 
Join Date: Mar 2012
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Is this path set in the local passwd files of old users on your server or is it empty as in the file you posted above?
Yes path in the local passwd files of old users is empty like- :::/bin/bash
The saddest story Is that I probably will not find fix by my self.. It appeared after wheeze upgrade I did not notice it at right away. Maybe I'll try to re-install Jaikit to 2.1.14 but I doubt.. since before I was also 2.1.14

It is strange that I am the only one with this kind of problem
Reply With Quote
  #6  
Old 18th June 2013, 14:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,416
Thanks: 812
Thanked 5,205 Times in 4,081 Posts
 
Default

I'll add a report in the bugtracker. I will test to update jailkit on our test servers to 2.1.16 to see if its the jailkit version that causes the problems here or if it is related to wheezy components.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
Gherc (18th June 2013)
Reply

Bookmarks

Tags
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
All files gone after changing quota to 0 spynode General 17 19th January 2012 14:41
ISPConfig not working after upgrade to Ubuntu 10.04 jkrell Installation/Configuration 22 26th September 2011 11:07
Safe to upgrade Jailkit to latest version? Hans Installation/Configuration 1 28th April 2010 23:09
ISPConfig 3 upgrade stefanos Installation/Configuration 3 2nd April 2009 14:58
ISP-Ubuntu breezy ispconfig dns email e-mail working finally yellowjelly HOWTO-Related Questions 0 19th November 2005 20:30


All times are GMT +2. The time now is 17:05.


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