Login redhat
[redhat@localhost ~]$ sudo su -l
redhat is not in the sudoers file. This incident will be reported.
[redhat@localhost ~]$
Login root
vim /etc/sudoers
root ALL=(ALL) ALL
redhat ALL=(ALL) ALL
Login redhat
[redhat@localhost ~]$ sudo su -l
[sudo] password for redhat:
[root@localhost ~]#
[redhat@localhost ~]$ sudo su -l
redhat is not in the sudoers file. This incident will be reported.
[redhat@localhost ~]$
Login root
vim /etc/sudoers
root ALL=(ALL) ALL
redhat ALL=(ALL) ALL
Login redhat
[redhat@localhost ~]$ sudo su -l
[sudo] password for redhat:
[root@localhost ~]#


