Where does Lion get its usernames? (former Linux user)

Just some minutes ago, I opened the lid of my Macbook and noticed that something was using the CPU for 50% continuously. When I opened Activity Monitor, the only two CPU-using processes were kernel_task and WindowsServer, but not enough to cover 50%.
Safari also wouldn't respond. Force-quitting worked, but starting it again would show the window but then result in a spinning beachball of death.
When I opened the terminal, the prompt said "I have no name!@macbook$ "
When I typed the command "id", it gave me a user ID (502) but no username!
After killing all apps and mucking about, the CPU suddenly went back to the normal 3-5% usage, and everything worked fine again.
Obviously, something went wrong with the process that does the user identification. As a former Linux user, I'd say the user data resides in /etc/passwd but that's not where it's at. Where does Lion get its usernames and passwords?

OK thanks for the DSCL tip. I've found another thread with the same symptoms:
https://discussions.apple.com/thread/3663559
The logs of the opendirectoryd process show that it restarted itself (from /var/log/opendirectoryd.log):
2012-04-15 13:26:56.346 CEST - Loaded bundle at path .....
The system logs show a couple of errors from coreservicesd:
Apr 15 13:03:32 macbook coreservicesd[31]: _scserver_ServerCheckin: client uid validation failure; getpwuid(502) == NULL
And then thousands of these two lines follow:
Apr 15 13:03:43 macbook xpchelper[95253]: getpwuid_r() failed for UID: 502, ret: 0, errno: 0
Apr 15 13:03:43 macbook com.apple.launchd[1] (com.apple.xpchelper.F6010000-0000-0000-0000-000000000000[95253]): Exited with code: 1
Let's see if it happens again in the future. I'm logging this for reference and Google.

Similar Messages

  • Where does GridBagLayout get its name?

    I know this is an off-the-wall question, but it sort of bugs me. I get the "Grid" part and the "Layout" part, but what does the syllable "Bag" have to do with anything?
    Just your luck to read a post by an obsessive personality ;)

    I think its a typo. It should be GridBadLayout.
    Seriously though, its probably because you have a bag of constraints, and the only way to use them properly is to put you hand in and hope you get what you want...
    nes

  • What is the iPhone 4S packaging made out of and where does apple get its materials for it. Also where is the packaging manufactured?

    I need to know what the iPhone 4S packaging is made of and where the materials are brought from to make that packaging. And I would also like to know where this is all manufactured. And please dont just send me links...thnx

    You don't want links, but I'm giving you links. Do your own research.
    http://images.apple.com/environment/reports/docs/iPhone_4_Product_Environmental_ Report.pdf
    http://en.wikipedia.org/wiki/Foxconn

  • Where does Mail gets its addresses?

    This isn't a trick question. A friend's email starts with his initials. I've typed it many times. But now, when I type those three letters, instead of one of his two email addresses, I just get To: three letters. No @, no nothing else.
    I would like to find, and delete, that three-letter designation, but I can't find it anywhere.

    You can find it in Mail > Window > previous recipients. In the new window will be a list that you can remove any unwanted email addresses. The icon next to the name indicates it's in your address book.

  • Where does ARD get its "DNS Names" from?

    I've been plagued with this for months now: Many of my ARD clients have bogus entries in the "DNS Name" column. Some of them are just previously used names (showing as "MacLab-02.local" when the computer is now named "MacLab-15", for example). And some of them are names that I have never actually assigned (showing as "maclab-124.local", when I've never used lower case or numbers that high).
    No matter what I do, I can't seem to fix these. In the clients' Sharing prefpane, the correct .local name is showing. When I type "hostname" at the command line, the correct name shows. Using every method I've ever known to check the names, in fact, they'll show the right ones. Except in ARD.
    So... where on earth is it picking up these names? How do I clear or fix that list?
    Thanks!
    john

    That was never my intention (do some windows platform dependend registry stuff)
    However i had a broken network entry in that specific part of the registry which chrashed my application. Now i can just delete it and my problem is gone :-)
    Probably some uninstaller missed something or only partly removed it, or the entry was from some failed installation procedure - how knows?
    Now it is working,
    ToM
    PS: Yeah some may point out (which is right) to do some good error checking/exception handling however since the app is already rolled out a proper bugfix needs time and this solution provides a quickfix to make it work instantly...

  • Where does Mail keep its hidden cache of auto-complete email addresses.  I am plagued with an incorrect email adress I can't get rid of.  Have made sure it's deleted from Contacts and made sure it's deleted from "previous recipients" list in Mail - i

    Where does Mail keep its hidden cache of auto-complete email addresses.  I am plagued with an incorrect email address I can't get rid of.  Have made sure it's deleted from Contacts and made sure it's deleted from "Previous Recipients" list in Mail.  But it still keeps reappearing ... obviously a secret cache file hidden somewhere?

    Autocomplete has nothing to do with this problem.
    From the Mail menu bar, select
              Window ▹ Connection Doctor
    Look for a disused SMTP (outgoing mail) account in the window that opens. Double-click it. Another window will open, showing a list of all the outgoing mail accounts. The unwanted one will be selected. Click the minus-sign button to delete it, then click OK.
    If there's more than one unwanted account, repeat.

  • Where does apex get user details from for login in

    sorry for this stupid question. I have been looking up in google "where does apex get user details from for login in" and nothing answers my question. Basically I wanted to know when you log in your application how does apex know you have access to this application. How does it know you are a valid user because I am creating an application which basically checks if a user exist in one database and also checks if he/she exist in the second database.
    Thanks you and sorry if this is very newbie

    In the page 101 which is the login in page in the login in process. I have this in the source its not working in term of it is not letting me login in anymore even though I exist in the user table.
    DECLARE
    v_access_level number;
    BEGIN
    SELECT count(*)INTO
    v_access_level
    FROM USER
    WHERE UPPER(USER_NAME) = UPPER(:APP_USER);
    IF NVL(v_access_level, 0) !=0 THEN
    wwv_flow_custom_auth_std.login(
        P_UNAME       => :P101_USERNAME,
        P_PASSWORD    => :P101_PASSWORD,
        P_SESSION_ID  => v('APP_SESSION'),
        P_FLOW_PAGE   => :APP_ID||':9'
    ELSE
    wwv_flow_custom_auth_std.login(
        P_UNAME       => :P101_USERNAME,
        P_PASSWORD    => 'YtYuTrFRd',
        P_SESSION_ID  => v('APP_SESSION'),
        P_FLOW_PAGE   => :APP_ID||':9'
    END IF;
    end;
    please bare in mind that my USER table DOES NOT have a password because the authentication scheme as all the details of login in to any systems. I am only trying to check if the username exist in my USER table.
    Thanks

  • Where Does documents gets stored using FM SO_DOCUMENT_INSERT_API1

    Hi All,
    I am using FM SO_DOCUMENT_INSERT_API1 to store document from WD interface. Now I have couple of questions
    1) Is this FM creates a sap office document
    If yes how do I transfer SAP office documents storage from table SOFFCONT1 (default) to external content server.
    Now If its a sap office document I have refereed this [link|Re: Generic Object Services]
    and when I go to change storage catagory and change document area in transaction OACT to document management system it gives me prompt Repository SOFFDB does not have an explicit document area.
    Please clarify over above two points.
    Thanks in Advance
    Umang

    Sorry, by mistake the same thread was opened twice. please respond / follow the thread
    Where Does documents gets stored using FM SO_DOCUMENT_INSERT_API1
    Cheers!!!
    Umang

  • Where does Mail store its todos?

    Where does Mail store its todos? I'm trying to restore lost todos from time machine. help!

    I also found my to-do's for my imap account in /Users/<username>/Library/Calendars/(long letters-numbers name).imap/(long letters-numbers name).calendar/Events/(long letters-numbers name).ics.
    In addition, I found to-do's created in iCal in /Users/<username>/Library/Calendars/(long letters-numbers name).calendar/Events/(long letters-numbers name).ics. Scroll through the files in the events folders, find the date created or due date of the to-do and double click it. It will take you to the to-do in iCal.
    In general, the to-do's will be in the Events folder of the Calendar they were created in. The iMap to-do's add another layer to the file structure.

  • Where does iWeb store its library file

    where does iWeb store its library file

    ~/Library/Application Support/iWeb
    ~ represents the User Library. To open this in Lion hold down the option key while using the Finder "Go" menu.

  • Where does apple get their wallpapers from

    Where does apple get their wallpapers from and how can you contribute.

    Apple seems to use a wide source for their screen images...some were from NASA (such as Lion and Mountain Lion), some may have been photo pros.
    If you want, contact Apple by way of feedback, http://www.apple.com/feedback and at corporate: http://www.apple.com/contact

  • Where does portal store the username after a successful log in?

    We have an intranet application, we use the portal security and login screen, etc.
    I have written a stored procedure which requires two parameters. One of them we already have at the time we need to call it. The other is username. All we need
    to know is how to get the username at the time we must call it. Where does portal store the username after a successful log in for the particular session this user is logged into?
    I tried using the following syntax,
    When i log in using PORTAL30 then it returns,
    SQL> select portal30.wwctx_api.get_user()
    2 from dual;
    PORTAL30.WWCTX_API.GET_USER()
    PORTAL30
    But when i logged in using some other user i.e.rtemps it returns,
    SQL> connect rtemps@mpdb
    Enter password: *******
    Connected.
    SQL> select portal30.wwctx_api.get_user()
    2 from dual;
    PORTAL30.WWCTX_API.GET_USER()
    PUBLIC
    Why does it return PUBLIC, instead of RTEMPS?
    rtemps is a Database user though.
    How do i test this script for portal users?
    Also my application is a multiple user application.
    So at a given time, there could be more than user logged in, also there could be more than one sessions of the same user logged in.
    what happens in that scenario?
    Thank you,
    Kalpa

    still not working..
    The first page my user goes to log in, is
    http://159.225.218.59/pls/portal30_sso/portal30_sso.draw_custom_login_page
    when i look at this stored procedure, it makes a call to the following procedure,
    PORTAL30_SSO.wwsso_app_admin.ls_login
    and passes a parameter ssousername
    From here my user is directed to the home page, which is built using the portlets, the URL for the same is,
    http://159.225.218.59/servlet/page?_pageid=255,257&_dad=portal30&_schema=PORTAL30
    This is where i want to pass the ssousername, so as to keep track of what the user is doing.
    Question 1: where does this page physically reside, or how do i add the parameter ssousername to this page?
    I have 1 HTML PORTLET, on this page, and the code behind this looks like,
    <!-- PL/SQL Language Definition Section -->
    <%@ page language="PL/SQL" %>
    <%@ plsql parameter="i_pagenum" default="1" %>
    <body>
    <table width = 760>
    <tr>
    Link 1
    </tr>
    </table>
    In the above code, when they click on link 1, it calls a database stored procedure(rpt_param_prov), which is also a psp page.
    In here, i want to pass the parameter ssousername.
    e.g. the link should look like,
    Link 1
    Again this is a HTML portlet, so i don't think it will recognize the psp tags.. so that probably might be another issue.
    But this is what i want to accomplish. So i can use the user who logged in, for my audit trail application, which will be inserting a record in a database table, everytime, the user runs reports that are being clicked.. like link 1 in above example.
    I don't understand why this is so hard.
    When i tried
    portal30.WWCTX_API.get_user, it still brings back PUBLIC or PORTAL30_PUBLIC.

  • Where does ODI stores its varaible values if the type is Text

    Hi All,
    I have already wasted my 2 to 3 hour just trying to find "where does ODI stores its value for variables if type is text". Certainly "SNP_VAR" is not the anwser.
    Following ways I have tried:
    (1) Cannot find any column tat can hold more than 400 characters in my work repository.
    (2) Trying to set up trace on Oracle drive to find out sql getting issues when we hit refresh button on ODI variable. Is anyone aware how to trace driver sqls ?
    Regards,
    amit

    Hi Amit,
    When it is a text variable it is stored at SNP_EXP_TXT in so many records as necessary once the text is "broken" in blocks of 256 character lenght. It means that if the variable has a text with 700 characters you will find 3 records at SNP_EXP_TXT.
    Does it help you?

  • Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?

    Where does FireFox get the default value of a preference from. What is the format of the file that has the default value?. I need the actual default value for a particualr preference.
    About:config does show some default values but I need the source from which about:config picks up the default value.
    Any help in this direction is greatly appreciated.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    The prefs that aren't hidden if they are the default are stored in two JavaScript text files in the Firefox program folder
    You can open them via these links in a Firefox tab:
    <code>resource:///defaults/pref/firefox.js
    resource:///greprefs/all.js
    </code>
    ([/forum/1/702598])

  • I signed up for 20 bucks a month to use photoshop and only got one day of use.  Where does that get

    I signed up for 20 bucks a month and only got one day of use of Photoshop.  Where does that get off?

    What error are you receiving?  Do you have a subscription to Photoshop CS6?

Maybe you are looking for

  • Audigy 4 non-pro, multimedia probl

    Hi there, Got the Audigy 4 non-pro card, and I'm sticking with it for a long time... but it does have a few problems, I was hoping some of you may have the same problems and could help me. The first one may not be a problem with the card itself. The

  • About existence of added column in the database apex application.

    Hi, I have created an report apex application based on the table. Consider the table as Employee_details The columns in the Employee_details tables are *) Employee_id *) name *) ip_address *) host_name *) port_no *) sys_type *) email_id *) login_id *

  • Generating pre-defined events for system or applications ?

    I would like to write a script of some kind which generates a series of pre-defined events to the system or an active application: such as "a mouse is clicked on position x,y", a "mouse is dragged to position z, w", a "key is pressed", etc. How do I

  • Telling my flash mp3 player to get its song list from an xml file

    Hello, What do I need to put in my code to tell my mp3 player to grab its songs from a folder on my server via an xml doc I outputted from my sql server? (the mp3 player is also on the server). Thanks in advance!  Here's my code thus far: Heres my co

  • Webui source code and documentation

    Is webui source code or documentation public available (classes from package oracle.ifs.clients.webui)? If i develope my own iFS web client can I reuse any webui classes?