KSHPR: prompt generator for .kshrc

Charles A Anderson caa at midgard.Midgard.MN.ORG
Wed Jun 28 03:59:21 AEST 1989


In article <287 at ecijmm.UUCP> jmm at ecijmm.UUCP (John Macdonald) writes:
|Well you asked for it...  I hope there won't be a deluge of similar
|postings.  Anyhow, my method of determining whether I'm su'ed to root
|or not is a simple test "if [ -w /etc/passwd ]".  If that succeeds,
|you're either root or the proud owner of an insecure system.  

Won't work for me, cuz my /etc/passwd is 444.  Meaning I have to do a w!
to change it in vi but that's ok with me.
-- 
/-Charles-Anderson-\      caa at midgard.mn.org || (backbone)!bungia!midgard!caa
\------------------/  caa at garnet.ssd.cdc.com || (backbone)!shamash!garnet!caa
    I'm gonna make like yesterday's lunch, down and out the back.  -me
(The above quote has been rated as gross, digusting, and tacky by my cow-
orkers at work...are you a cow orker?  Would you like to be one? Send $5
and SASEE to me for free (almost) informative (more or less) redundant (very)
information packet.  VISA and MasterCard accepted (and abused).)



More information about the Unix-pc.sources mailing list