LinuxQuestions.org
Visit Jeremy's Blog.
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 05-24-2003, 12:46 PM   #1
rinux
Member
 
Registered: May 2003
Posts: 44

Rep: Reputation: 15
how can i change the root name




how can i change the root name so that i login with something else than root ????? (i.e. i have another user name )

and how can i know the packages needed to run a certain service ??!!

 
Old 05-24-2003, 01:00 PM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
edit the /etc/passwd file


it is really a very bad idea to change root name
 
Old 05-24-2003, 01:10 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
http://www.linuxquestions.org/questi...root+obscurity

please use the search facilities on this site more readily, they will frequently get you a quicker answer.

the answer being... DO NOT CHANGE IT!
 
Old 05-24-2003, 01:11 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
also
http://www.linuxquestions.org/questi...root+obscurity
 
Old 05-24-2003, 01:30 PM   #5
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
it would be a better idesa to make a diff user in the group root
whether u can rename root i do not think u can do it
 
Old 05-24-2003, 02:30 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You can that's not a problem, the problem is you shouldn't. And no, you shouldn't make another user in group root either, that's nearly as bad of an idea as changing root's name. If you want to login with a username, create a user. If you are frustrated because that user cannot do everything root can, realize how secure you are now.

Cool
 
Old 05-24-2003, 10:41 PM   #7
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
i gues he might be influenced by the windoze operating systems and wished to change it to Administrator or something like that just kiddin'
 
Old 05-24-2003, 10:50 PM   #8
Wynd
Member
 
Registered: Jul 2001
Distribution: Slackware 12
Posts: 511

Rep: Reputation: 32
I read somewhere that having another root user is a good idea, since if you use that user and you see something running as 'root' then you can almost be sure it's a hacking attempt. Any truth to that?
 
Old 05-24-2003, 11:15 PM   #9
KDE4me
Member
 
Registered: Apr 2003
Location: Australia
Distribution: RedHat 9.0 / Slackware 9.0/ FreeBSD 4.8 / Solaris 8 x86 / Mandrake 9.0
Posts: 90

Rep: Reputation: 15
enter vipw at the terminal and change the /etc/passwd /etc/shadow as root.
Happy camping!
 
Old 05-25-2003, 10:22 AM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally posted by Wynd
I read somewhere that having another root user is a good idea, since if you use that user and you see something running as 'root' then you can almost be sure it's a hacking attempt. Any truth to that?
No, because you should very well know exactly what you are doing when you are root to be able to decipher between your task (maybe user management) and something completely different (such as fdisk or sendmail). You can always view who's logged in:
w
Or
who
And you can see who you are:
whoami

However, if this is a non-production machine, non-networked and you are just "learning" on it, then that's a good way to "learn". Breaking things always teaches you exactly what not to do

Cool
 
Old 05-25-2003, 10:25 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by KDE4me
enter vipw at the terminal and change the /etc/passwd /etc/shadow as root.
Happy camping!
again, whlie this is possible it should never be encouraged. thanks.
 
Old 05-26-2003, 08:57 PM   #12
lectraplayer
Member
 
Registered: Mar 2003
Location: a little west of Birmingham, AL, USA.
Distribution: Porteus 3.1
Posts: 934

Rep: Reputation: 32
I learned the hard way on a Tomsrtbt Linux disk that it was a bad idea to change the root password by editing the files. It knocked the Root completely out and I had to make another disk. I suggest you heed these warnings or you will likely find Linux unuseable to you (IE you will be locked out).
 
Old 05-27-2003, 09:00 AM   #13
rinux
Member
 
Registered: May 2003
Posts: 44

Original Poster
Rep: Reputation: 15
cruisty made me try and i was locked.......
 
Old 05-28-2003, 12:03 AM   #14
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
i want to know,how to give passwords (as root)to new users created by the root using useradd, how to use the option useradd -p.
arun
 
Old 05-28-2003, 12:14 AM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Um, you just use it...

useradd -g 501 -G wheel,xcdroast,mysql -p password username

I'm not sure what else you really need to know? You can change the users password with root with:
bash#: passwd username
And it will prompt you for a new password for the user.

Cool
 
  


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
change root leofer Linux - Newbie 8 07-27-2003 08:31 PM

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

All times are GMT -5. The time now is 12:58 AM.

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