Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
hmmm,just edit your /etc/passwd and /etc/shadow(no neead to edit this,but do a 'pwconv' to shadow the new /etc/passwd.).just create a new line with the same entries as that of the user.then change the name of root to something else.about the password-what i did was,first shadow /etc/passwd.
Code:
pwconv
.
then delete the password (x) corresponding to root.this will make your root passwordless.then just copy the line corresponding to root.and change the name root in the new line.and then change the passwdord using
Code:
passwd
.
I dont know about the problems this will cause.I am having 2 roots in my system.and there has been no problems over this.
--arun.
Security thru obscurity is not the solution. I would suggest to setup sudo like mentioned before or simply su'ing to root when needed. You should never be logged in as root for any reason unless necessary.
Logging in as your everyday user is good practice, as there is no need to be root all the time on your machine.
Originally posted by arunshivanandan I dont know about the problems this will cause.I am having 2 roots in my system.and there has been no problems over this.
--arun.
I never understood the logic behind this. If you need full root access, why not use the root account? That's why it's there. Otherwise you should use sudo. Duplicating the root account under another username may give you full access, but it also creates other problems.
I created those two roots(one is root and the other is arun) just as an experimentation.It has not caused any problems to me.I never unnecesserily work in root,and i use 'su'.again,let me say,it was for experimentation only.
--arun
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.