Xref: utzoo unix-pc.sources:329 comp.sys.att:6834 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!uwvax!dogie.macc.wisc.edu!csd4.milw.wisc.edu!indri!pikes!udenva!isis!scicom!zebra!vern From: vern@zebra.UUCP (Vernon C. Hoxie) Newsgroups: unix-pc.sources,comp.sys.att Subject: Re: KSHPR: prompt generator for .kshrc Summary: My solution Message-ID: <168@zebra.UUCP> Date: 27 Jun 89 17:20:51 GMT References: <19817@cup.portal.com> Organization: Alpha Science Computer Networks, Denver, Colo. Lines: 26 In article <19817@cup.portal.com>, thad@cup.portal.com (Thad P Floryan) writes: > The following is a l'il qwik'n'dirty you may find useful. If you know of some > other method to determine whether one is running su'd or not, please share it. > This posting is to unix-pc.sources and comp.sys.att since it's of potential use Here's what I did: To ~/.kshrc add: alias ck='/bin/su -su' ( ck for Clark Kent ) Change /.profile to: if [ "$SHFLAG" != 1 ] then exec /bin/ksh fi Change /.kshrc to: PS1="Root ! > " PS2="Root ? " PS3="Root # " It works for me, vern. -- Vernon C. Hoxie {ncar,nbires,boulder,isis}!scicom!zebra!vern 3975 W. 29th Ave. voice: 303-477-1780 Denver, Colo., 80212 ( TB+ ) uucp: 303-455-2670