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 Jan 12, 2008 5:53 PM, Gene Heskett <gene.heskett@xxxxxxxxxxx> wrote:
> >From the sudoers file:
>
> [...]
> ## Allow root to run any commands anywhere
> root    ALL=(ALL)       ALL
> gene    ALL=(ALL)       ALL
>
Sure looks okay to me.  Note that you can also use:
gene    ALL=(ALL)      NOPASSWD: ALL

to be able to use sudo without having to enter the password.

>
> Humm, stupid?  question:  Does this only take effect after a reboot?

No reboot required, changes take effect immediately.

> 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:

You should use visudo to edit sudoers, not vi.  Try: man visudo for more info.
In addition to being safer, visudo will warn you if there are any
errors in the sudoers file.

Mike

-- 
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