root privileges

Hello,

As admin with root rights, to execute any command from another user without password-ask, I do : su - <user> -c "<cmd>"

But how can I do to give the same rights to another physical user without using root user ? :confused:

I've try to create another user "toor" with the same primary and secondary groups than root user but the password is asked each time...

Thanks.

check if sudo is what you want

Yes sudo if you do not have sudo installed you can use RBAC.
not sure if i can post links but here is the man page for sudo

Sudo Manual

for RBAC you use this link
BigAdmin Submitted Article: Custom Roles Using RBAC in the Solaris OS

Thanks for your help men :slight_smile:

no problem if you need any more help just ask. I work with this alot at work. i automated my SUDO and RBAC scripts.