#1  
Old 10th August 2011, 14:46
andrercmeira andrercmeira is offline
Junior Member
 
Join Date: Aug 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default SSH Jailkit fail

I need create user chroot,
The install follow tutorial (perfect server (debian 6))

but user create chroot not log, if I change to none, user log but view all file system.

after change ispconfig to log in debug mode, and execute manualy server.sh the result is this:

Code:
10.08.2011-09:34 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
10.08.2011-09:34 - DEBUG - Found 1 changes, starting update process.
10.08.2011-09:34 - DEBUG - Unable to register function 'insert' from plugin 'mailman_plugin' for event 'mail_mailinglist_insert'
10.08.2011-09:34 - DEBUG - Unable to register function 'update' from plugin 'mailman_plugin' for event 'mail_mailinglist_update'
10.08.2011-09:34 - DEBUG - Unable to register function 'delete' from plugin 'mailman_plugin' for event 'mail_mailinglist_delete'
10.08.2011-09:34 - DEBUG - Calling function 'insert' from plugin 'shelluser_base_plugin' raised by event 'shell_user_insert'.
10.08.2011-09:34 - DEBUG - Executed command: useradd -d /var/www/clients/client2/web2 -g client2 -o  -p \$1\$3Q0NH5ue\$T38qmk3VkuQ3xcIHgwVOm. -s /bin/bash -u 5005 cortesias_teste
10.08.2011-09:34 - DEBUG - Added shelluser: cortesias_teste
10.08.2011-09:34 - DEBUG - Disabling shelluser temporarily: usermod -s /bin/false -L cortesias_teste
10.08.2011-09:34 - DEBUG - Calling function 'insert' from plugin 'shelluser_jailkit_plugin' raised by event 'shell_user_insert'.
10.08.2011-09:34 - DEBUG - exec: chmod 755 /var/www/clients/client2/web2
10.08.2011-09:34 - DEBUG - exec: chown root:root /var/www/clients/client2/web2
usermod : nenhuma mudança
10.08.2011-09:34 - DEBUG - Added jailkit user to chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_user.sh cortesias_teste /var/www/clients/client2/web2 /home/cortesias_teste /bin/bash web2 /home/web2
10.08.2011-09:34 - DEBUG - Added created jailkit user home in : /var/www/clients/client2/web2/home/cortesias_teste
PHP Warning:  mkdir(): Arquivo existe in /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php on line 270
10.08.2011-09:34 - DEBUG - Added created jailkit parent user home in : /var/www/clients/client2/web2/home/web2
10.08.2011-09:34 - DEBUG - exec: chmod 755 /var/www/clients/client2/web2
10.08.2011-09:34 - DEBUG - exec: chown root:root /var/www/clients/client2/web2
10.08.2011-09:34 - DEBUG - Jailkit Plugin -> insert username:cortesias_teste
10.08.2011-09:34 - DEBUG - Processed datalog_id 285
10.08.2011-09:34 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
and log into /ispconfig/cron.log is

Code:
mkdir: é imposs*vel criar o diretório "/var/www/clients/client2/web2/var": Arquivo existe
mkdir: é imposs*vel criar o diretório "/var/www/clients/client2/web2/var/run": Arquivo existe
cat: /root/.ssh/authorized_keys: Arquivo ou diretório não encontrado
usermod : nenhuma mudança
PHP Warning:  mkdir(): Arquivo existe in /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php on line 270
PHP Warning:  mkdir(): Arquivo existe in /usr/local/ispconfig/server/plugins-available/shelluser_jailkit_plugin.inc.php on line 276
usermod : o usuário corteria_teste está logado no momento
Reply With Quote
Sponsored Links
  #2  
Old 10th August 2011, 14:57
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,996 Times in 3,909 Posts
Default

Which ispconfig version do you use? According to the log, it seems that you use a developer release from SVN. SVN Versions are untested and can be broken, so this might be the reason for your problems.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 10th August 2011, 15:00
andrercmeira andrercmeira is offline
Junior Member
 
Join Date: Aug 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I use 3.0.3.3 and I try svn version but in all version have same error and jailkit i test, 2.11, 2.12, 2.13 and 2.14

Last edited by andrercmeira; 10th August 2011 at 15:02.
Reply With Quote
  #4  
Old 10th August 2011, 15:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,996 Times in 3,909 Posts
Default

The SVN version might have broken your setup now, please do not use svn versions on production systems.

First delete all websites that you created in ispconfig and wait afew minutes so that the sites and users get deleted from your system.

Then uninstall ispconfig by downloading the ispconfig 3.0.3.3 tar.gz and executing the uninstall.php script. Then reinstall ispconfig 3.0.3.3 from tar.gz.

Install only the jailkit version mentioned in the perfect setup guide as this is the one that is tested and known to work in that configuration.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 10th August 2011, 15:09
andrercmeira andrercmeira is offline
Junior Member
 
Join Date: Aug 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

With uninstalll my data (DNS, users, etc) are lose or I can uninstall without problem???
Reply With Quote
  #6  
Old 10th August 2011, 15:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,996 Times in 3,909 Posts
Default

All data will get lost on a uninstall. I thought this is a dev system or new system as you installed a unstable developer release of ispconfig on it.

If the syetm is in production, we will try to have to debug the problem. But there is no guarantee that the system will work stable with a svn version. as you see in the debug output, there are quite a few errors which result from the svn release.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 10th August 2011, 15:18
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 34,624
Thanks: 793
Thanked 4,996 Times in 3,909 Posts
Default

Please post the line for the jailed user from /etc/passwd
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 10th August 2011, 16:05
andrercmeira andrercmeira is offline
Junior Member
 
Join Date: Aug 2011
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

work perfectly...

I extract database info, backup clients dir, uninstall, reinstall and all system ok.


Thanks
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
Allowing the use of java by ssh users (jailkit) crohakon General 0 11th June 2011 21:43
setting up chrooted ssh user, jailkit installed after ispconfig bn61 Installation/Configuration 7 5th May 2011 16:02
Apache2 FCGID locking up the box? crypted General 6 12th April 2011 16:16
Jailkit SSH user login fails outeredge General 7 21st February 2011 14:40
SSH jailkit wrong folder aldo Installation/Configuration 3 17th January 2011 12:41


All times are GMT +2. The time now is 04:35.


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