LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Create a New Super user account (https://www.linuxquestions.org/questions/linux-newbie-8/create-a-new-super-user-account-289741/)

blazted 02-13-2005 03:06 PM

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

chrisk5527 02-13-2005 03:14 PM

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

blazted 02-13-2005 03:22 PM

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

chrisk5527 02-13-2005 03:28 PM

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.

blazted 02-13-2005 03:44 PM

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

blazted 02-13-2005 03:46 PM

http://www.linuxquestions.org/questi...eate+superuser

Here is the Thread about creating a superuser

blazted 02-13-2005 03:56 PM

Ahh nevermind.

I user useradd -o -u 0 User_name.

Thank you though


All times are GMT -5. The time now is 02:32 AM.