-
Notifications
You must be signed in to change notification settings - Fork 9
Installation Step 2
Create system account 'ngnms' as root.
On new installs you may have already created your ngnms user during OS installation. If done so, skip to verification step at the end of this section (before Installation Step 3)
user@host:~$ useradd -m ngnms
or
useradd -m ngnms -s /bin/bash ( ← use bash for real user accounts )
If you want to use password based authentication do:
user@home:~$ sudo passwd ngnms
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
For certificate based authentication, add your public key to the /home/ngnms/.ssh/authorized_keys In this case you can do without password, but we recommend to add passphrase to your certificates during creation for added security.
Example:
cd /home/ngnms
mkdir .ssh
cp /home/centos/.ssh/authorized_keys /home/ngnms/.ssh/authorized_keys
chown -R ngnms:ngnms .
Now add all system and privileged users to sudoers list:
usermod -a -G sudo ngnms
OPTIONAL: Make bash (v.2) a default shell for user 'ngnms' (OPTIONAL FOR DEV AND TEST SYSTEMS ONLY).
sudo vipw
NOTE: DO NOT MAKE BASH DEFAULT SHELL FOR NGNMS SYSTEM USER ON PRODUCTION SERVERS DUE TO SECURITY CONCERNS!
TO VERIFY:
groups ngnms
sudo -l