LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-22-2005, 10:29 PM   #1
virtualme
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 3
Posts: 13

Rep: Reputation: 0
Change root Name


A simple newbie question... Can I change the root's login name. For example: change root to rootuser.

I was just wondering because in Windows, it is advisable to change the Administrator name for security purposes. I would imagine that it would be a good idea in Linux too. Or am I wrong?

Thanks.
 
Old 02-23-2005, 12:05 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I suppose that's a matter of how good your password is,
and how exposed the box is to potential attackers ...
E.g which services are open to the world, and how they're
set up ...

It's possible, not even overly hard, to rename root (for a time
[just for the heck of it] mine was called ruth) ... just edit
/etc/passwd and /etc/shadow and do your thing.

The thing is, however, that the problem is the quality of
ALL your passwords ... I have many login-attempts for other
users (randomly chosen names); once the attacker has
ANY access he can (necessarily) look at /etc/passwd
and try on knowing root's real name ... so you need "safe"
usernames for ALL users, and sensible passwords for all
of them.


Cheers,
Tink
 
Old 02-23-2005, 12:19 AM   #3
Sepero
Member
 
Registered: Jul 2004
Location: Tampa, Florida, USA
Distribution: Ubuntu
Posts: 734
Blog Entries: 1

Rep: Reputation: 33
/etc/passwd
/etc/shadow
Code:
root:x:0:0:root:/root:/bin/bash
ruth:x:0:0:root:/root:/bin/bash

root:1$g/YYunCnM$HS4LdYfHQLKNB1qn3JyTj0:12405:0:99999:7:::
ruth:1$g/YYunCnM$HS4LdYfHQLKNB1qn3JyTj0:12405:0:99999:7:::
I don't know if you'd need to change /etc/group too though. I've never personally done it myself.
 
  


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 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
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 05:33 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