Subject: Re: ksh won't read /etc/suid_profile
To: None <netbsd-users@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-users
Date: 05/20/2002 16:20:03
> otoh, if you do this instead
> 
> 	su root -l
> 
> it *will* be a login shell, so it will read /etc/profile.  you can
> also use -p (or combine them) there if you wish.

Actually I believe you should do:
	su - root

Also remember that $SHELL is just an environment variable,
- typically used to define which shell to run (ie by !command).
It doesn't have to match the actual shell, indeed after 'su root'
it will still be that of the environment of whatever ran su.

Often [ "$RANDOM" = "RANDOM" ] is used to separate ksh from
the bourne sh.

	David

-- 
David Laight: david@l8s.co.uk