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 20th October 2011, 07:31
LTxda LTxda is offline
Junior Member
 
Join Date: Oct 2011
Posts: 15
Thanks: 4
Thanked 2 Times in 2 Posts
Question Jailkit SSH user not chrooted...buy why?

I'm learning how to use ISPConfig3 and am having a problem with setting up a chrooted ssh user. Not sure if I've done something wrong, missed something or something is broken.

Here are the steps I've taken:

- Created a new client
- Created a new website and associated it with the client created
- Created an ssh user and specified Chroot Shell for the account as "Jailkit".

I'm able to ssh into the server but am not chrooted. I'm able to traverse the entire file system.

I've done some searching and it seems that there might be a bug where the shell isn't being setup correctly in /etc/passwd.

web4:x:5004:5006::/var/www/clients/client2/web4:/bin/false
lt0001sshuser1:x:5004:5006::/var/www/clients/client2/web4:/bin/bash

Is it safe to assume that the two lines extracted from the passwd file are incorrect and should reflect as follows for this to work properly?...

web4:x:5004:5006::/var/www/clients/client2/web4:/bin/false
lt0001sshuser1:x:5004:5006::/var/www/clients/client2/web4:/usr/sbin/jk_chrootsh

Thank you in advance for any help. I don't want to start experimenting at this stage by changing things around...especially since this is my first experience with ISPConfig.

Last edited by LTxda; 20th October 2011 at 07:56.
Reply With Quote
Sponsored Links
  #2  
Old 20th October 2011, 09:17
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,486
Thanks: 813
Thanked 5,256 Times in 4,121 Posts
Default

Your guess is right, the line in /etc/passwd is wrong as it contains the wrong shell. Please try to deactivate the shell user and then activate it again and check /etc/passwd after a few minutes if the shell is correct then.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following 2 Users Say Thank You to till For This Useful Post:
ffs123 (3rd November 2011), LTxda (20th October 2011)
  #3  
Old 20th October 2011, 17:34
LTxda LTxda is offline
Junior Member
 
Join Date: Oct 2011
Posts: 15
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Thank you. That did the trick.

I'll try to remember to test every shell user setup to ensure chroot was properly initiated.
Reply With Quote
  #4  
Old 20th October 2011, 17:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,486
Thanks: 813
Thanked 5,256 Times in 4,121 Posts
Default

Most likely this has been fixed already in 3.0.4 beta, as there was a similar problem that we adressed. If you encounter that problem again with 3.0.4 final, please make a post in the bugtracker so we can check that again.
__________________
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:
ffs123 (3rd November 2011)
  #5  
Old 20th October 2011, 17:43
LTxda LTxda is offline
Junior Member
 
Join Date: Oct 2011
Posts: 15
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

Understood and will do. I'll be using this feature a lot and will expand my usage into other features. Once the next update is released I'll continue testing. Thank you again.
Reply With Quote
The Following User Says Thank You to LTxda For This Useful Post:
ffs123 (3rd November 2011)
Reply

Bookmarks

Tags
chroot jail, chroot ssh not working, chroot ssh user, jailkit, ssh user

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 ssh user and mysql access walkero Installation/Configuration 1 13th October 2011 08:56
Name resolution not working for jailkit chrooted users user99 Installation/Configuration 3 11th September 2011 19:42
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
chroot ssh shell user in debian lenny 5.0 afandino Installation/Configuration 1 17th June 2009 21:19
a backup server by RSYNC + SSH in a chrooted environment paguira Server Operation 3 23rd August 2008 16:44


All times are GMT +2. The time now is 19:54.


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