Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.