After upgrading to CentOS 5.4, my root path seems screwed.
The issue is present for CRONJOBs that run as the root user as well as when I su to the user through SSH.
I need the following path ALWAYS:
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
It currently only gives root:
/usr/kerberos/sbin /usr/kerberos/bin /usr/local/bin /bin /usr/bin /usr/X11R6/bin
I have tried adding export PATH to the .bash_profile and set PATH = in the .tcshrc. Neither of those attempts work for my SSH session nor did it work for the root cronjob tasks.
Code:
# /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php
sh: httpd: command not found
ls: /conf.d/*.conf: No such file or directory
sh: httpd: command not found
start
sh: postmap: command not found
sh: httpd: command not found
Segmentation fault
The scripts were working just fine for two years. I haven't changed anything. Just stopped working after the upgrade. It's based upon the PATH issue though.
Any help is much appreciated!!!