View Single Post
  #1  
Old 22nd November 2011, 00:31
davide.seo davide.seo is offline
Junior Member
 
Join Date: Oct 2011
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem with cronjob

Hi all, I have a problem configuring a cron jobs in the web panel of ispconfig3 ( Site->Cron jobs ).
In the detail, after configured a cron jobs that executes every minute, in the auth.log file I see this message:

Nov 21 20:42:12 164-44 usermod[15799]: change user 'web9' home from '/var/www/clients/client0/web9' to '/var/www/clients/client0/web9/.'
Nov 21 20:42:12 164-44 usermod[15799]: change user 'web9' shell from '/bin/false' to '/usr/sbin/jk_chrootsh'
Nov 21 20:42:12 164-44 usermod[15804]: change user 'web9' home from '/var/www/clients/client0/web9/.' to '/var/www/clients/client0/web9/./home/web9'
Nov 21 20:42:12 164-44 CRON[13244]: pam_unix(cron:session): session closed for user root
Nov 21 20:43:01 164-44 CRON[15822]: pam_unix(cron:session): session opened for user web9 by (uid=0)
Nov 21 20:43:01 164-44 CRON[15823]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 21 20:43:01 164-44 jk_chrootsh[15824]: path /var/www/clients/client0/web9/./home/web9 is not owned by user 5008
Nov 21 20:43:01 164-44 jk_chrootsh[15824]: path /var/www/clients/client0/web9/./home/web9 is not owned by group 5005
Nov 21 20:43:01 164-44 jk_chrootsh[15824]: abort, path /var/www/clients/client0/web9/./home/web9 is not owned by 5008.

In the directory I see this tree:
drwx--x--- 4 web9 client0 4096 2011-10-19 20:39 web
lrwxrwxrwx 1 root root 4 2011-11-21 20:42 lib64 -> /lib
drwxr-xr-x 3 root root 4096 2011-11-21 20:42 var
drwxr-xr-x 2 root root 4096 2011-11-21 20:42 dev
drwxr-xr-x 6 root root 4096 2011-11-21 20:42 usr
drwxr-xr-x 2 root root 4096 2011-11-21 20:42 bin
drwxr-x--x 3 root root 4096 2011-11-21 20:42 lib
drwxr-x--- 3 root root 4096 2011-11-21 20:42 home
drwxr-xr-x 6 root root 4096 2011-11-21 21:13 etc



so I decide to chown the directory home:

root@webhosting:/var/www/clients/client0/web9# chown -R web9:client0 home



after this I see in the syslog file the message:
Nov 21 20:47:01 164-44 jk_chrootsh[15980]: now entering jail /var/www/clients/client0/web9 for user web9 (5008) with arguments -c /var/www/clients/client0/web9/myscript.sh

but nothing happens on the script.
But ispconfig works well only if I set http url to wget. Could you help me ?

I show also the /etc/passwd file:

web7:x:5006:5005::/var/www/clients/client0/web7/:/bin/false
web8:x:5007:5005::/var/www/clients/client0/web8:/bin/false
web9:x:5008:5005::/var/www/clients/client0/web9/./home/web9:/usr/sbin/jk_chrootsh
web10:x:5009:5005::/var/www/clients/client0/web10:/bin/false
web11:x:5010:5005::/var/www/clients/client0/web11:/bin/false
web12:x:5011:5005::/var/www/clients/client0/web12:/bin/false



Thank you
Reply With Quote
Sponsored Links