*BSD News Article 42352


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!agate!howland.reston.ans.net!gatech!swrinde!news.uh.edu!uuneo.neosoft.com!concorde.neosoft.com!dbaker
From: dbaker@concorde.neosoft.com (Daniel Baker)
Newsgroups: comp.os.386bsd.questions
Subject: Re: what happens to .login and aliases when su
Date: 11 Feb 1995 22:43:54 GMT
Organization: NeoSoft Internet Services   +1 713 968 5800
Lines: 16
Message-ID: <3hjeja$80l@uuneo.neosoft.com>
References: <3hgdir$mu6@news.doit.wisc.edu>
NNTP-Posting-Host: concorde.neosoft.com
X-Newsreader: TIN [version 1.2 PL2]

Ron Porter (porter@fozzie.chem.wisc.edu) wrote:
: Hello,
:   I recently took out the "secure" from the psterms so i can no longer
: telnet into my FreeBSD1.1.5.1 machine as root(for security reasons).
: Now i log in as a common user and the su to root. But when i do
: this, i no loger have my alieses that i really want or my customized
: prompt. How do i get these to work when i su?
: Thanks, Ron Porter
In your .login add this line:

alias su "su -m"

--
Daniel Baker -- NeoSoft FTP/UseNet Administrator	(713)531-8571
DBaker@NeoSoft.COM
DBaker@Concorde-Mail.NeoSoft.COM