What is the command to add user to sudo?

Hi guys,
I would like to add a new user and add him to sudo.
appreciated if someone can give me the command to do so.

Thanks

visudo and add the user or, if you have an administrative group (eg. wheel) add the user to the group with adduser $USERNAME wheel

1 Like

This is not really an AIX question. Rather, it is a sudo question and the solution will depend on how you have configured sudo.

The key file is located, usually, at /etc/sudoers .

The standard command for editing this file is: visudo

Hope this helps!

1 Like

the AIX command to create a new user is mkuser, but if you are asking, then I suggest to not try but to use the gui/txt administration interface: smitty ( txt ) /smit ( X11 ) by typing the shortcut

 smit/smitty user
1 Like