*BSD News Article 59680


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!paladin.american.edu!europa.chnt.gtegsc.com!news.kreonet.re.kr!usenet.kornet.nm.kr!ames!lll-winken.llnl.gov!fnnews.fnal.gov!gw1.att.com!news.bu.edu!usenet
From: mi@ALDAN.star89.galstar.com (Mikhail Teterin)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: SU's or TCSH's behavior (bug?)
Date: 15 Jan 1996 14:56:35 GMT
Organization: Boston University
Lines: 20
Sender: mi@aldan.bu.edu (Mikhail Teterin)
Message-ID: <4ddpv3$sr4@news.bu.edu>
References: <4cu8fd$54l@news.bu.edu> <DL3z2B.72F@seeware.dialix.oz.au>
NNTP-Posting-Host: ppp-84-28.bu.edu
X-Newsreader: knews 0.9.3

In article <DL3z2B.72F@seeware.dialix.oz.au>,
	mark@seeware.DIALix.oz.au (Mark Hannon) writes:

>putte:~/src> su
>Password:
>putte:~/src# echo $user
>mark
>putte:~/src# echo $prompt
>%m:%~%#
>
>Now you can see a # if you are root, doesn't really help with mail though - btw.
>On my system su is aliased to su -m, but even \su'ing leaves $user set.
>

BTW, Solaris' su does change it... I guess, it is a concept-question:
am I (kind of) logging-in as root or simply getting the root's
privileges when su-ing? Fuzzy difference, though ;)

	-mi