SGI 'su'

Archer Sully archer at elysium.SGI.COM
Thu Mar 16 03:50:31 AEST 1989


In article <8903141821.AA07266 at adt.uucp>, madd at adt.UUCP (jim frost) writes:
> I would appreciate it very, very much if someone would fix 'su' so it
> properly reads the destination user's shell configuration files.  I'm
> about to hack one together but I really shouldn't have to do that.
> 
> This is very important to me since our root .cshrc properly sets the
> prompt to the hash mark, but this is never called when su'ing.  If you
> forget, or if someone walks up, you or they will unknowingly be root.
> This is of course very dangerous even if security isn't an issue.

This is normal, proper System V behavior for su.  If you use 'su -', then
the full login procedure is followed.  If you don't wish to use su - for 
whatever reason, you can have your own .cshrc check your uid, and set
the prompt to a # when you are root.

archer
--



More information about the Comp.sys.sgi mailing list