sudoers file

Discussion in 'MacBook Pro' started by h34v3n, Aug 1, 2012.

  1. h34v3n macrumors newbie

    Joined:
    Aug 1, 2012
    #1
    I have been tracking about the sudoers file, is that it works for have administrator permission to execute commands in the CLI.

    The thing is when i add my username to the sudoers file, both

    /private/etc/sudoers
    /etc/sudoers

    like:

    username ALL = (ALL) ALL

    Nothing happend... any ideas why?

    I already try rebooting ...
     
  2. whiteonline macrumors 6502

    whiteonline

    Joined:
    Aug 19, 2011
    Location:
    California, USA
    #2
    You need to run visudo as root to edit the sudoers file. Do not edit directly.
     

Share This Page