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 awsupportwould 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 awsupportwill 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/visudoand 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 commandsawsupport ALL=(ALL) ALL## Same thing without a passwordawsupport ALL=(ALL) NOPASSWD: ALLAs always, you can check the man file for sudoers (man sudoers) to read about different configuration options.
© Copyright 2024 Hewlett Packard Enterprise Development LPAll Rights Reserved.