Re: sudo doesn't work, I'm not in sudoers file, but I am.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 12 January 2008, Steven Stern wrote:
>On 01/12/2008 04:53 PM, Gene Heskett wrote:
>|>From the sudoers file:
>|
>| [...]
>| ## Allow root to run any commands anywhere
>| root	ALL=(ALL) 	ALL
>| gene	ALL=(ALL)	ALL
>|
>| That 2nd line is the only addition to the file as distributed.
>|
>| Humm, stupid?  question:  Does this only take effect after a reboot?
>
>Cuz now
>
>| its working, not only from a shell I did an "su - gene" in but from a
>
>direct
>
>| login on tty2 as myself.
>|
>| Weird, I just took it back out, (vim said it was a read-only file so I
>
>had to
>
>| use the :w! to write it) and the lockout was instant:
>|
>| [gene@coyote ~]$ sudo ls -l
>| Sorry, user gene is not allowed to execute '/bin/ls -l' as root on
>| coyote.coyote.den.
>|
>| Same message I've been getting for a week or more, and its been at
>
>least a
>
>| week since I added the 'gene' line above without any visible effect.
>
>F8 is
>
>| gonna put me on the funny farm yet.  And that ain't funny!  Some might
>
>say
>
>| its not a long drive and offer to buy the gas even...
>|
>| So I then put it back in, and I'm allowed.  Go figure, but I'd sure
>
>like to
>
>| know why the hell it hasn't worked until today...
>|
>| Thanks.  Unless it upchucks on me again, I guess this is a 1 message
>
>thread..
>
>
>Take the "gene" line out of the sudo file. To edit it, use "visudo".

I was using vim, having forgotten about visudo.

>Uncomment the "wheel" line:
>~  ## Allows people in group wheel to run all commands
>~  %wheel  ALL=(ALL)       ALL
>
>Save the file and exit visudo.
>
>Now, edit /etc/group and add yourself to the  wheel group.
>
And that works too, thanks, Steve.
>--
>
>~  Steve



-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Captain Penny's Law:
	You can fool all of the people some of the
	time, and some of the people all of the
	time, but you can't fool mom.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux