View Single Post
  #10  
Old 25th July 2011, 17:17
tspau tspau is offline
Junior Member
 
Join Date: Jun 2010
Location: Spain
Posts: 11
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by tspau View Post
hello

i don't understand where i have to disable the cronjob server.sh, is not in my cron.d

running that script (without disablen the cronjob) only shows:

19.07.2011-16:24 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
19.07.2011-16:24 - DEBUG - No Updated records found, starting only the core.
19.07.2011-16:24 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.
hello.

this is the output:
# /usr/local/ispconfig/server/server.sh
25.07.2011-16:09 - DEBUG - Set Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
25.07.2011-16:09 - DEBUG - Found 1 changes, starting update process.
25.07.2011-16:09 - DEBUG - Call function 'insert' in plugin 'shelluser_base_plugin' raised by event 'shell_user_insert'.
25.07.2011-16:09 - DEBUG - Executed command: useradd -d /usr/var/www/clients/client50/web85 -g client50 -o -p \$1\$98v/TGom\$qbB.4U/S2CwJwjFe4hKYn0 -s /bin/bash -u 5037 tssatxell
25.07.2011-16:09 - DEBUG - Added shelluser: tssatxell
25.07.2011-16:09 - DEBUG - Disabling shelluser temporarily: usermod -s /bin/false -L tssatxell
25.07.2011-16:09 - DEBUG - Call function 'insert' in plugin 'shelluser_jailkit_plugin' raised by event 'shell_user_insert'.
25.07.2011-16:09 - DEBUG - exec: chmod 755 /usr/var/www/clients/client50/web85
25.07.2011-16:09 - DEBUG - exec: chown root:root /usr/var/www/clients/client50/web85
usermod: sin cambios
25.07.2011-16:09 - DEBUG - Added jailkit user to chroot with command: /usr/local/ispconfig/server/scripts/create_jailkit_user.sh tssatxell /usr/var/www/clients/client50/web85 /home/tssatxell /bin/bash web85 /home/web85
25.07.2011-16:09 - DEBUG - Added created jailkit user home in : /usr/var/www/clients/client50/web85/home/tssatxell
25.07.2011-16:09 - DEBUG - Added created jailkit parent user home in : /usr/var/www/clients/client50/web85/home/web85
25.07.2011-16:09 - DEBUG - exec: chmod 755 /usr/var/www/clients/client50/web85
25.07.2011-16:09 - DEBUG - exec: chown root:root /usr/var/www/clients/client50/web85
25.07.2011-16:09 - DEBUG - Jailkit Plugin -> insert username:tssatxell
25.07.2011-16:09 - DEBUG - Processed datalog_id 2054
25.07.2011-16:09 - DEBUG - Remove Lock: /usr/local/ispconfig/server/temp/.ispconfig_lock
finished.


and now in /etc/passwd:

tssatxell:x:5037:5036::/usr/var/www/clients/client50/web85/./home/tssatxell:/usr/sbin/jk_chrootsh

but if i run su tssatxell it doesn't log, and in /var/log/auth.log:

Jul 25 16:12:27 myserver su[4295]: Successful su for tssatxell by root
Jul 25 16:12:27 myserver su[4295]: + pts/0 root:tssatxell
Jul 25 16:12:27 myserver su[4295]: pam_unix(su:session): session opened for user tssatxell by sshuser(uid=0)
Jul 25 16:12:27 myserver jk_chrootsh[4296]: now entering jail /usr/var/www/clients/client50/web85 for user tssatxell (5037)
Jul 25 16:12:27 myserver jk_chrootsh[4296]: ERROR: failed to execute shell /bin/bash for user tssatxell (5037), check the permissions and libraries of /usr/var/www/clients/client50/web85//bin/bash
Jul 25 16:12:27 myserver su[4295]: pam_unix(su:session): session closed for user tssatxell
Reply With Quote