Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th June 2008, 09:12 PM
ReM625 Offline
Registered User
 
Join Date: Jun 2008
Posts: 1
Sudoers with visudo

I am trying to modify the Sudoers file on fedora 9. To do this I am trying to use visudo yet I always get the error that visudo can not be found. I was under the assumption that visudo was provided in the sudo package and was wondering where I could obtain it if it was not provided already. Thanks
Reply With Quote
  #2  
Old 30th June 2008, 09:17 PM
axel's Avatar
axel Offline
Registered User
 
Join Date: Apr 2005
Location: Thessaloniki, Greece
Posts: 290
Are you trying to run visudo as root or single user? Anyway, take a look here

http://www.my-guides.net/en/content/view/103/1/#sudo
Reply With Quote
  #3  
Old 30th June 2008, 11:04 PM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Also see
http://home.nyc.rr.com/computertaijutsu/rhpath.html

It's possibly the $PATH that you're using.
Reply With Quote
  #4  
Old 30th June 2008, 11:42 PM
pparks1's Avatar
pparks1 Offline
Registered User
 
Join Date: Mar 2004
Location: Westland, Michigan
Age: 38
Posts: 2,317
Ensure that when you are switching to root that you are using
su - (with the dash).


Without the dash (su) makes you root, but you retain your own user PATH...which likely doesn't include the location of the visudo command. With the dash (su -)...and you become root and have root's profile (thus root's path).
__________________
RHCE and MCSE systems administrator
Registered Linux User #375155 For More Info or to register yourself

My Linux box is:
Ubuntu 8.04, Antec Sonata II case with 450-watt PS, AMD 64 X2 4600+ (65 watt), 4GB DDR2 800 RAM, 18X Lite-On DVD burner, Asus M2NPV-VM, Nvidia GeForce 7600GT (256MB), 320GB Western Digital SATA 3.0Gbps, Logitech MX-310, Dell 18" ultrasharp LCD, Microsoft Natural Ergonomic Keyboard 4000 and 2.1 Boston Acoustics sound system..
Reply With Quote
  #5  
Old 30th June 2008, 11:50 PM
Kilo's Avatar
Kilo Offline
Registered User
 
Join Date: Mar 2004
Location: Surrey / London, England
Age: 33
Posts: 67
If you don't want to add the location of visudo to your path, you can just call it with an absolute path. To find it:

Code:
# locate visudo
Gives me:

Code:
neil@hatzenbach[3] locate visudo                                                                     ~
/usr/sbin/visudo
/usr/share/doc/sudo-1.6.9p4/visudo.pod
/usr/share/man/man8/visudo.8.gz
So then to execute:

Code:
# /usr/sbin/visudo
Reply With Quote
  #6  
Old 1st July 2008, 12:05 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298
Better yet - learn what "echo $PATH" means.
Reply With Quote
  #7  
Old 1st July 2008, 12:54 AM
Brian1's Avatar
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,511
Or change default editor to one you know you have. Change to root and run this command before visudo command. If you have nedit then use this example.
export EDITOR=nedit
visudo

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
Reply

Tags
sudoers, visudo

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
visudo paul sanz Servers & Networking 1 11th June 2008 11:49 AM
Visudo FC7 Anniedog Using Fedora 4 10th June 2007 04:36 PM
visudo 3006828 Using Fedora 7 28th June 2006 03:28 PM
Can't edit sudoers with visudo lesliek Using Fedora 3 5th October 2005 07:11 AM
why i cannot use visudo? rayyes Using Fedora 2 22nd December 2004 03:14 PM


Current GMT-time: 11:42 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat