Go Back   The macosxhints Forums > OS X Help Requests > System



Reply
 
Thread Tools Rate Thread Display Modes
Old 08-26-2011, 10:09 AM   #1
AlexDijkgraaf
Prospect
 
Join Date: Aug 2011
Posts: 3
Opendirectoryd with missing user 305 (getpwuid)

Hi,

I want to share this, because I can't understand, but think it is so extraordinary it actually could be interesting. Whats is going on?

On Lion 10.7.1 i got this error every 0.3 seconds:

com.apple.launchd: (com.apple.launchd.peruser.305[number] getpwuid("305") failed.

I'did not know where to look for the cause of this error. (where launched gets it script at runtime. But I was thinking to give LION what it asked for. A user with UniqueID 305. So I used adcl . -create to create the user. I called it BUG and gave it 305.

What happened next, was that opendirectoryd was running with UiD 305, so it's safe to conclude opendirectoryd was called in by launched.

When i deleted the user with 305, i got the same message all over again.

What I want is to get rid of this getpwuid failed. But I know that Uid below 500 are reserved for the system. So i wanted to do a research and look at google, what name is given to User Unique ID 305.

But surprisingly there is nothing to be found on internet.

This made me believe that that is is very Fishy. Is this a left over from a previous hack in snow leopard? Or is this some problem with the new Lion.

Whatever the case, somehow i'm to stupid to grasp it? Anyone who can point me to the right directions (terminal is no secret for my in can read bash sh).
You insights are really appreciated, and maybe more people have this user in their system without noticing.

Have a look at System Log Queries in the console.app.

What is being discovered here? What is the darwin, lion conventions on user with id 305? Share and I/we will learn.

Thanks!
Greetings
AlexDijkgraaf is offline   Reply With Quote
Old 08-26-2011, 04:52 PM   #2
AlexDijkgraaf
Prospect
 
Join Date: Aug 2011
Posts: 3
Just some more toughs; why would opendirectoryd working with an non existent user? UniqueID 305?
AlexDijkgraaf is offline   Reply With Quote
Old 09-13-2011, 04:25 PM   #3
AlexDijkgraaf
Prospect
 
Join Date: Aug 2011
Posts: 3
It's been silent but, i recently discovered these log lines concerning user 305

Searching in Google, did not help me further, perhaps someone knows, way Mixed credentials means?

See log lines below,
Thanks

41665 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1064: sh
2377079 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1084: grep
3394721 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1113: uname
3396995 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1114: dirname
3558613 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1116: uname
3558635 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1115: bash
3642143 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1117: tty
5814365 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1118: java
8933756 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1119: cat
8963944 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1120: cat
9030676 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1121: rm
9032490 1 com.apple.launchd 1 com.apple.launchd System: Inconsistency: Mixed credentials (e/r/s UID 305/0/305 GID 305/0/305) detected on PID 1122: sh
AlexDijkgraaf is offline   Reply With Quote
Reply

Tags
305, getpwuid, hack, launchd, opendirectoryd

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 02:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.