用 adduser 就可以把使用者變成 sudoer
seen from Serbia

seen from Türkiye
seen from United States
seen from United States

seen from Netherlands

seen from India
seen from United States

seen from United States

seen from South Korea
seen from Malaysia

seen from United States
seen from France
seen from United Kingdom
seen from South Korea
seen from China
seen from United States

seen from Türkiye
seen from Serbia
seen from China

seen from Maldives
用 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.