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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
09-27-2004, 10:55 PM
|
#1
|
Member
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420
Rep:
|
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
|
|
|
09-27-2004, 11:17 PM
|
#2
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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.
|
|
|
09-28-2004, 12:25 AM
|
#4
|
Member
Registered: Sep 2003
Distribution: Redhat 9.0 && Slackware 9.1
Posts: 420
Original Poster
Rep:
|
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
|
|
|
09-28-2004, 12:46 AM
|
#5
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
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 03:06 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|