Click to See Complete Forum and Search --> : adding another superuser account


Syngin
11-19-2001, 11:24 AM
Is this possible? I need to give a tech a superuser login but I'd like to be able to delete it once he's finished his work.

chikn
11-19-2001, 11:51 AM
prolly have to use sudo

Strike
11-19-2001, 12:03 PM
sudo is probably the best way to do it, but technically anyone with a UID of 0 is a superuser

Syngin
11-19-2001, 03:14 PM
Thanks guys. Where abouts would this normally be located? (using RedHat 6.1)

I've got sulogin in /sbin but that's all I can find?

Gonna go and see if Redhat.com normally has it. (this is a modded version of RH6.1)

Thanks for pointing me in the right direction. ;)

Syngin
11-19-2001, 03:19 PM
Ooooohhh. hehe Just caught on. Thought sudo was for setting UID values on accounts.

What exactly WOULD I use to change UID values on this old RH install, if at all?

Thanks for the help guys :)

[ 19 November 2001: Message edited by: Syngin ]

Silent Bob
11-19-2001, 05:37 PM
All you need to do is to change the UID in /etc/passwd

The root account will look something like this:
root:x:0:0:root:/root:/bin/bash

A normal account will look like this:
<login name>:x:UID:GID:<full name>:<home directory>:<shell>

All you need to do is to make an account for the tech and change the UID and GID for his account in /etc/passwd to 0's

Syngin
11-20-2001, 10:52 AM
Cheers Bob. Thanks for the help. :)

Sorry about the response delay too.