Monitoring, Management & Location Tracking

 View Only
last person joined: one year ago 

Articles relating to existing and legacy HPE Aruba Networking products and solutions including AirWave, Meridian Apps, ALE, Central / HPE Aruba Networking Central, and UXI / HPE Aruba Networking User Experience Insight

Adding unix users with sudo privileges 

Jun 06, 2014 07:05 PM

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

/usr/sbin/visudo

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
awsupport ALL=(ALL) NOPASSWD: ALL

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

Statistics
0 Favorited
2 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.