Hi Björn,

Le 17.05.2007 20:52:49, Stephen Gran a écrit :
This one time, at band camp, Björn Heide said:
Hi,

as I am also beaten by #424772 I tried to find out what's going
wrong:

It is the way su determines which shell to run.

su uses 1) shell specified with -s
        2) if -p is given: $SHELL
        3) shell from /etc/passwd
        4) /bin/sh

what happens in the "initscript run by init" case is:
- $SHELL is not set
- /etc/passwd gives: clamav:x:109:114::/var/lib/clamav:/bin/false
and /bin/false is used.


Thank you for the really nice explanation


I applied you patch and it works fine, thanks.


Regards

Jean-Luc

Attachment: pgp6QfBsf9oxI.pgp
Description: PGP signature

Reply via email to