LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make another root account (https://www.linuxquestions.org/questions/linux-newbie-8/make-another-root-account-236024/)

Longinus 09-27-2004 09:55 PM

make another root account
 
hi

can i make another user say "root2"

and have him have the same exact privs as root?

when i run adduser and when it asks what group should he belong to, i try to type "root" but it says "no such group name"

this is on bsd

thanks

btmiller 09-27-2004 10:17 PM

All accounts with UID 0 have superuser priviliges. There is no group root on most BSD systems, instead the group with GID 0 is the wheel group.

Anyhow, why do you want to do this? It's generally considered a bad idea, security-wise.

Kronux 09-27-2004 10:27 PM

man sudo

This would be a little better idea to follow, security-wise.
http://hpux.cs.utah.edu/hppd/hpux/Sy.../sudo-1.6.7p5/

Hope this works for you!

_Kx

Longinus 09-27-2004 11:25 PM

my friend and i have a server hosted and he wants to have his own little root account for some reason, i just dont want to get him upset lol

well when i do adduser and it asks for uid, i enter in 0 but when i do it says "uid is already in use" so i just hit enter for the default

and then i asks for user class, i dont know what this means, so i just hit enter for the default

then it asks for group, i enter in wheel
then i fill out the other stuff, but when i log in with the account i still do not have root priveleges

any suggestions?
thanks

btmiller 09-27-2004 11:46 PM

Useradd does some sanity checks and probably is refusing to create an account with userid 0. You can add ithe account to the passwd and master.passwd (the BSD equivalent of /etc/shadow) directly, but why not follow Kronux's suggestion and use sudo. Another option, I share a couple servers with a friend, and we just both have the root password.


All times are GMT -5. The time now is 12:51 AM.