sudo, su...

macrumors member

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?

macrumors 603

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

Click to expand...

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?

macrumors 603

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.

thread startermacrumors member

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

macrumors 68020

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.

thread startermacrumors member

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.

MacRumors attracts a broad audience
of both consumers and professionals interested in
the latest technologies and products. We also boast an active community focused on
purchasing decisions and technical aspects of the iPhone, iPod, iPad, and Mac platforms.