Results 1 to 9 of 9
whenever i try to install an application it requires root auth. for example i try to install mysql like following
Code:
sudo yum install mysql
it gives following warnin after ...
- 04-08-2009 #1Just Joined!
- Join Date
- Jan 2007
- Posts
- 27
[SOLVED] is not in the sudoers file. This incident will be reported.
whenever i try to install an application it requires root auth. for example i try to install mysql like following
it gives following warnin after root passCode:sudo yum install mysql
in order to add zodehala into sudoers file i gives following commandCode:zodehala is not in the sudoers file. This incident will be reported
it gives following warning after root passCode:sudo gedit /etc/sudoers
is it a paradox ? or what ?Code:zodehala is not in the sudoers file. This incident will be reported
- 04-08-2009 #2
You don't edit the sudoers file directly. Log in as root (terminal) and type the following:
From now on you can use sudo as user zodehala.Code:echo 'zodehala ALL=(ALL) ALL' >> /etc/sudoers
Glenn
Powered by Fedora 16 and Arch Linux
- 04-08-2009 #3Is that so? I always edit it directly using visudo. visudo - Wikipedia, the free encyclopediaYou don't edit the sudoers file directly. Log in as root (terminal) and type the following:
Some distros, like Ubuntu, set up the first user created with sudo priveleges automatically, others, like Fedora, set up a root password, but your user doesn't have sudo priveleges. You can set your user up, but you need to "su" to root to do so.
- 04-09-2009 #4Just Joined!
- Join Date
- Sep 2007
- Location
- Lafayette, IN
- Posts
- 83
I'd feel more comfortable using visudo than echoing to sudoers. visudo does some syntax checking before it writes /etc/sudoers, allowing you to catch (most) mistakes without breaking things. Plus, echoing leaves you open to only including one bracket, which would overwrite your existing file.
Also, if you don't like vi, you can change the EDITOR environment variable to whatever you want. For example:
Code:[521 root@devo ~ ]$ EDITOR=nano visudo
Last edited by Ben Cotton; 04-09-2009 at 12:28 AM. Reason: adding more info
- 04-09-2009 #5
I agree with glennzo.
If I am sure that the command I am going to add in sudoer file is correct then I prefer echo instead of editing file. Its really simple and easy way to add contents in file.
Code:su - echo 'zodehala ALL=(ALL) ALL' >> /etc/sudoers
It is amazing what you can accomplish if you do not care who gets the credit.
New Users: Read This First
- 04-09-2009 #6Just Joined!
- Join Date
- Jan 2007
- Posts
- 27
i did it like here
Adding yourself to the sudoers file | Ruby Pond
- 04-09-2009 #7Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
- 04-12-2009 #8
- 04-08-2010 #9Just Joined!
- Join Date
- Nov 2005
- Location
- UK
- Posts
- 19
Good post, help me, and I like that is easy to do it....
Thanks,



