For adding a new user in the 'sudoers' list follow the procedures given below:
(in order to do this you should have root user privilege)
--> Take terminal window (from Applications->Accessories->Terminal or press Ctrl+Alt+T)
--> Type the command: sudo visudo
the terminal will display something like this:
--> Now, after the 'root ALL=(ALL) ALL' statement, add your username in the following syntax:
eg: CODETECH\\tiger ALL=(ALL) ALL
Note: at the time of login you have to give CODETECH\\username as username
(in order to do this you should have root user privilege)
--> Take terminal window (from Applications->Accessories->Terminal or press Ctrl+Alt+T)
--> Type the command: sudo visudo
the terminal will display something like this:
------------------------------------------------------------------------------------------------------------------------------
GNU nano 2.2.2 File: /etc/sudoers.tmp
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Allow members of group sudo to execute any command after they have
# provided their password
# (Note that later entries override this, so you might need to move
# it further down)
%sudo ALL=(ALL) ALL
#
#includedir /etc/sudoers.d
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
-----------------------------------------------------------------------------------------------------------------------------
--> Now, after the 'root ALL=(ALL) ALL' statement, add your username in the following syntax:
domainname\\username = ALL=(ALL) ALL
eg: CODETECH\\tiger ALL=(ALL) ALL
Note: at the time of login you have to give CODETECH\\username as username