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

BobRon

macrumors member
Original poster
Oct 13, 2012
34
7
Hi.
I need to uninstall some software using a sudo command, but when I type the admin password, it doesn't work!
I try doing:
Code:
sudo su
with the admin password, but it says
Code:
Sorry, try again.
I enabled root user and try
Code:
su
but it also says
Code:
su: Sorry
I repaired disk permissions and everything BUT IT STILL DOESN'T WORK!!
:mad::mad::mad::mad::mad::confused::confused::confused::confused::confused::confused::eek::eek::eek::eek::eek:
Yes, the admin is the original account created with this mac
 

jpenguin

macrumors member
Jul 21, 2008
33
1
to use sudo, you account needs to be 'allowed to administer'

su can be used to switch to any user,

su shortusername -


to switch to root, you can use

su -

or

sudo su -
 

benwiggy

macrumors 68020
Jun 15, 2012
2,470
288
Hi.
I need to uninstall some software using a sudo command, but when I type the admin password, it doesn't work!
I try doing:
Code:
sudo su
Any reason you don't just use sudo rm <files> ....?
As said, the password must be valid for an admin account.

I enabled root user
If you enabled the root user, and logged into it, then you should be able to delete anything anything without using sudo. Root has access to everything.
Make sure you disable the root user when you're done.

I repaired disk permissions and everything
Repair Permissions rarely does much. If a genuine admin account password doesn't work, sounds like the sudoers file has got corrupted somehow.
 

BobRon

macrumors member
Original poster
Oct 13, 2012
34
7
well, i manually edited the sudoers file to include a different admin specifically, and it worked!:D But i can't use my current original admin account :(
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.