Where is user account info stored on disk?

pie


Joined
Jul 2, 2010
Messages
2
Reaction score
0
Points
1
Hi there

First off I know about /Users this is not what I'm asking.

When i run this command in the terminal

dscl . -list /users

I get this list of users

_amavisd
_appowner
_appserver
_ard
_atsserver
_calendar
_clamav
_cvs
_cyrus
_devdocs
_eppc
_installer
_jabber
_lp
_mailman
_mcxalr
_mdnsresponder
_mysql
_pcastagent
_pcastserver
_postfix
_qtss
_sandbox
_securityagent
_serialnumberd
_spotlight
_sshd
_svn
_teamsserver
_tokend
_unknown
_update_sharing
_usbmuxd
_uucp
_windowserver
_www
_xgridagent
_xgridcontroller
daemon
henrykenny
nobody
piers
postgres
root
servergame
toby
toddharris

Now i can find the home directories of most of the accounts down at the bottom of the list, but but these do not contain metadata about the accounts, which can be found using . . .

dscl . -read /users/piers

Giving the output

dsAttrTypeNative:_writers_hint: piers
dsAttrTypeNative:_writers_jpegphoto: piers
dsAttrTypeNative:_writers_LinkedIdentity: piers
dsAttrTypeNative:_writers_passwd: piers
dsAttrTypeNative:_writers_picture: piers
dsAttrTypeNative:_writers_realname: piers
dsAttrTypeNative:_writers_UserCertificate: piers
AppleMetaNodeLocation: /Local/Default
AuthenticationAuthority: ;ShadowHash; ;Kerberosv5;;piers@LKDC:SHA1.F8E69598F35A2768C152309D9D50CA6167B7C027;LKDC:SHA1.F8E69598F35A2768C152309D9D50CA6167B7C027;
AuthenticationHint:
GeneratedUID: E7D71818-4FA3-4ED7-B7DC-3DBDD08F3BF3
NFSHomeDirectory: /Users/piers
Password: ********
Picture:
/Library/User Pictures/Animals/Butterfly.tif
PrimaryGroupID: 20
RealName: Piers
RecordName: piers
RecordType: dsRecTypeNative:users
UniqueID: 505
UserShell: /bin/bash


Now can anyone tell me where on the disk i can find this information?

Thanks

Piers
 
OP
P

pie


Joined
Jul 2, 2010
Messages
2
Reaction score
0
Points
1
Answer!

Yes answering my own question :)

They are stored in

/private/var/db/dslocal/nodes/Default/users

i was led to the solution by a pdf i found

"Mac OS X Directory Services v10.5 Sample Test"

Anyway hope this helps someone.

Piers
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top