LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-13-2005, 04:06 PM   #1
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Rep: Reputation: 15
Create a New Super user account


How do you create an account with Super User abilities?

I know this should not be done but I need to create another account with root privileges without using the su command. I have read the man pages and tried the search engine but everyone just says do not create another account with Super user privileges. I can not seem to figure this out except for a vague reference I found about a override option.

Thanks
 
Old 02-13-2005, 04:14 PM   #2
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
Look at using "sudo"

When using sudo, you can execute commands with root privileges. For example:

sudo ls -l /root

You ordinarily can't do that, but with "sudo" you can without the need for another root user.

This is what you will have to put in your /etc/sudoers file to make this command work correctly.

testuser ALL=(ALL) NOPASSWD: ALL
 
Old 02-13-2005, 04:22 PM   #3
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Original Poster
Rep: Reputation: 15
I know i can use Su to access root but this is for a project that specifically asks me to create an account with a superuser privileges other than root. I know it is stupid but I have to do this.

The only thing i have so far is i can create an account with the same UID as root which is 0. But everytime I try to create this account with user ID of 0 I get a UID 0 is not unique. IS there a way to override this and make my new user have the same privileges as root?

I user useradd -u 0 user_name and I get this message. Whn I try and use usermod to change the UID I also get this message.

Thanks
 
Old 02-13-2005, 04:28 PM   #4
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
You can't have the same UID for any two users. What you maybe be able to do is add your psuedo root user to the "root' group. This will give the new root users access to all directories that have a ownership mode of 770.

drwxrwx--- 3 root root 208 2005-01-31 19:15 test_dir/

This will allow the new user to read/write to the test_dir directory since its part of the root group. If your not familiar with permissions in *NIX, work on it. It will help out alot.
 
Old 02-13-2005, 04:44 PM   #5
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Original Poster
Rep: Reputation: 15
I am not sure i understand this. This system i am doing this on is on a virtual system using netkit (www.netkit.org) I don't have any groups set up. It is basically a fresh install when i create my virtual machine. But I need to create the additional user with privileges.

I have found info on a thread here that says you can create a super user account if you assign the UID as O and the person created it but I cannot seem to do this.

Googling it i found info that says to modify the paswd file but i do not know where to modify the UID.

Thanks
 
Old 02-13-2005, 04:46 PM   #6
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Original Poster
Rep: Reputation: 15
http://www.linuxquestions.org/questi...eate+superuser

Here is the Thread about creating a superuser
 
Old 02-13-2005, 04:56 PM   #7
blazted
Member
 
Registered: Nov 2004
Distribution: Red Hat Version 9 / Attempting to use Gentoo
Posts: 48

Original Poster
Rep: Reputation: 15
Ahh nevermind.

I user useradd -o -u 0 User_name.

Thank you though
 
  


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
linux create user account deus1 Linux - General 2 06-04-2005 07:32 PM
crate a super user account sampathnd Linux - General 1 05-27-2005 12:32 PM
how to create root-like user/account? rsumbeling Linux - General 6 11-23-2004 01:38 PM
How Do I Create A Super User That Can Do Anything? rpgdeveloper Linux - Newbie 6 11-16-2004 02:02 PM
cannot create new user account kpachopoulos Linux - Newbie 4 08-17-2004 08:38 AM

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

All times are GMT -5. The time now is 05:48 AM.

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