[SunHELP] root user "prompt" , current dir as prompt in bourne shell

Joe Pampel joe at ardsley.com
Thu Jun 13 10:11:16 CDT 2002


etc\passwd - roots shell is at the end of the line there..

for ex:

HOST# cat passwd
root:x:0:1:Super-User:/:/bin/csh
(etc)


>>> <rmolugurk at yahoo.com> 06/13/02 11:06AM >>>
 Hi,

1.
  I would like to know where is the setting for root
user's shell prompt in solaris. I login to the machine
console as root.

for non-root users it is in /etc/profile and
$HOME/.profile as PS1.

But the root user is not getting the prompt from these
files.

2. I use Bourne shell for a user called xx.  Is there
a way in this shell to get prompt which displays
"current directory". An example is : If change to a
dir called test from my home dir /export/home/xx. I
need the prompt to change to /export/home/xx/test.

 with my /etc/profile settings as follows, I only get
my home dir in the prompt for user xx. I didn't have
any settings in $HOME/.profile for this user xx.

PWD=`pwd`
HOST=`hostname`
PS1="$HOST:$PWD>"
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp



**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



More information about the SunHELP mailing list