View Single Post
  #1  
Old 10th August 2011, 15: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