Skip to content

Instantly share code, notes, and snippets.

@abathur
Created February 3, 2021 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abathur/4407ad02681476a9a6b985ad3433334f to your computer and use it in GitHub Desktop.
Save abathur/4407ad02681476a9a6b985ad3433334f to your computer and use it in GitHub Desktop.
compare users
$ dscl . -read /Users/_postgres
AppleMetaNodeLocation: /Local/Default
GeneratedUID: FFFFEEEE-DDDD-CCCC-BBBB-AAAA000000D8
NFSHomeDirectory: /var/empty
Password: *
PrimaryGroupID: 216
RealName:
PostgreSQL Server
RecordName: _postgres
RecordType: dsRecTypeStandard:Users
UniqueID: 216
UserShell: /usr/bin/false
$ dscl . -read /Users/nixbld1
dsAttrTypeNative:_writers_passwd: nixbld1
dsAttrTypeNative:accountPolicyData:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>creationTime</key>
<real>1587337075.454917</real>
<key>failedLoginCount</key>
<integer>0</integer>
<key>failedLoginTimestamp</key>
<integer>0</integer>
<key>passwordLastSetTime</key>
<real>1587337076.0025048</real>
</dict>
</plist>
dsAttrTypeNative:IsHidden: 1
dsAttrTypeNative:record_daemon_version: 6930000
AppleMetaNodeLocation: /Local/Default
GeneratedUID: 2145B9C4-065A-47F5-88EF-8CF81DF14DE8
NFSHomeDirectory:
/private/var/empty 1
Password: ********
PrimaryGroupID: 30000
RealName:
Nix build user 1
RecordName: nixbld1
RecordType: dsRecTypeStandard:Users
UniqueID: 30001
UserShell: /sbin/nologin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment