Dick Davies wrote:

Also as an addendum, last time I checked, if your entry for root in /etc/passwd was munged and the shell had become unexecutable, from single-user mode Solaris would run up a /sbin/sh for you to recover the situation from.

That's no longer true as I understand it (and was why i asked you for
a technical reason).
See

Check the source and you will find it *is* still the case.

However that isn't a reason not to change the shell of the root user but the addendum statement Sean made is true.

For OpenSolaris distributions that use the ON $SRC/cmd/sulogin as their sulogin (and I believe currently that is all distros) see:

http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/cmd/sulogin/sulogin.c#246

and for what shell is set to see line 96 of the same file.

If the entry for root in /etc/passwd or /etc/shadow isn't mangled then we use the same single() function but pass on responsibility for execing the shell to /sbin/su.


--
Darren J Moffat
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to