#11  
Old 28th June 2012, 13:54
paradoxni paradoxni is offline
Junior Member
 
Join Date: Jun 2008
Posts: 19
Thanks: 1
Thanked 1 Time in 1 Post
Default

ok I have gotten further! The issue was I had moved the webroot and then symlinked /var/www to the new location..however this does not work for jailkit. I have now reconfigured the base dir for ispconfig to the hard directory location and now shell users are getting created as expected!

The problem now is when I try to login with the shell user, I get kicked out immediately and the auth.log shows:
Code:
Jun 28 12:45:54  jk_chrootsh[19414]: now entering jail /var/www/clients/client1/web7 for user sshtest (5006) with arguments

Jun 28 12:45:54  jk_chrootsh[19414]: abort, failed to find user 5006 in /var/www/clients/client1/web7/etc/passwd
yet the user exists in /var/www/clients/client1/web7/etc/passwd:

Code:
root:x:0:0:root:/root:/bin/bash
sshtest:x:5006:5006:::/bin/bash
Reply With Quote
Sponsored Links
  #12  
Old 28th June 2012, 14:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,046
Thanks: 826
Thanked 5,388 Times in 4,233 Posts
Default

Most likely the jailed users were not created correctly due to the moved webroot. try to delete the shell user and then recreate it.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #13  
Old 28th June 2012, 15:12
paradoxni paradoxni is offline
Junior Member
 
Join Date: Jun 2008
Posts: 19
Thanks: 1
Thanked 1 Time in 1 Post
Default

Found the answer in another forum...

Code:
sudo vi /etc/jailkit/jk_chrootsh.ini
Code:
[DEFAULT]
#relax_home_group=1
skip_injail_passwd_check=1
injail_shell=/bin/bash
env = TERM, PATH
The problem was I had installed jailkit AFTER ispconfig, I did run update.php, but needed to add the above and now all is working!

Thanks for the help.
Reply With Quote
The Following User Says Thank You to paradoxni For This Useful Post:
falko (28th June 2012)
  #14  
Old 16th July 2012, 17:10
paradoxni paradoxni is offline
Junior Member
 
Join Date: Jun 2008
Posts: 19
Thanks: 1
Thanked 1 Time in 1 Post
 
Default

New problem...

When I try to run ssh or git from within the jailed shell environment, I get "You don't exist, go away!" for any of the commands...

Code:
ssh test
You don't exist, go away!
It may be related..but when I "ls" directories in the jailed environment it lists the owner/group as the UID not the name...

Code:
-rwxr-xr-- 1 5010 5006    24 Jun 29 13:55 robots.txt
-rwxr-xr-- 1 5010 5006  7358 Jun 29 13:55 favicon.ico
drwxr-xr-x 2 5010 5006  4096 Jun 29 13:55 error
Yet the jailed /etc/passwd file is:

Code:
root:x:0:0:root:/root:/bin/bash
testuser:x:5010:5007:::/bin/bash

Last edited by paradoxni; 17th July 2012 at 10:13.
Reply With Quote
Reply

Bookmarks

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
problem creating jailed shell users tspau General 12 10th August 2011 15:03
Users created but cannot login (FTP and shell) baskin General 13 18th December 2009 20:05
Problem with Clamav + samba configuration wammy28 HOWTO-Related Questions 8 31st January 2009 19:12
Cacti and ISPConfig: Monitoring Tool VMartins Tips/Tricks/Mods 11 9th August 2008 18:37
Junk mail and spamassassin... sthompson Installation/Configuration 4 27th December 2006 16:11


All times are GMT +2. The time now is 18:29.


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