LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-02-2006, 05:37 AM   #1
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Rep: Reputation: 15
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 ????'

Last edited by lchxr; 04-02-2006 at 07:27 AM.
 
Old 04-02-2006, 06:00 AM   #2
randyepperson
LQ Newbie
 
Registered: Dec 2005
Location: SW Wisconsin, US
Distribution: Debian - Lenny
Posts: 11

Rep: Reputation: 0
Greetings

From what I can tell, visudo is included in the sudo package. You might check out the sudo home site.
 
Old 04-02-2006, 06:10 AM   #3
bjuhn
LQ Newbie
 
Registered: Jan 2005
Distribution: gentoo, slackware, fedora core 4
Posts: 16

Rep: Reputation: 0
have you tried typing visudo in a shell? (xterm, aterm, konsole...)
 
Old 04-02-2006, 07:23 AM   #4
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Original Poster
Rep: Reputation: 15
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".
 
Old 04-02-2006, 07:39 AM   #5
bjuhn
LQ Newbie
 
Registered: Jan 2005
Distribution: gentoo, slackware, fedora core 4
Posts: 16

Rep: Reputation: 0
aha, just checked on my fedora core 4, and it's in /usr/sbin/visudo
 
Old 04-02-2006, 11:29 AM   #6
lchxr
Member
 
Registered: Mar 2006
Posts: 42

Original Poster
Rep: Reputation: 15
Thank you, I got it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Glade freezes when I click the "Edit Menu" button josedsilva Linux - Software 0 12-26-2005 10:45 PM
"Edit" existing post loses newlines on Konqueror wapcaplet LQ Suggestions & Feedback 1 12-04-2005 12:44 PM
"sudoers" questions. kornerr Linux - General 2 06-17-2005 12:04 PM
"No edit" signs on desktop folders and LOST modprobe (Fedora Core 2) smokylux Linux - Newbie 2 05-23-2004 05:10 AM
How do I change "fstab" to Write/Edit Mode? sharathkv Linux - Newbie 4 07-29-2003 07:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration