If I understand the requirement, then you probably want to create
normal users and simply add them to the /etc/sudoers file.  That will
give them superuser authority via 'sudo', which is generally the
better way to do it.

-- R;   <><
Rick Troth
Velocity Software
http://www.velocitysoftware.com/





On Wed, Sep 7, 2011 at 17:51, Sue Sivets <[email protected]> wrote:
> We're hosting a class sometime in the next week or two, and I've been
> asked to create 8 userids with superuser authority on a RedHat 5.4
> system. I thought I had been fairly successful, but  when I tried to
> test the userids, I keep getting a password prompt, and at this point
> I'm frustrated and not a happy camper.  I hope someone can tell me what
> I'm doing wrong. I also hope and suspect that it's something simple
> stupid.  I've got a couple of questions.
>
> First, what command and options should I be using to create the userid
> w/ a home directory and whatever else may be needed, along with the
> superuser attributes?
> Second what option do I need to use to make these userids superusers. I
> was told that their uid needed to be zero, and I didn't need to do
> anything else. That's apparently not quite true.
> Third, how do I list the userid after it's created?
>
> My initial attempt was the following command:
>     useradd -p user1 user1
> but it doesn't create a superuser. So then I tried
>    usermod -o -u 0 user1
> but I got an error message with --help info so I deleted the user1
> userid with userdel, and started over. This time I tried
>   useradd -o -p user1  -u 0 user1.
> I still couldn't log on so I changed the password:
>   usermod -p xuser1 user1
> and I still can't log on.
>
> I  know I'm missing something, but I haven't got the foggiest idea what
> it might be.
>
> Sue Sivets
>
> --
>  Suzanne Sivets
>  Systems Programmer
>  Innovation Data Processing
>  275 Paterson Ave
>  Little Falls, NJ 07424-1658
>  973-890-7300
>  Fax 973-890-7147
>  [email protected]
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or
> visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit
> http://wiki.linuxvm.org/
>

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to