The su command is used to switch between different users , such as using User1 login system, but to perform some administrative operations, such as Useradd, ordinary users do not have this permission, there are two ways to solve the problem.
1: Exit the User1 user, re-login to the system root, but the root password does not tell many people, which is not conducive to system security and management.
2: Use the SU command to switch to root to add the user's work, after the addition of the SU command to quit the root user.
sudo normal user gets super permissions
In the Linux system, administrators often have many, if each administrator to manage the daily work with root identity, permission control is a must face problem. Normal user's daily operation permissions are limited, how to let
Regular users also do some system management work. Sudo is a good solution to this problem. sudo allows users to use commands and programs that require root to run in a specific way.
It says that the workaround for the Nannan user is not in the sudoers file
You can add users by graphical interface, etc...
Su and sudo commands