How do I edit sudoers file in fedora?

101

Note that while you could edit the sudoers file (using visudo in a terminal as root), what you probably actually want to do is add yourself to the wheel group. See How to make Fedora user a sudoer? for details, but in short, this group is predefined as having sudo-for-everything privileges and is our standard "admin" group. (If you check the "make user an administrator" box when creating your user at installation time, that's what it does.)

To do this, you can run

gpasswd wheel -a username

as root (and then log in again as your user). Or, the GUI user configuration tool in GNOME also has this ability; go to the control panel or hit the Overview button (windows key, usually) and start typing "users". In that panel, hit "unlock" in the top right — since you're not an admin already, this should prompt for the root password. Find your user account, and where the line says "Account Type: Standard", click on "Standard" and change it to "Administrator". Again, you'll need to log out and in again, but when you do, you will have sudo access.

Share:
101

Related videos on Youtube

methuselah
Author by

methuselah

Updated on September 18, 2022

Comments

  • methuselah
    methuselah over 1 year

    I am trying to reset my div element to white after an onclick event, but have had little success. Any idea what is going wrong? It stays "stuck" on red.

    $('.timeline-item').click(function() {
        $(this).css("background-color","red");
        setTimeout(function() {
            $(this).css("background-color","#FFFFFF");
        }, 250);
    });
    

    Fiddle here

    • Zack
      Zack almost 8 years
      Probably. I'm mostly on stackoverflow, don't have a ton of experience with sysadmin stuff.