Multiple super users

Hello to all and good day,
I would like to know how to make 2 users superusers(root) but each one has its own root password…
Thanks in advance.

Use sudo to grant both users the ability to go superuser.

How to do that from yast->sudo?

I think there doesn’t have the option of passwords.

They use their own passwords to gain access through sudo.

I am sorry but I do not understand…:frowning:

I have to add them in the table at yast->sudo and then they use their login password to change to su?

No, they use their password to sudo.

I don’t know if the YaST sudo does the right thing since I don’t use it. So I will describe it in terms of editing /etc/sudoers with visudo. It would be to comment out these two lines:

Defaults targetpw # ask for the password of the target user i.e. root
ALL ALL=(ALL) ALL # WARNING! Only use this together with ‘Defaults targetpw’!

and uncomment this one:

Uncomment to allow people in group wheel to run all commands

%wheel ALL=(ALL) ALL

Then you put your two users in the group wheel. Or instead you could use a user alias:

User_Alias ADMINS = alice, bob
ADMINS ALL=(ALL) ALL

Bear in mind that once you give them root access, they can do anything, including changing the root password and locking you out.

If you just want them to be able to run a few commands as root, sudo can do that for you too.

Ok but I do not see the choice to select their own password for root and not having a common one…

There won’t be any. They use their own passwords. Each account has only one password. There isn’t anywhere to store extra passwords. In operation they do:

sudo bash

then supply their own password and they get a root shell.