Results 1 to 3 of 3

Thread: [SOLVED] sudoers has got its knickers twisted

  1. #1
    Join Date
    May 2007
    Location
    UK near Bedford
    Beans
    3,483
    Distro
    Ubuntu Development Release

    [SOLVED] sudoers has got its knickers twisted

    I booted my machine this morning and when trying to install something using apt-get I got the following

    >>> sudoers file: syntax error, line 12 <<<
    sudo: parse error in /etc/sudoers near line 12
    my sudoers file looks like this

    # /etc/sudoers
    #
    # This file MUST be edited with the 'visudo' command as root.
    #
    # See the man page for details on how to write a sudoers file.
    #

    Defaults env_reset

    # Uncomment to allow members of group sudo to not need a password
    # %sudo ALL=NOPASSWD:
    ALL

    # Host alias specification

    # User alias specification

    # Cmnd alias specification

    # User privilege specification
    root ALL=(ALL) ALL

    # Members of the admin group may gain root privileges
    %admin ALL=(ALL) ALL

    # Entries for Smb4K users.
    # Generated by Smb4K. Please do not modify!
    User_Alias SMB4KUSERS = peter
    Defaults:SMB4KUSERS env_keep += "PASSWD USER"
    SMB4KUSERS Mesh = NOPASSWD: /usr/bin/smb4k_kill
    SMB4KUSERS Mesh = NOPASSWD: /usr/bin/smb4k_umount
    SMB4KUSERS Mesh = NOPASSWD: /usr/bin/smb4k_mount
    # End of Smb4K user entries.
    Can anyone help here?

    Thanks
    PC

  2. #2
    Join Date
    Nov 2005
    Location
    NEK Vermont
    Beans
    Hidden!
    Distro
    Ubuntu UNR

    Re: sudoers has got its knickers twisted

    You see the word ALL by itself on line 12? That is the error. Line 11 should look like this :
    Code:
     # %sudo ALL=NOPASSWD: ALL

  3. #3
    Join Date
    May 2007
    Location
    UK near Bedford
    Beans
    3,483
    Distro
    Ubuntu Development Release

    Re: sudoers has got its knickers twisted

    Thanks Spiderbatdad,
    that fixed it - I do not know how that came about as I have not edited the file at all.

    PC

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
  •