This page gives basic information about Sudo users.
The file used by sudo is /etc/sudoers
Never use vi to open this file. Use the command “visudo”
By adding this in sido file user1 will be able to add users
ALL means user1 can run this command from any IP. Instead we could specify an IP.
If user1 wants to add a user he should execute the command:
[Hostname]# sudo =/usr/sbin/useradd user2
Password for user1 will be asked
By this all command =/usr/sbin/ will be accessible to user1
By this everyone in the group group1 could run command in /usr/sbin/