sudo, su...

Discussion in 'OS X Mountain Lion (10.8)' started by starikarp, Apr 27, 2013.

  1. macrumors member

    Joined:
    Apr 27, 2013
    #1
    Hi!

    I am new in the forum and new in Mac world too but I have experience with Linux and last eight years with FreeBSD.
    I have problem with su/sudo. Whenever I try to do something with sudo it asked me for password which is normal but when I type correct one from admin I got Sorry try again...
    Do I need to check user for "Allow user to administer this computer", please? Or is something else?

    Thanks in advance...
     
  2. macrumors 603

    justperry

    #2
    Bold: If you see this in your own User Account it means you are already an Admin.

    Something else is going on.
    If you install an App and it asks for your password will it work there?
     
  3. thread starter macrumors member

    Joined:
    Apr 27, 2013
    #3
    Yes, it works.
     
  4. macrumors 603

    justperry

    #4
    :confused:

    Now, what you could do is open the system log, with console, leave it open and type a sudo command in terminal, enter your password and if you get that error again right away look into the system log, it might give you insight to what is going on, it should have an entry.
     
  5. macrumors 68020

    Joined:
    Jun 15, 2012
    #5
    That should be checked for an admin user.

    Have you "modified" OS X in any way?
     
  6. thread starter macrumors member

    Joined:
    Apr 27, 2013
    #6
    No, I didn't modify anything...
    I bought iMac i7 from my friend. He upgrade on Mountain Lion long time ago. When I start (turn on) computer it ask me to setup account and some other things as a new owner. I was as Administrator and than I added a user for everyday work. I installed some programs (GIMP, LibreOffice...Xcode) and I try to install ffmpeg and I found it that sudo doesn't work.
    Today I login as administrator, try to see /etc/sudoers and I got:
    sudoers: Permission denied

    Surprise...

    Thank you.
     
  7. thread starter macrumors member

    Joined:
    Apr 27, 2013
    #7
    Again me...
    What I found it in Users & Groups.
    In Network Account Server - Directory Editor user who should be administrator it shows at recordtype:
    dsRecTypeStandard:Users

    It is the same as standard user. But on the first page it shows name, bellow is Admin and Allow user to administer this computer has a check mark.
     
  8. macrumors 68020

    Joined:
    Jun 15, 2012
    #8
    Don't start messing with the Directory Service database.
    Both my admin accounts have "recordtype: dsRecTypeStandard:Users".

    1. Turn on admin privileges to your Standard account. This will, hopefully, give you some admin ability.
    2. Turn OFF admin privs in the Admin account. Leave the Users & Groups Pref pane. Then go back and turn it on. See if that helps.
     
  9. thread starter macrumors member

    Joined:
    Apr 27, 2013
    #9
    Thank you very much. It works.
     

Share This Page