Re: username is not in sudoers folder

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

 



On 06/10/2013 09:38 PM, Joe Zeff wrote:
On 06/10/2013 06:10 PM, Doug wrote:
You need to edit the sudoers file. You should find a copy that works
and make yours look like that. (Hint: you need to add a line with
your user name and the word ALL in it.) You can edit it with any
editor, or if you know vi, then you can use visudo. You will have to
have admin privileges to do this, so if you can't su to root, you
will need to find out how to do that, first.

And of course, if you can do that, you don't need sudo. To me, sudo is a fine tool if you want to give access to a few admin tools to people who don't (and shouldn't) know the root password. However, I can't see the point of using it if you're the person who installed Linux and created the root password.
For me personally, using sudo on a personal system is just best practices since I administer other servers; discipline if you will. Having done root and sudo at some point during my use of *nix the sudo is not particularly inconvenient. If I have a few things to do as root I will sudo. If I have several things to do as root I will su to root. If I have root environment specific things I need to do I will su - or login directly to root. I prefer not to stay there any longer than necessary and for security my root pw tends to be, well... long. As mentioned, it is the beauty of the *nix world. Do what works best for you.

Adding a user I simply edit the /etc/sudoers file with vi with the + flag (so I don't have to scroll down so far) and add my user.

## Allow root to run any commands anywhere
root    ALL=(ALL)     ALL

edited to:

## Allow root to run any commands anywhere
root    ALL=(ALL)     ALL
user    ALL=(ALL)    ALL

This has worked for me.

Fred
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux