Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 25th June 2012, 13:47
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 931
Thanks: 16
Thanked 261 Times in 208 Posts
Default

Ok, maybe try this:

usermod -s /usr/sbin/jk_chrootsh web7

su web7

/usr/bin/php /web/cronjobs/il_test.php

Maybe this gives any more hints. Don't forget to reset the Shell to /bin/false afterwards.

usermod -s /bin/false web7
__________________
Marius Cramer

pixcept KG
Reply With Quote
Sponsored Links
  #12  
Old 25th June 2012, 13:58
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

when I do what you wrote, I get the error message "could not open input file: /web/cronjobs/cron_test.php"

BUT:
running /usr/bin/php /var/www/clients/client1/web7/web/cronjobs/cron_test.php
does work.
(I setup a different file for better testing)

ideas?
Reply With Quote
  #13  
Old 25th June 2012, 14:09
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 931
Thanks: 16
Thanked 261 Times in 208 Posts
Default

Have you checked if you are web7 user after doing su ?
"whoami" or "id" commands should not say "root" then.
If you are still root after "su" maybe your chroot environment is not working.
__________________
Marius Cramer

pixcept KG
Reply With Quote
  #14  
Old 25th June 2012, 14:25
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

yes, I'm still root

how to find out why jailkit is not working?
Reply With Quote
  #15  
Old 25th June 2012, 14:26
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 931
Thanks: 16
Thanked 261 Times in 208 Posts
Default

Check syslog what happens if you su to web7.
__________________
Marius Cramer

pixcept KG
Reply With Quote
  #16  
Old 25th June 2012, 14:40
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

nothing gets logged to syslog
Reply With Quote
  #17  
Old 25th June 2012, 15:15
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 931
Thanks: 16
Thanked 261 Times in 208 Posts
Default

Sorry i meant /var/log/auth.log
__________________
Marius Cramer

pixcept KG
Reply With Quote
  #18  
Old 25th June 2012, 15:26
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

interesting,

auth.log says that jk_chrootsh aborted, reason: /var/www/clients/client1/web7 for user web7 (5010) does not contain the jail separator <jail>/./<home>
Reply With Quote
  #19  
Old 25th June 2012, 16:25
Croydon Croydon is offline
ISPConfig Developer
 
Join Date: Jul 2007
Location: Koblenz, Germany
Posts: 931
Thanks: 16
Thanked 261 Times in 208 Posts
Default

Ok, let's try the following:

usermod -d /var/www/clients/client1/web7/./home/web7 web7

Then try the su web7 and php call things again.
If that works, change back the shell:
usermod -s /bin/false web7

Then check if the cron job works.
__________________
Marius Cramer

pixcept KG
Reply With Quote
  #20  
Old 25th June 2012, 17:07
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
 
Default

the reply is
usermod: web7 is currently logged in

su web7

but apparently, that is a lie, because whoami and id still identify me as root

still getting
"could not open input file"
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
Cron jobs doesn't start. vaio1 Installation/Configuration 1 11th May 2012 09:36
Cron jobs not getting run 99miles General 3 29th February 2012 23:16
ISPc with frontal and specialized work for PC servers DreamK Tips/Tricks/Mods 1 8th February 2010 10:33
Upgraded and all webs work but dont show in ISPC grandpagenocide General 3 10th April 2008 14:18
cron jobs again DaRKNeSS666NL Installation/Configuration 8 29th March 2007 09:18


All times are GMT +2. The time now is 14:38.


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