user is not in the sudoers file. This incident will be reported.

Опубликовано: 16 Май 2026
на канале: JAY BHATT
995
13

you need to edit visudo file
so you need to use this command on normal user to switch
account to root user command is:-
su -
now enter root password
now you are switched to root user
now enter visudo command to edit sudoers file
now serach this line:-
#Allow members of group sudo to execute any command
and after %sudo
enter
username ALL=(ALL:ALL) ALL
now you are all set
now click esc button on the top left side of your keyboard and click
:wq and hit enter
now goto normal user run any sudo command now you need to enter normal user command to run super user do (sudo)command