Adding unix users with sudo privileges

Aruba Employee
Aruba Employee

Below is a brief explanation of adding a unix user and giving him sudo privileges. The procedure on the AMP is the same as it would be on a 'normal' unix installation, so there are a variety of print and web resources available that go into more detail.

The command to add a user is simply useradd. So:

useradd awsupport

would add a user account named awsupport. There are a lot of different options you can give the useradd command, and you can read the manual page for a breakdown (man useradd). The account is disabled by default unless you provide a password as an argument to useradd, but the root user can change a user account password at any time using the passwd command:

passwd awsupport

will prompt for the new password and then the confirmation. Giving the user sudo privileges requires adding an entry to the /etc/sudoers file. You can do so by running


and then adding one of the below lines, the 1st will prompt for password, the 2nd will not:

## Allows people in group wheel to run all commands
awsupport ALL=(ALL) ALL

## Same thing without a password

As always, you can check the man file for sudoers (man sudoers) to read about different configuration options.

Version history
Revision #:
1 of 1
Last update:
‎06-06-2014 04:05 PM
Updated by:
Labels (1)
Search Airheads
Showing results for 
Search instead for 
Did you mean: