Thursday, April 10, 2014

Nasty MacPorts bug (sudo not working right)

If you are regular reader of this blog, this post is on a different topic just skip it.

I'm posting this here because this was a hard to find MacPorts bug that comes with the latest version of dbus.  dbus is a KDE utility that's a dependency for lots of packages.

dbus creates a user called "Message Bus" whose shortname is "root".  Which of course trashes sudo, su and creates all sorts of other problems.  To tell if you have been hit by this you can either you will get password errors with sudo and su.

To see if you have this problem do a
dscl . -read /Users/root

If you just get an error you are fine.  If you got hit with the bug you should see something like this:

dsAttrTypeNative:_writers_passwd: root
AppleMetaNodeLocation: /Local/Default
AuthenticationAuthority: deleted

GeneratedUID: deleted
NFSHomeDirectory: /var/empty
Password: ********


PrimaryGroupID: 80
 Message Bus
RecordName: root
RecordType: dsRecTypeStandard:Users
UniqueID: 507
UserShell: /usr/bin/false

Notice the 507, that needs to be 0.  OK now to fix this bug:

  1. Open Users & Groups preferences, click Login Options, then click the lock icon to unlock it. If necessary, type your password, then click Unlock.
  2. In the Network Account Server section, click Join or Edit.
  3. Click Open Directory Utility.
  4. Click the lock icon to unlock it, then enter your administrator name and password.
  5. Change Viewing to Users and look for "Message Bus"
  6. If you have more than one delete the one currently set to root
  7. If you have only one change the RecordName from "root" to "messagebus" 

And now open another shell sudo and su should be working fine.  I'm going to go report this bug into MacPorts but for I couldn't find anything when I Googled so I'm posting this because it was nasty.  


Unknown said...

Hello everyone, women trying to Conceive or you're pregnant, would love some advice in general about pregnancy, labour, birth and aftercare, please click on the website link, I assure your prayer will be answered,They say Iya Hindi works but im a witness of it .Iya Hindi root and herbs prudout God will Bless you for being part of my success in the journey of unblocking my one and only Fallopian tube (right side) with your herbs. I conceived naturally and delivered a bouncing baby boy.

I highly recommend Iya Hindi Native to every ladies having issues to conceive to contact.Email hindinative@yahoo. com ,Call +19145295224 Or,whatsapp messenger:

Unknown said...

I want to use this opportunity to thank this great holy man called Priest Babaka for what he has done for me and my family. This great man has brought happiness and joy back again to me and my family. Priest Babaka has used his great power to help me bring back my husband within the period of 48 hours and also helped me in getting pregnant with his powerful prayers and after 7 days of applying his herbs.This is more than words can say, at first i didn't believe it but today it is so true and all thanks goes to him. i will advice every one out there that has a similar issue, and also any one who is willing to get his or her lover back and any one who wants to get pregnant quick to contact this wonderful man today and forever remain happy in life. email: or Facebook at priestly.babaka