soonhelp
09-05-2004, 08:00 AM
-bash-2.05b#
i login to my server via ssh i the root is
-bash-2.05b#
why ??
how i can restore my default ssh root
thanks
gate2vn
09-05-2004, 09:09 AM
did you log in under root? Or normal user? maybe you want to use "su"?
alexmue
09-05-2004, 09:57 AM
of course he is loged is as root otherwise it wouldnt be a # at end of prompt
i think he wants to know how he can change the promt from
-bash-2.05b#
to something like
[root@hostname root]#
SBHS-Scott
09-05-2004, 12:21 PM
http://www.linuxlookup.com/html/articles/custom-prompts.html
DreamHost-MikeS
09-05-2004, 12:35 PM
Originally posted by alexmue
of course he is loged is as root otherwise it wouldnt be a # at end of prompt
Red Hat Enterprise actually puts a '#' at the end of the prompt for non-root users.
dandanfirema
09-05-2004, 11:14 PM
Is this linux or Freebsd?
HongChuongNg
09-06-2004, 01:55 AM
Edit /etc/pass
you will see: root:x:0:0:root:/root:/bin/bash2
replace to root:x:0:0:root:/root:/bin/bash
goodluck
migman
09-06-2004, 04:22 AM
where is the proplem you can put what ever you whant to be up
for example
i_login_root_#
check the .bashrc and you c how to change it
-==-==-=-=-=-=-=-=-=-=-=-=-=-
ehome4you.net
hosting Dir
Crucial
09-06-2004, 01:30 PM
I would export using the PS1 command. I belive the url above lists some exports if not I can show you some examples for bash and how to make them active.
Like export PS1="[$USER@$HOST:] "
should be [root@machine.com:]