LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2004, 10:55 PM   #1
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Rep: Reputation: 30
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
 
Old 09-27-2004, 11:17 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
Old 09-27-2004, 11:27 PM   #3
Kronux
Member
 
Registered: Sep 2004
Distribution: RH9/FreeBSD
Posts: 36

Rep: Reputation: 15
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
 
Old 09-28-2004, 12:25 AM   #4
Longinus
Member
 
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420

Original Poster
Rep: Reputation: 30
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
 
Old 09-28-2004, 12:46 AM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 do I retain the PATH in the root account even when I switch to root using su? thearchitect Linux - Newbie 1 08-13-2005 01:02 AM
[Redhat] make "admin" account same privledges as "root" Bi0haZarD Linux - Networking 20 01-12-2005 11:47 AM
Possible to make a second root account? Thaidog Linux - Newbie 8 09-21-2004 10:32 PM
How to make an account? las Linux - Networking 1 08-28-2004 05:12 AM
how to make a su account boundsofdreams Linux - Newbie 3 06-19-2004 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:06 PM.

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