Hmm, I should have mentioned that I use secure-su not GNU su. Could it be you use GNU's version?
Then I guess it's a bug in secure-su. Michael -- Dr. Michael Meskes, Projekt-Manager | topystem Systemhaus GmbH [EMAIL PROTECTED] | Europark A2, Adenauerstr. 20 [EMAIL PROTECTED] | 52146 Wuerselen Go SF49ers! Use Debian GNU/Linux! | Tel: (+49) 2405/4670-44 > ---------- > From: [EMAIL PROTECTED]:[EMAIL PROTECTED] > Sent: Dienstag, 23. Dezember 1997 22:02 > To: debian-devel@lists.debian.org > Subject: Re: su and init scripts > > In article > <[EMAIL PROTECTED]>, > Meskes, Michael <[EMAIL PROTECTED]> wrote: > >When using su to change the user you do not get that user's login > shell, > >but the one listed in the environment variable SHELL. > > That must be a bug in your version of su, since the manpage states it > will > use the shell in the password file. In fact, on a Debian 1.3 system: > > [defiant:root](~)> echo $SHELL > /bin/bash > [defiant:root](~)> su miquels -c 'echo $SHELL' > /usr/bin/zsh > [defiant:root](~)> > > If I strace it: > > setgid(10) = 0 > setuid(2101) = 0 > execve("/usr/bin/zsh", ["zsh", "-c", "echo $SHELL"], [/* 20 vars */]) > = 0 > > A recent hamm system shows the same behaviour, btw > > I realize all this doesn't help you very much (sorry) in a direct way > but > hopefully it gives some more insight in the problem .. > > Mike. > -- > Miquel van Smoorenburg | Studying to be a technomage <*> > [EMAIL PROTECTED] | "May you live in interesting times" > > > -- > TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" > to > [EMAIL PROTECTED] . > Trouble? e-mail to [EMAIL PROTECTED] . > -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .