LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-18-2004, 06:04 AM   #1
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Rep: Reputation: 30
change root name


How can I change 'root' to another name? Will it be a system wide change?
and if it is possible, if I 'su' will it automatically try to log into the new admin name?

I prefer it to not be like that, I would like to FORCE myself to 'su <newROOTusername>'

I dont know if people understand me, thank you for any help.
 
Old 07-18-2004, 06:19 AM   #2
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
I understand you, but that's just about the most unwise thing to want to do....

firstly things rely on root being called root
secondly this implies that you want your normal user to have root privelidges, very very very bad idea.

do. not. mess. with root. it's there for a reason.

if you are determined to destroy your system at a moments notice, you can add yourself to either the "root" or "wheel" user groups, depending on your distro, but don't.... it's a stupid idea.
 
Old 07-19-2004, 12:41 AM   #3
Smokey
Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 313

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by acid_kewpie
I understand you, but that's just about the most unwise thing to want to do....

firstly things rely on root being called root
secondly this implies that you want your normal user to have root privelidges, very very very bad idea.

do. not. mess. with root. it's there for a reason.

if you are determined to destroy your system at a moments notice, you can add yourself to either the "root" or "wheel" user groups, depending on your distro, but don't.... it's a stupid idea.
No I dont want my normal user to have root priveledges, currently my normal username is 'smokey' but say that I want to have a new root username, such as 'tux'.

So i have have to 'su tux' to gain root priveledges on my system, reason for this, someone might want to login as 'root' but there is no such username as 'root'.....I know its not good to rely on security through obscurity but it can't hurt.
 
Old 07-19-2004, 01:57 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
edit /etc/passwd /etc/group /etc/shadow and anywhere else that has the name "root" for authentication purposes

last time i tried this when i used su it gave some crap about not finding a root user, it still worked tho

the only programs what will break are pieces of crap, a program should loopup the "root" user by its number, not name

so basically when you install things programs might give some shit about not finding the root user, and how it has to be done by a user named root ...... anyways, its not the best idea as many programs (more specifically during the installs) crap out, but after install i found i could change the roots name without to much headache (tho, i only had a text interface at the time, and no serious program.... so only rename root on a test machine, or after making up every file you messed with, and be sure to have a boot disk handy to recover the system just in case)
 
Old 07-19-2004, 02:13 AM   #5
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
someone might want to login as 'root' but there is no such username as 'root'....
You should never, ever, being running services that allow root to login directly. Almost every sanely written daemon will give you the option of denying root logins somewhere in it's config file. If it doesn't, then pitch it and find one that does. Allowing remote root logins dramatically cuts the time needed to brute force your way to root. Plus modifying the config files is going to be way less of a headache than will dealing with random errors caused by apps X,Y, and Z not being able to find root.
 
  


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 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 - Security

All times are GMT -5. The time now is 10:37 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