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

30th June 2008, 09:12 PM
|
|
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
|

30th June 2008, 11:42 PM
|
 |
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..
|

30th June 2008, 11:50 PM
|
 |
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:
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:
|

1st July 2008, 12:05 AM
|
 |
Registered User
|
|
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,298

|
|
|
Better yet - learn what "echo $PATH" means.
|

1st July 2008, 12:54 AM
|
 |
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.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
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)
|
|
 |
 |
 |
 |
|
|