Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: <USER> is not in the sudoers file. This incident will be reported.

Hybrid View

  1. #1
    Join Date
    Aug 2011
    Beans
    3
    Distro
    Ubuntu 11.04 Natty Narwhal

    <USER> is not in the sudoers file. This incident will be reported.

    Stupid mistake.... I have been using Ubuntu 11.04 X86 for about 4 days now after moving on from Mint and I got very irritated when the machine kept asking me for my password. So I then searched the net for a code that would disable this feature...

    The code I found was:
    Code:
    sudo visudo
    Then find the line that says:
    Code:
    %admin ALL=(ALL) ALL
    And replace it with:
    Code:
    %admin ALL=(ALL) NOPASSWD: ALL
    Now every time i try to access a 'sudo' code this is displayed:
    Code:
    ethan@Ethanje:~$ sudo ./genie_compiz
    [sudo] password for ethan: 
    ethan is not in the sudoers file.  This incident will be reported.
    There are no other users on my machine but me. What I want to know is, is there any way to fix this, or will I have to re-install Ubuntu and start ALL over again?

  2. #2
    Join Date
    Dec 2010
    Location
    Fukuoka, Japan
    Beans
    1,064
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: <USER> is not in the sudoers file. This incident will be reported.

    Can you re-edit the sudoers file with visudo or do you get the same error message there too?

  3. #3
    Join Date
    Aug 2011
    Beans
    3
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: <USER> is not in the sudoers file. This incident will be reported.

    Yeah, I get the same error

  4. #4
    Join Date
    Jul 2010
    Location
    51.508056, -0.128056
    Beans
    205
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: <USER> is not in the sudoers file. This incident will be reported.

    Have you given your root user a password? If you already have, then you can go

    su

    And that should ask you for your root password. You can then use that to edit the sudoers file. You could also try adding your user to the admin group via root.

  5. #5
    Join Date
    Apr 2010
    Location
    England
    Beans
    3,286

    Re: <USER> is not in the sudoers file. This incident will be reported.

    http://xkcd.com/293/
    There are 10 kinds of people in this world: Those who understand ternary, those who don't, and those who confuse it with binary.

  6. #6
    Join Date
    Oct 2005
    Location
    Holland
    Beans
    938
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: <USER> is not in the sudoers file. This incident will be reported.

    I hope you realize why Ubuntu has this "irritating" sudo feature?

    The idea is that you are only root for executing one command that needs the rights of a super user. And after that you are an ordinary user again. This prevents you to be su all the time, and forget that you are, and enables you to destruct your system (un)voluntarily.

    To prevent too much irritation however, if you give commands needing su rights, when you sudo again within a certain number of minutes (15?), you need not give your password again.

    The sudo feature, when you get used to it, is the main strong point of Ubuntu. It also makes that if you are the only user of the system, you only need one password, not that of yours as a normal user, ánd that for the root.

    Topsiho

  7. #7
    Join Date
    Nov 2008
    Location
    Southern Ontario, Canada
    Beans
    253
    Distro
    Ubuntu Development Release

    Re: <USER> is not in the sudoers file. This incident will be reported.

    Quote Originally Posted by mendhak View Post
    Have you given your root user a password? If you already have, then you can go

    su

    And that should ask you for your root password. You can then use that to edit the sudoers file. You could also try adding your user to the admin group via root.
    Do not do what this user is suggesting. In Ubuntu the root account is disabled for security reasons, and is not meant to be activated. Sudo does not require you to use an actual root password for anything.

  8. #8
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: <USER> is not in the sudoers file. This incident will be reported.

    post the output of

    Code:
    id ethan
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #9
    Join Date
    Jul 2010
    Location
    51.508056, -0.128056
    Beans
    205
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: <USER> is not in the sudoers file. This incident will be reported.

    (double post)

  10. #10
    Join Date
    Jul 2010
    Location
    51.508056, -0.128056
    Beans
    205
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: <USER> is not in the sudoers file. This incident will be reported.

    Quote Originally Posted by Serpher View Post
    Do not do what this user is suggesting. In Ubuntu the root account is disabled for security reasons, and is not meant to be activated. Sudo does not require you to use an actual root password for anything.

    I was suggesting it in order to rescue the sudoers file, which he can't get to with a normal sudo.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •