用 adduser 就可以把使用者變成 sudoer

seen from Canada
seen from United States
seen from China
seen from United States
seen from Canada
seen from Philippines

seen from United States

seen from Canada

seen from Singapore

seen from United States

seen from Malaysia
seen from Hong Kong SAR China
seen from Canada

seen from Canada
seen from China

seen from Canada

seen from United Kingdom
seen from China

seen from Canada
seen from United States
用 adduser 就可以把使用者變成 sudoer
How To Add A User To The Sudoers File In this quick video, I show how to add a user to the Sudoers file in Debian Wheezy (Linux).
*nix - User and Group management
List all users
cat /etc/passwd
Add a new user
useradd testuser
Modify testuser - adding to another group - apache
usermod -a -G apache testuser
Get a new password for testuser
passwd testuser
Add testuser to sudoer by modifying sudoers file like so:
vi /etc/sudoers
testuser ALL=(ALL) NOPASSWD: ALL
Delete user
userdel testuser
List all groups
cat /etc/group
Enumerate all groups of a user
groups testuser
This would list all the groups of logged-in user
groups
Note: If running some commands gives error - Command not found, then try
/usr/sbin/user* for user* commands
/usr/bin/groups for groups command
If that also doesn't work, find out the location of command like so:
whereis x OR which x
Update $PATH with the command path for future invocations.