LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-22-2003, 06:36 PM   #1
leofer
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
change root


when i open a console it shows

root@dc333343435 leonardo, how i change that bunch of numbers to something else i want?
 
Old 07-22-2003, 06:45 PM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
In /etc/profile look for your ps1 variable, something like:
[code] PS1='\u@\h:\w\$ '[/url]
Is what you are looking for. You will be changing the stuff following:
PS1 =

Cool
 
Old 07-22-2003, 09:11 PM   #3
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Mine has no ps1 variable (confused)
 
Old 07-22-2003, 09:55 PM   #4
jd121
Member
 
Registered: Jul 2003
Distribution: FreeBSD 5.1, Debian 3.0, Damn Small 0.4.2
Posts: 46

Rep: Reputation: 15
Which distro are you using?
 
Old 07-23-2003, 05:48 PM   #5
leofer
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
orry i am using mandrake 9.1
 
Old 07-24-2003, 03:10 AM   #6
lfur
Member
 
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
jon_k,

if you can't find it in /etc/profile, then you can try:
set | grep -i ps1

to display it for you, or:
echo $PS1

If you wish to modify it, just save it in your home .profile, .bashrc, .bash_login ar whatever you are using.
 
Old 07-24-2003, 06:16 AM   #7
Faecal
Member
 
Registered: Sep 2002
Location: York, UK
Distribution: Debian Sid
Posts: 215

Rep: Reputation: 30
Are you certain that those numbers are not actually part of your hostname (you will have chosen a hostname during installation)? I ask because it is common to have a prompt like user@hostname $. Your mandrake network configuration tool should have an option for altering your hostname.
 
Old 07-27-2003, 11:33 AM   #8
leofer
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Yes i think is my hostname in the prompt, so how i change it, i cant find the option in mandrake...
 
Old 07-27-2003, 08:31 PM   #9
jon_k
Member
 
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Hey leofer, in redhat I found it under the redhat "network config" utility -- so you should find the corresponding one on mandrake somewhere under the mandrake start menu

I used mandrake once and remember such a tool... maybe in the drak control center? i don't remember... but i can almost garuntee you will find it in a GUI config thingy somewhere ;-)


I changed mine to say Uberleet-Terminal (i figured it was a good one since my domain IS uberleet.org, he hee)

Last edited by jon_k; 07-27-2003 at 08:33 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Change root Name virtualme Linux - Newbie 2 02-23-2005 12:19 AM
change root name Smokey Linux - Security 4 07-19-2004 02:13 AM
change root alaios Linux - Software 5 03-18-2004 12:22 PM
how can i change the root name rinux Linux - Newbie 16 06-01-2003 10:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration