LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How to edit "/etc/sudoers" (https://www.linuxquestions.org/questions/fedora-35/how-to-edit-etc-sudoers-430903/)

lchxr 04-02-2006 05:37 AM

How to edit "/etc/sudoers"
 
Hi, all

I just moved to FC5 and had basic packages installed. I want to add my username to "/etc/sudoers" so that I can run some commands as root. The document said that "/etc/sudoers" should be edited by "visudo". However, my new FC5 installation does not have "visudo" installed.

A similar problem is that I want disable/enable SELinux by using command "setenforce". This command has not been found in system. (Note: I typed in commmands as root, it did not any help).

Can anybody advice which extra packages I should install? Or 'yum install ????'

randyepperson 04-02-2006 06:00 AM

Greetings

From what I can tell, visudo is included in the sudo package. You might check out the sudo home site.

bjuhn 04-02-2006 06:10 AM

have you tried typing visudo in a shell? (xterm, aterm, konsole...)

lchxr 04-02-2006 07:23 AM

Quote:

Originally Posted by bjuhn
have you tried typing visudo in a shell? (xterm, aterm, konsole...)

Yes, I typed visudo or /sbin/visudo as root in a command line from gnome-terminal, it echoed something like "command not found".

bjuhn 04-02-2006 07:39 AM

aha, just checked on my fedora core 4, and it's in /usr/sbin/visudo

lchxr 04-02-2006 11:29 AM

Thank you, I got it.


All times are GMT -5. The time now is 02:29 PM.