contents of Application folder

Discussion in 'macOS' started by samjesse, Oct 31, 2015.

  1. samjesse macrumors newbie

    Joined:
    Oct 30, 2015
    #1
    Hi
    Terminal ls output of Applications shows different things than Dock > Applications. I am logged in as admin in this second hand Macbook I got. I can see the Mac name I created but I see the user name of the last owner. What needs to be fixed to sort this miss out?

    Thank you
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    When posting questions about Terminal commands, it's a good idea to copy and paste the exact command you used, and its output. Please do that.

    I also recommend empty lines before and after the pasted command + output. Like this:

    ls -l /Applications

    This ensures we can see the command separate from your descriptions or comments about it.
     
  3. samjesse thread starter macrumors newbie

    Joined:
    Oct 30, 2015
    #3
    Hi

    I bought this MacBook pro with Snow Leopard 10.6

    Login Accounts at start up:
    In normal Boot. I do not get a login window with options of current accounts to choose from.
    In Safe Boot, I see 2 accounts Guest and Sam.
    Hovering the mouse over Sam I get yellow hint text "Short Name: nameOfPreviousOwner Local Account".

    System Preferences > System > Accounts:
    Both Normal and Safe Boots,
    I get "Preferences Error: Could not load Accounts preference pan".

    Dock > Applications > Utilities > Terminal:
    Both Normal and Safe Boots, the command lines reads:
    SamMac:~ nameOfPreviousOwner$


    Command ls:

    SamMac:~ nameOfPreviousOwner$ ls Applications/

    In Normal Boot, the output is totally different than what is in the Dock > Applications.
    in Safe Boot, the output is the same as in Dock > Applications.


    Is this normal behaviour?
     
  4. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #4
    In Normal Boot, your default working directory is your normal login directory. This appears in the command-line prompt as ~. If you want to know what its pathname is, use this command:
    Code:
    pwd
    In Safe Boot, your default working directory is /. This is not your normal login directory.


    If you want to list the contents of /Applications in Normal Boot, you must give the correct absolute pathname. The correct command to do this is:
    Code:
    ls /Applications
    Note the placement of the / in the pathname.
     
  5. samjesse thread starter macrumors newbie

    Joined:
    Oct 30, 2015
    #5
    So what is my username? is it Sam or is it nameOfPreviousOwner?
    Why There is a login screen with 2 options in Safe Boot but not in Normal boot?
    Am I a different user when logged in via the Safe vs. Normal boot?
     
  6. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #6
    One is your "long user name" or "full name". The other is your short user name. I assume they both belong to the same account, based on the information you've posted so far.

    That's how Safe Boot works. It disables a number of things that would normally occur during startup. One of those things is Automatic Login.

    Try this command in Terminal:
    Code:
    id
    Run it both in Safe Boot and Normal Boot. Copy and paste the exact output here, identifying each one.

    If you want to know what the working directory is in both cases, use the pwd command previously posted.
     

Share This Page