A cronjob for the apache user - is the home dir for apache really necessary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: "users@xxxxxxxxxxxxxxxx" <users@xxxxxxxxxxxxxxxx>
- Subject: A cronjob for the apache user - is the home dir for apache really necessary?
- From: "Poggenpohl, Daniel" <daniel.poggenpohl@xxxxxxxxxxxxxxxx>
- Date: Sat, 23 Apr 2016 12:05:30 +0000
- Accept-language: de-DE, en-US
- Ironport-phdr: 9a23:VDDoChFW+O29m0giM2EA351GYnF86YWxBRYc798ds5kLTJ75rsywAkXT6L1XgUPTWs2DsrQf27qQ7PqrBTNIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/nh6btodaPPE1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv50IbaKvNbkjQKZDJDQ6L3g5osTzvBLDQE2I/HRWGjELiRdSGCDF8A3iUtH4qiLxtuc73zOVa57YV7cxDH6a6KhkRRnwjycDc3YV+WfWh8g6xPZXqRSgqhg524nbb4yTLP1+eovTcMkcWGxAG8ZYWCFHRI+xOdhcR9EdNPpV+tGu72AFqgGzUFGh
- Reply-to: users@xxxxxxxxxxxxxxxx
- Thread-index: AdGdWAvuaSnANXpnRXGoejIIQ8hPDQ==
- Thread-topic: A cronjob for the apache user - is the home dir for apache really necessary?
Hello everyone,
Preface: My system is Solaris 11.2/11.3 X86/64.
I'm changing some cronjobs which previously ran as root which surely isn't really necessary.
I entered some cronjob in the crontab for the apache and wondered why it didn't execute. I also wondered where the heck I could see what was wrong? I even thought that maybe the cronjob isn't even tried to run because the apache user doesn't have login enabled and has no password set.
Well, after googling a lot, I found out about /var/cron/log and /var/mail/apache, which got me less helpful information (The script was executed, but got rc=1), and more helpful information (real error messages which helped determine the cause). One of the error messages was that the apache user couldn't change directory to his home dir, /export/home/apache. That's correct, because the apache user doesn't need a home dir, because he isn't a real user.
But the script didn't work without me making the directory for the apache user.
Is there some way to prevent this? My cronjob was just "runSomeScript.sh >> script.out", to test it.
Regards,
Daniel Poggenpohl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]