I am trying to run a command to try and look at a plist file on my computer, so I type this into terminal:

cd /Volumes/"Macintosh HD"

and then

sudo defaults read /var/db/dslocal/nodes/Default/users/<username>.plist ShadowHashData

However, whenever I do this, I get this result:

The domain/default pair of (/var/db/dslocal/nodes/Default/users/<username>.plist, ShadowHashData) does not exist

This might be a simple question, but I really want to run this command and I don't know how why the command doesn't work. I'd really appreciate some help.

  • You shouldn't need to use cd /Volumes/"Macintosh HD" as you are including the fully qualified pathname of the /var/db/dslocal/nodes/Default/users/$USER.plist file. If I open Terminal and use, literally, sudo defaults read /var/db/dslocal/nodes/Default/users/$USER.plist ShadowHashData it outputs what's expected, <hex data>, where hex data forms a plist file. – user3439894 Mar 8 at 13:15
  • I tried typing it without the cd command but it still didn’t work, it gave me the error message instead :/ @user3439894 – Reina Mar 9 at 15:47
  • @CJK, The file does exist on my system and sudo is needed as the ../Default/ directory is owned by root. – user3439894 Mar 9 at 23:15
  • @CJK so which exact commands should I write into Terminal? – Reina Mar 11 at 8:00
  • See @user3439894’S first comment. It explicitly dictates the command to type into Terminal. – CJK Mar 12 at 15:41

You must log in to answer this question.

Browse other questions tagged .