Show all users:
cut -d: -f1 /etc/passwd
[For Ubuntu] Add user, change password and assign to admin group (create a sudo user)
# adduser [user name]
# passwd [user name]
# usermod -aG sudo [user name]
[For CentOS]
# usermod -aG wheel [user name]
Show all users:
cut -d: -f1 /etc/passwd
[For Ubuntu] Add user, change password and assign to admin group (create a sudo user)
# adduser [user name]
# passwd [user name]
# usermod -aG sudo [user name]
[For CentOS]
# usermod -aG wheel [user name]