Hi Rod,
> The environ was as clean as a whistle.
>
> HOSTNAME=ce1.triumf.ca
> SHELL=/bin/bash
> TERM=xterm
> HISTSIZE=1000
> USER=root
> MAIL=/var/spool/mail/root
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
> INPUTRC=/etc/inputrc
> PWD=/root
> PS_PERSONALITY=sysv
> SHLVL=1
> HOME=/root
> LOGNAME=root
>
> so you nailed it. Denice discovered that running
> daemon --user $user $globus_gatekeeper -conf
> $globus_etc_location/globus-gatekeeper.conf
>
> where user=root does not inherit the env from the init.d script at all.
>
> When we removed the --user argument, it all worked.
> The reason most sites will get away with this is that they do not keep a
> clean root environment. We do not run any profile.d setup for the root
> user, and I believe this is good practice.
>
> So I`d say there is a bug in the init.d script whereby one should not
> use the --user argument if the user is root. I imagine the reason is in
> the daemon function
>
> if [ -z "$user" ]; then
> $nice initlog $INITLOG_ARGS -c "$*"
> else
> $nice initlog $INITLOG_ARGS -c "runuser -s /bin/bash - $user
> -c \"$*\""
> fi
I have opened a bug about it:
https://savannah.cern.ch/bugs/index.php?36927
We had fixed it for /etc/init.d/globus-gridftp only...
|