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