Add user for sudoers file in fedora

[sathia@localhost ~]$ sudo gedit hi.txt
[sudo] password for sathia:
sathia is not in the sudoers file.  This incident will be reported.

I got this prompt when i use sudo . then after using typing “su” . I will
open root file

Then I solved this .

Go as root user and then done the following these details .

[root@localhost sathia]# visudo

here add this below line in that file

usrename  ALL=(ALL)       ALL

eg) sathia ALL=(ALL)    ALL

Now check it 🙂

[sathia@localhost ~]$ sudo gedit hi.txt


About sathia

Web developer at cloudmint
This entry was posted in Fedora. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s