View Single Post
  #5  
Old 26th August 2011, 17:02
corpus corpus is offline
Junior Member
 
Join Date: Jan 2011
Posts: 29
Thanks: 8
Thanked 12 Times in 9 Posts
Default

if i understand the topic i have to do :
vim /usr/local/ispconfig/server/plugins-available/shelluser_base_plugin.inc.php
comment out line 100
Code:
 //* $command = 'usermod -s /bin/false -L '.escapeshellcmd($data['new']['username']);
and make it
Code:
$command .= 'usermod -s /usr/sbin/jk_chrootsh -U '.escapeshellcmd($data['new']['username']);
after this i created a new user
got logged in this time
but the user is not jailed
the new user has bash in /etc/passwd
second:x:5004:5005::/var/www/clients/client3/web1:/bin/bash
any solution?

Last edited by corpus; 26th August 2011 at 17:04. Reason: /etc/passwd
Reply With Quote