Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

starikarp

macrumors member
Original poster
Apr 27, 2013
83
4
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...
 

justperry

macrumors G5
Aug 10, 2007
12,627
9,933
I'm a rolling stone.
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...

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?
 

justperry

macrumors G5
Aug 10, 2007
12,627
9,933
I'm a rolling stone.
Yes, it works.

: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.
 

starikarp

macrumors member
Original poster
Apr 27, 2013
83
4
That should be checked for an admin user.


Have you "modified" OS X in any way?

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.
 

starikarp

macrumors member
Original poster
Apr 27, 2013
83
4
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.
 

benwiggy

macrumors 68020
Jun 15, 2012
2,472
289
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.
 

starikarp

macrumors member
Original poster
Apr 27, 2013
83
4
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.

Thank you very much. It works.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.