diff --git a/tests/fixtures/centos-7.7/passwd.json b/tests/fixtures/centos-7.7/passwd.json new file mode 100644 index 00000000..a3e54a8d --- /dev/null +++ b/tests/fixtures/centos-7.7/passwd.json @@ -0,0 +1 @@ +[{"username": "root", "password": "x", "uid": 0, "gid": 0, "comment": "root", "home": "/root", "shell": "/bin/bash"}, {"username": "bin", "password": "x", "uid": 1, "gid": 1, "comment": "bin", "home": "/bin", "shell": "/sbin/nologin"}, {"username": "daemon", "password": "x", "uid": 2, "gid": 2, "comment": "daemon", "home": "/sbin", "shell": "/sbin/nologin"}, {"username": "adm", "password": "x", "uid": 3, "gid": 4, "comment": "adm", "home": "/var/adm", "shell": "/sbin/nologin"}, {"username": "lp", "password": "x", "uid": 4, "gid": 7, "comment": "lp", "home": "/var/spool/lpd", "shell": "/sbin/nologin"}, {"username": "sync", "password": "x", "uid": 5, "gid": 0, "comment": "sync", "home": "/sbin", "shell": "/bin/sync"}, {"username": "shutdown", "password": "x", "uid": 6, "gid": 0, "comment": "shutdown", "home": "/sbin", "shell": "/sbin/shutdown"}, {"username": "halt", "password": "x", "uid": 7, "gid": 0, "comment": "halt", "home": "/sbin", "shell": "/sbin/halt"}, {"username": "mail", "password": "x", "uid": 8, "gid": 12, "comment": "mail", "home": "/var/spool/mail", "shell": "/sbin/nologin"}, {"username": "operator", "password": "x", "uid": 11, "gid": 0, "comment": "operator", "home": "/root", "shell": "/sbin/nologin"}, {"username": "games", "password": "x", "uid": 12, "gid": 100, "comment": "games", "home": "/usr/games", "shell": "/sbin/nologin"}, {"username": "ftp", "password": "x", "uid": 14, "gid": 50, "comment": "FTP User", "home": "/var/ftp", "shell": "/sbin/nologin"}, {"username": "nobody", "password": "x", "uid": 99, "gid": 99, "comment": "Nobody", "home": "/", "shell": "/sbin/nologin"}, {"username": "systemd-network", "password": "x", "uid": 192, "gid": 192, "comment": "systemd Network Management", "home": "/", "shell": "/sbin/nologin"}, {"username": "dbus", "password": "x", "uid": 81, "gid": 81, "comment": "System message bus", "home": "/", "shell": "/sbin/nologin"}, {"username": "polkitd", "password": "x", "uid": 999, "gid": 998, "comment": "User for polkitd", "home": "/", "shell": "/sbin/nologin"}, {"username": "sshd", "password": "x", "uid": 74, "gid": 74, "comment": "Privilege-separated SSH", "home": "/var/empty/sshd", "shell": "/sbin/nologin"}, {"username": "postfix", "password": "x", "uid": 89, "gid": 89, "comment": "", "home": "/var/spool/postfix", "shell": "/sbin/nologin"}, {"username": "chrony", "password": "x", "uid": 998, "gid": 996, "comment": "", "home": "/var/lib/chrony", "shell": "/sbin/nologin"}, {"username": "joeuser", "password": "x", "uid": 1000, "gid": 1000, "comment": "joeuser", "home": "/home/joeuser", "shell": "/bin/bash"}, {"username": "dockerroot", "password": "x", "uid": 997, "gid": 994, "comment": "Docker User", "home": "/var/lib/docker", "shell": "/sbin/nologin"}] diff --git a/tests/fixtures/centos-7.7/passwd.out b/tests/fixtures/centos-7.7/passwd.out new file mode 100644 index 00000000..217e38b5 --- /dev/null +++ b/tests/fixtures/centos-7.7/passwd.out @@ -0,0 +1,21 @@ +root:x:0:0:root:/root:/bin/bash +bin:x:1:1:bin:/bin:/sbin/nologin +daemon:x:2:2:daemon:/sbin:/sbin/nologin +adm:x:3:4:adm:/var/adm:/sbin/nologin +lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin +sync:x:5:0:sync:/sbin:/bin/sync +shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown +halt:x:7:0:halt:/sbin:/sbin/halt +mail:x:8:12:mail:/var/spool/mail:/sbin/nologin +operator:x:11:0:operator:/root:/sbin/nologin +games:x:12:100:games:/usr/games:/sbin/nologin +ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin +nobody:x:99:99:Nobody:/:/sbin/nologin +systemd-network:x:192:192:systemd Network Management:/:/sbin/nologin +dbus:x:81:81:System message bus:/:/sbin/nologin +polkitd:x:999:998:User for polkitd:/:/sbin/nologin +sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin +postfix:x:89:89::/var/spool/postfix:/sbin/nologin +chrony:x:998:996::/var/lib/chrony:/sbin/nologin +joeuser:x:1000:1000:joeuser:/home/joeuser:/bin/bash +dockerroot:x:997:994:Docker User:/var/lib/docker:/sbin/nologin diff --git a/tests/fixtures/centos-7.7/shadow.json b/tests/fixtures/centos-7.7/shadow.json new file mode 100644 index 00000000..412c773b --- /dev/null +++ b/tests/fixtures/centos-7.7/shadow.json @@ -0,0 +1 @@ +[{"username": "root", "password": "$6$27lBiByDWdiM7lvJ$ulWkJyfKNbqDnrIKPLhUCGanKcS5TdY3ZasKMR/v2dl0mHn0s28LcxTXMqqOV0d6tww0U4gmgYZezgAf/F8Pz.", "last_changed": null, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "bin", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "daemon", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "adm", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "lp", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "sync", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "shutdown", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "halt", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "mail", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "operator", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "games", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "ftp", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "nobody", "password": "*", "last_changed": 17834, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "systemd-network", "password": "!!", "last_changed": 18123, "minimum": null, "maximum": null, "warn": null, "inactive": null, "expire": null}, {"username": "dbus", "password": "!!", "last_changed": 18123, "minimum": null, "maximum": null, "warn": null, "inactive": null, "expire": null}, {"username": "polkitd", "password": "!!", "last_changed": 18123, "minimum": null, "maximum": null, "warn": null, "inactive": null, "expire": null}, {"username": "sshd", "password": "!!", "last_changed": 18123, "minimum": null, "maximum": null, "warn": null, "inactive": null, "expire": null}, {"username": "postfix", "password": "!!", "last_changed": 18123, "minimum": null, "maximum": null, "warn": null, "inactive": null, "expire": null}, {"username": "chrony", "password": "!!", "last_changed": 18123, "minimum": null, "maximum": null, "warn": null, "inactive": null, "expire": null}, {"username": "joeuser", "password": "$6$sR1OEFM1KVuMeBUt$NhanSmm91.BspCYlMtrjYhc71FElgaCP7uSUAwhtQVFGcYa7.8VPMmRce77yS8FLy6XSYBtcCeZCJhnLOicc/.", "last_changed": null, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "dockerroot", "password": "!!", "last_changed": 18123, "minimum": null, "maximum": null, "warn": null, "inactive": null, "expire": null}] diff --git a/tests/fixtures/centos-7.7/shadow.out b/tests/fixtures/centos-7.7/shadow.out new file mode 100644 index 00000000..3383a28a --- /dev/null +++ b/tests/fixtures/centos-7.7/shadow.out @@ -0,0 +1,21 @@ +root:$6$27lBiByDWdiM7lvJ$ulWkJyfKNbqDnrIKPLhUCGanKcS5TdY3ZasKMR/v2dl0mHn0s28LcxTXMqqOV0d6tww0U4gmgYZezgAf/F8Pz.::0:99999:7::: +bin:*:17834:0:99999:7::: +daemon:*:17834:0:99999:7::: +adm:*:17834:0:99999:7::: +lp:*:17834:0:99999:7::: +sync:*:17834:0:99999:7::: +shutdown:*:17834:0:99999:7::: +halt:*:17834:0:99999:7::: +mail:*:17834:0:99999:7::: +operator:*:17834:0:99999:7::: +games:*:17834:0:99999:7::: +ftp:*:17834:0:99999:7::: +nobody:*:17834:0:99999:7::: +systemd-network:!!:18123:::::: +dbus:!!:18123:::::: +polkitd:!!:18123:::::: +sshd:!!:18123:::::: +postfix:!!:18123:::::: +chrony:!!:18123:::::: +joeuser:$6$sR1OEFM1KVuMeBUt$NhanSmm91.BspCYlMtrjYhc71FElgaCP7uSUAwhtQVFGcYa7.8VPMmRce77yS8FLy6XSYBtcCeZCJhnLOicc/.::0:99999:7::: +dockerroot:!!:18123:::::: diff --git a/tests/fixtures/osx-10.14.6/passwd.json b/tests/fixtures/osx-10.14.6/passwd.json new file mode 100644 index 00000000..5f6ae194 --- /dev/null +++ b/tests/fixtures/osx-10.14.6/passwd.json @@ -0,0 +1 @@ +[{"username": "nobody", "password": "*", "uid": -2, "gid": -2, "comment": "Unprivileged User", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "root", "password": "*", "uid": 0, "gid": 0, "comment": "System Administrator", "home": "/var/root", "shell": "/bin/sh"}, {"username": "daemon", "password": "*", "uid": 1, "gid": 1, "comment": "System Services", "home": "/var/root", "shell": "/usr/bin/false"}, {"username": "_uucp", "password": "*", "uid": 4, "gid": 4, "comment": "Unix to Unix Copy Protocol", "home": "/var/spool/uucp", "shell": "/usr/sbin/uucico"}, {"username": "_taskgated", "password": "*", "uid": 13, "gid": 13, "comment": "Task Gate Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_networkd", "password": "*", "uid": 24, "gid": 24, "comment": "Network Services", "home": "/var/networkd", "shell": "/usr/bin/false"}, {"username": "_installassistant", "password": "*", "uid": 25, "gid": 25, "comment": "Install Assistant", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_lp", "password": "*", "uid": 26, "gid": 26, "comment": "Printing Services", "home": "/var/spool/cups", "shell": "/usr/bin/false"}, {"username": "_postfix", "password": "*", "uid": 27, "gid": 27, "comment": "Postfix Mail Server", "home": "/var/spool/postfix", "shell": "/usr/bin/false"}, {"username": "_scsd", "password": "*", "uid": 31, "gid": 31, "comment": "Service Configuration Service", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_ces", "password": "*", "uid": 32, "gid": 32, "comment": "Certificate Enrollment Service", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_appstore", "password": "*", "uid": 33, "gid": 33, "comment": "Mac App Store Service", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_mcxalr", "password": "*", "uid": 54, "gid": 54, "comment": "MCX AppLaunch", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_appleevents", "password": "*", "uid": 55, "gid": 55, "comment": "AppleEvents Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_geod", "password": "*", "uid": 56, "gid": 56, "comment": "Geo Services Daemon", "home": "/var/db/geod", "shell": "/usr/bin/false"}, {"username": "_devdocs", "password": "*", "uid": 59, "gid": 59, "comment": "Developer Documentation", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_sandbox", "password": "*", "uid": 60, "gid": 60, "comment": "Seatbelt", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_mdnsresponder", "password": "*", "uid": 65, "gid": 65, "comment": "mDNSResponder", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_ard", "password": "*", "uid": 67, "gid": 67, "comment": "Apple Remote Desktop", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_www", "password": "*", "uid": 70, "gid": 70, "comment": "World Wide Web Server", "home": "/Library/WebServer", "shell": "/usr/bin/false"}, {"username": "_eppc", "password": "*", "uid": 71, "gid": 71, "comment": "Apple Events User", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_cvs", "password": "*", "uid": 72, "gid": 72, "comment": "CVS Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_svn", "password": "*", "uid": 73, "gid": 73, "comment": "SVN Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_mysql", "password": "*", "uid": 74, "gid": 74, "comment": "MySQL Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_sshd", "password": "*", "uid": 75, "gid": 75, "comment": "sshd Privilege separation", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_qtss", "password": "*", "uid": 76, "gid": 76, "comment": "QuickTime Streaming Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_cyrus", "password": "*", "uid": 77, "gid": 6, "comment": "Cyrus Administrator", "home": "/var/imap", "shell": "/usr/bin/false"}, {"username": "_mailman", "password": "*", "uid": 78, "gid": 78, "comment": "Mailman List Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_appserver", "password": "*", "uid": 79, "gid": 79, "comment": "Application Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_clamav", "password": "*", "uid": 82, "gid": 82, "comment": "ClamAV Daemon", "home": "/var/virusmails", "shell": "/usr/bin/false"}, {"username": "_amavisd", "password": "*", "uid": 83, "gid": 83, "comment": "AMaViS Daemon", "home": "/var/virusmails", "shell": "/usr/bin/false"}, {"username": "_jabber", "password": "*", "uid": 84, "gid": 84, "comment": "Jabber XMPP Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_appowner", "password": "*", "uid": 87, "gid": 87, "comment": "Application Owner", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_windowserver", "password": "*", "uid": 88, "gid": 88, "comment": "WindowServer", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_spotlight", "password": "*", "uid": 89, "gid": 89, "comment": "Spotlight", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_tokend", "password": "*", "uid": 91, "gid": 91, "comment": "Token Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_securityagent", "password": "*", "uid": 92, "gid": 92, "comment": "SecurityAgent", "home": "/var/db/securityagent", "shell": "/usr/bin/false"}, {"username": "_calendar", "password": "*", "uid": 93, "gid": 93, "comment": "Calendar", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_teamsserver", "password": "*", "uid": 94, "gid": 94, "comment": "TeamsServer", "home": "/var/teamsserver", "shell": "/usr/bin/false"}, {"username": "_update_sharing", "password": "*", "uid": 95, "gid": -2, "comment": "Update Sharing", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_installer", "password": "*", "uid": 96, "gid": -2, "comment": "Installer", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_atsserver", "password": "*", "uid": 97, "gid": 97, "comment": "ATS Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_ftp", "password": "*", "uid": 98, "gid": -2, "comment": "FTP Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_unknown", "password": "*", "uid": 99, "gid": 99, "comment": "Unknown User", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_softwareupdate", "password": "*", "uid": 200, "gid": 200, "comment": "Software Update Service", "home": "/var/db/softwareupdate", "shell": "/usr/bin/false"}, {"username": "_coreaudiod", "password": "*", "uid": 202, "gid": 202, "comment": "Core Audio Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_screensaver", "password": "*", "uid": 203, "gid": 203, "comment": "Screensaver", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_locationd", "password": "*", "uid": 205, "gid": 205, "comment": "Location Daemon", "home": "/var/db/locationd", "shell": "/usr/bin/false"}, {"username": "_trustevaluationagent", "password": "*", "uid": 208, "gid": 208, "comment": "Trust Evaluation Agent", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_timezone", "password": "*", "uid": 210, "gid": 210, "comment": "AutoTimeZoneDaemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_lda", "password": "*", "uid": 211, "gid": 211, "comment": "Local Delivery Agent", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_cvmsroot", "password": "*", "uid": 212, "gid": 212, "comment": "CVMS Root", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_usbmuxd", "password": "*", "uid": 213, "gid": 213, "comment": "iPhone OS Device Helper", "home": "/var/db/lockdown", "shell": "/usr/bin/false"}, {"username": "_dovecot", "password": "*", "uid": 214, "gid": 6, "comment": "Dovecot Administrator", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_dpaudio", "password": "*", "uid": 215, "gid": 215, "comment": "DP Audio", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_postgres", "password": "*", "uid": 216, "gid": 216, "comment": "PostgreSQL Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_krbtgt", "password": "*", "uid": 217, "gid": -2, "comment": "Kerberos Ticket Granting Ticket", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_kadmin_admin", "password": "*", "uid": 218, "gid": -2, "comment": "Kerberos Admin Service", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_kadmin_changepw", "password": "*", "uid": 219, "gid": -2, "comment": "Kerberos Change Password Service", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_devicemgr", "password": "*", "uid": 220, "gid": 220, "comment": "Device Management Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_webauthserver", "password": "*", "uid": 221, "gid": 221, "comment": "Web Auth Server", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_netbios", "password": "*", "uid": 222, "gid": 222, "comment": "NetBIOS", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_warmd", "password": "*", "uid": 224, "gid": 224, "comment": "Warm Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_dovenull", "password": "*", "uid": 227, "gid": 227, "comment": "Dovecot Authentication", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_netstatistics", "password": "*", "uid": 228, "gid": 228, "comment": "Network Statistics Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_avbdeviced", "password": "*", "uid": 229, "gid": -2, "comment": "Ethernet AVB Device Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_krb_krbtgt", "password": "*", "uid": 230, "gid": -2, "comment": "Open Directory Kerberos Ticket Granting Ticket", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_krb_kadmin", "password": "*", "uid": 231, "gid": -2, "comment": "Open Directory Kerberos Admin Service", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_krb_changepw", "password": "*", "uid": 232, "gid": -2, "comment": "Open Directory Kerberos Change Password Service", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_krb_kerberos", "password": "*", "uid": 233, "gid": -2, "comment": "Open Directory Kerberos", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_krb_anonymous", "password": "*", "uid": 234, "gid": -2, "comment": "Open Directory Kerberos Anonymous", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_assetcache", "password": "*", "uid": 235, "gid": 235, "comment": "Asset Cache Service", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_coremediaiod", "password": "*", "uid": 236, "gid": 236, "comment": "Core Media IO Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_launchservicesd", "password": "*", "uid": 239, "gid": 239, "comment": "_launchservicesd", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_iconservices", "password": "*", "uid": 240, "gid": 240, "comment": "IconServices", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_distnote", "password": "*", "uid": 241, "gid": 241, "comment": "DistNote", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_nsurlsessiond", "password": "*", "uid": 242, "gid": 242, "comment": "NSURLSession Daemon", "home": "/var/db/nsurlsessiond", "shell": "/usr/bin/false"}, {"username": "_nsurlstoraged", "password": "*", "uid": 243, "gid": 243, "comment": "NSURLStorage Daemon", "home": "/var/db/nsurlstoraged", "shell": "/usr/bin/false"}, {"username": "_displaypolicyd", "password": "*", "uid": 244, "gid": 244, "comment": "Display Policy Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_astris", "password": "*", "uid": 245, "gid": 245, "comment": "Astris Services", "home": "/var/db/astris", "shell": "/usr/bin/false"}, {"username": "_krbfast", "password": "*", "uid": 246, "gid": -2, "comment": "Kerberos FAST Account", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_gamecontrollerd", "password": "*", "uid": 247, "gid": 247, "comment": "Game Controller Daemon", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_mbsetupuser", "password": "*", "uid": 248, "gid": 248, "comment": "Setup User", "home": "/var/setup", "shell": "/bin/bash"}, {"username": "_ondemand", "password": "*", "uid": 249, "gid": 249, "comment": "On Demand Resource Daemon", "home": "/var/db/ondemand", "shell": "/usr/bin/false"}, {"username": "_xserverdocs", "password": "*", "uid": 251, "gid": 251, "comment": "macOS Server Documents Service", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_wwwproxy", "password": "*", "uid": 252, "gid": 252, "comment": "WWW Proxy", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_mobileasset", "password": "*", "uid": 253, "gid": 253, "comment": "MobileAsset User", "home": "/var/ma", "shell": "/usr/bin/false"}, {"username": "_findmydevice", "password": "*", "uid": 254, "gid": 254, "comment": "Find My Device Daemon", "home": "/var/db/findmydevice", "shell": "/usr/bin/false"}, {"username": "_datadetectors", "password": "*", "uid": 257, "gid": 257, "comment": "DataDetectors", "home": "/var/db/datadetectors", "shell": "/usr/bin/false"}, {"username": "_captiveagent", "password": "*", "uid": 258, "gid": 258, "comment": "captiveagent", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_ctkd", "password": "*", "uid": 259, "gid": 259, "comment": "ctkd Account", "home": "/var/empty", "shell": "/usr/bin/false"}, {"username": "_applepay", "password": "*", "uid": 260, "gid": 260, "comment": "applepay Account", "home": "/var/db/applepay", "shell": "/usr/bin/false"}, {"username": "_hidd", "password": "*", "uid": 261, "gid": 261, "comment": "HID Service User", "home": "/var/db/hidd", "shell": "/usr/bin/false"}, {"username": "_cmiodalassistants", "password": "*", "uid": 262, "gid": 262, "comment": "CoreMedia IO Assistants User", "home": "/var/db/cmiodalassistants", "shell": "/usr/bin/false"}, {"username": "_analyticsd", "password": "*", "uid": 263, "gid": 263, "comment": "Analytics Daemon", "home": "/var/db/analyticsd", "shell": "/usr/bin/false"}, {"username": "_fpsd", "password": "*", "uid": 265, "gid": 265, "comment": "FPS Daemon", "home": "/var/db/fpsd", "shell": "/usr/bin/false"}, {"username": "_timed", "password": "*", "uid": 266, "gid": 266, "comment": "Time Sync Daemon", "home": "/var/db/timed", "shell": "/usr/bin/false"}, {"username": "_reportmemoryexception", "password": "*", "uid": 269, "gid": 269, "comment": "ReportMemoryException", "home": "/var/db/reportmemoryexception", "shell": "/usr/bin/false"}] diff --git a/tests/fixtures/osx-10.14.6/passwd.out b/tests/fixtures/osx-10.14.6/passwd.out new file mode 100644 index 00000000..74c9012a --- /dev/null +++ b/tests/fixtures/osx-10.14.6/passwd.out @@ -0,0 +1,108 @@ +## +# User Database +# +# Note that this file is consulted directly only when the system is running +# in single-user mode. At other times this information is provided by +# Open Directory. +# +# See the opendirectoryd(8) man page for additional information about +# Open Directory. +## +nobody:*:-2:-2:Unprivileged User:/var/empty:/usr/bin/false +root:*:0:0:System Administrator:/var/root:/bin/sh +daemon:*:1:1:System Services:/var/root:/usr/bin/false +_uucp:*:4:4:Unix to Unix Copy Protocol:/var/spool/uucp:/usr/sbin/uucico +_taskgated:*:13:13:Task Gate Daemon:/var/empty:/usr/bin/false +_networkd:*:24:24:Network Services:/var/networkd:/usr/bin/false +_installassistant:*:25:25:Install Assistant:/var/empty:/usr/bin/false +_lp:*:26:26:Printing Services:/var/spool/cups:/usr/bin/false +_postfix:*:27:27:Postfix Mail Server:/var/spool/postfix:/usr/bin/false +_scsd:*:31:31:Service Configuration Service:/var/empty:/usr/bin/false +_ces:*:32:32:Certificate Enrollment Service:/var/empty:/usr/bin/false +_appstore:*:33:33:Mac App Store Service:/var/empty:/usr/bin/false +_mcxalr:*:54:54:MCX AppLaunch:/var/empty:/usr/bin/false +_appleevents:*:55:55:AppleEvents Daemon:/var/empty:/usr/bin/false +_geod:*:56:56:Geo Services Daemon:/var/db/geod:/usr/bin/false +_devdocs:*:59:59:Developer Documentation:/var/empty:/usr/bin/false +_sandbox:*:60:60:Seatbelt:/var/empty:/usr/bin/false +_mdnsresponder:*:65:65:mDNSResponder:/var/empty:/usr/bin/false +_ard:*:67:67:Apple Remote Desktop:/var/empty:/usr/bin/false +_www:*:70:70:World Wide Web Server:/Library/WebServer:/usr/bin/false +_eppc:*:71:71:Apple Events User:/var/empty:/usr/bin/false +_cvs:*:72:72:CVS Server:/var/empty:/usr/bin/false +_svn:*:73:73:SVN Server:/var/empty:/usr/bin/false +_mysql:*:74:74:MySQL Server:/var/empty:/usr/bin/false +_sshd:*:75:75:sshd Privilege separation:/var/empty:/usr/bin/false +_qtss:*:76:76:QuickTime Streaming Server:/var/empty:/usr/bin/false +_cyrus:*:77:6:Cyrus Administrator:/var/imap:/usr/bin/false +_mailman:*:78:78:Mailman List Server:/var/empty:/usr/bin/false +_appserver:*:79:79:Application Server:/var/empty:/usr/bin/false +_clamav:*:82:82:ClamAV Daemon:/var/virusmails:/usr/bin/false +_amavisd:*:83:83:AMaViS Daemon:/var/virusmails:/usr/bin/false +_jabber:*:84:84:Jabber XMPP Server:/var/empty:/usr/bin/false +_appowner:*:87:87:Application Owner:/var/empty:/usr/bin/false +_windowserver:*:88:88:WindowServer:/var/empty:/usr/bin/false +_spotlight:*:89:89:Spotlight:/var/empty:/usr/bin/false +_tokend:*:91:91:Token Daemon:/var/empty:/usr/bin/false +_securityagent:*:92:92:SecurityAgent:/var/db/securityagent:/usr/bin/false +_calendar:*:93:93:Calendar:/var/empty:/usr/bin/false +_teamsserver:*:94:94:TeamsServer:/var/teamsserver:/usr/bin/false +_update_sharing:*:95:-2:Update Sharing:/var/empty:/usr/bin/false +_installer:*:96:-2:Installer:/var/empty:/usr/bin/false +_atsserver:*:97:97:ATS Server:/var/empty:/usr/bin/false +_ftp:*:98:-2:FTP Daemon:/var/empty:/usr/bin/false +_unknown:*:99:99:Unknown User:/var/empty:/usr/bin/false +_softwareupdate:*:200:200:Software Update Service:/var/db/softwareupdate:/usr/bin/false +_coreaudiod:*:202:202:Core Audio Daemon:/var/empty:/usr/bin/false +_screensaver:*:203:203:Screensaver:/var/empty:/usr/bin/false +_locationd:*:205:205:Location Daemon:/var/db/locationd:/usr/bin/false +_trustevaluationagent:*:208:208:Trust Evaluation Agent:/var/empty:/usr/bin/false +_timezone:*:210:210:AutoTimeZoneDaemon:/var/empty:/usr/bin/false +_lda:*:211:211:Local Delivery Agent:/var/empty:/usr/bin/false +_cvmsroot:*:212:212:CVMS Root:/var/empty:/usr/bin/false +_usbmuxd:*:213:213:iPhone OS Device Helper:/var/db/lockdown:/usr/bin/false +_dovecot:*:214:6:Dovecot Administrator:/var/empty:/usr/bin/false +_dpaudio:*:215:215:DP Audio:/var/empty:/usr/bin/false +_postgres:*:216:216:PostgreSQL Server:/var/empty:/usr/bin/false +_krbtgt:*:217:-2:Kerberos Ticket Granting Ticket:/var/empty:/usr/bin/false +_kadmin_admin:*:218:-2:Kerberos Admin Service:/var/empty:/usr/bin/false +_kadmin_changepw:*:219:-2:Kerberos Change Password Service:/var/empty:/usr/bin/false +_devicemgr:*:220:220:Device Management Server:/var/empty:/usr/bin/false +_webauthserver:*:221:221:Web Auth Server:/var/empty:/usr/bin/false +_netbios:*:222:222:NetBIOS:/var/empty:/usr/bin/false +_warmd:*:224:224:Warm Daemon:/var/empty:/usr/bin/false +_dovenull:*:227:227:Dovecot Authentication:/var/empty:/usr/bin/false +_netstatistics:*:228:228:Network Statistics Daemon:/var/empty:/usr/bin/false +_avbdeviced:*:229:-2:Ethernet AVB Device Daemon:/var/empty:/usr/bin/false +_krb_krbtgt:*:230:-2:Open Directory Kerberos Ticket Granting Ticket:/var/empty:/usr/bin/false +_krb_kadmin:*:231:-2:Open Directory Kerberos Admin Service:/var/empty:/usr/bin/false +_krb_changepw:*:232:-2:Open Directory Kerberos Change Password Service:/var/empty:/usr/bin/false +_krb_kerberos:*:233:-2:Open Directory Kerberos:/var/empty:/usr/bin/false +_krb_anonymous:*:234:-2:Open Directory Kerberos Anonymous:/var/empty:/usr/bin/false +_assetcache:*:235:235:Asset Cache Service:/var/empty:/usr/bin/false +_coremediaiod:*:236:236:Core Media IO Daemon:/var/empty:/usr/bin/false +_launchservicesd:*:239:239:_launchservicesd:/var/empty:/usr/bin/false +_iconservices:*:240:240:IconServices:/var/empty:/usr/bin/false +_distnote:*:241:241:DistNote:/var/empty:/usr/bin/false +_nsurlsessiond:*:242:242:NSURLSession Daemon:/var/db/nsurlsessiond:/usr/bin/false +_nsurlstoraged:*:243:243:NSURLStorage Daemon:/var/db/nsurlstoraged:/usr/bin/false +_displaypolicyd:*:244:244:Display Policy Daemon:/var/empty:/usr/bin/false +_astris:*:245:245:Astris Services:/var/db/astris:/usr/bin/false +_krbfast:*:246:-2:Kerberos FAST Account:/var/empty:/usr/bin/false +_gamecontrollerd:*:247:247:Game Controller Daemon:/var/empty:/usr/bin/false +_mbsetupuser:*:248:248:Setup User:/var/setup:/bin/bash +_ondemand:*:249:249:On Demand Resource Daemon:/var/db/ondemand:/usr/bin/false +_xserverdocs:*:251:251:macOS Server Documents Service:/var/empty:/usr/bin/false +_wwwproxy:*:252:252:WWW Proxy:/var/empty:/usr/bin/false +_mobileasset:*:253:253:MobileAsset User:/var/ma:/usr/bin/false +_findmydevice:*:254:254:Find My Device Daemon:/var/db/findmydevice:/usr/bin/false +_datadetectors:*:257:257:DataDetectors:/var/db/datadetectors:/usr/bin/false +_captiveagent:*:258:258:captiveagent:/var/empty:/usr/bin/false +_ctkd:*:259:259:ctkd Account:/var/empty:/usr/bin/false +_applepay:*:260:260:applepay Account:/var/db/applepay:/usr/bin/false +_hidd:*:261:261:HID Service User:/var/db/hidd:/usr/bin/false +_cmiodalassistants:*:262:262:CoreMedia IO Assistants User:/var/db/cmiodalassistants:/usr/bin/false +_analyticsd:*:263:263:Analytics Daemon:/var/db/analyticsd:/usr/bin/false +_fpsd:*:265:265:FPS Daemon:/var/db/fpsd:/usr/bin/false +_timed:*:266:266:Time Sync Daemon:/var/db/timed:/usr/bin/false +_reportmemoryexception:*:269:269:ReportMemoryException:/var/db/reportmemoryexception:/usr/bin/false diff --git a/tests/fixtures/ubuntu-18.04/passwd.json b/tests/fixtures/ubuntu-18.04/passwd.json new file mode 100644 index 00000000..bf60ec5b --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/passwd.json @@ -0,0 +1 @@ +[{"username": "root", "password": "x", "uid": 0, "gid": 0, "comment": "root", "home": "/root", "shell": "/bin/bash"}, {"username": "daemon", "password": "x", "uid": 1, "gid": 1, "comment": "daemon", "home": "/usr/sbin", "shell": "/usr/sbin/nologin"}, {"username": "bin", "password": "x", "uid": 2, "gid": 2, "comment": "bin", "home": "/bin", "shell": "/usr/sbin/nologin"}, {"username": "sys", "password": "x", "uid": 3, "gid": 3, "comment": "sys", "home": "/dev", "shell": "/usr/sbin/nologin"}, {"username": "sync", "password": "x", "uid": 4, "gid": 65534, "comment": "sync", "home": "/bin", "shell": "/bin/sync"}, {"username": "games", "password": "x", "uid": 5, "gid": 60, "comment": "games", "home": "/usr/games", "shell": "/usr/sbin/nologin"}, {"username": "man", "password": "x", "uid": 6, "gid": 12, "comment": "man", "home": "/var/cache/man", "shell": "/usr/sbin/nologin"}, {"username": "lp", "password": "x", "uid": 7, "gid": 7, "comment": "lp", "home": "/var/spool/lpd", "shell": "/usr/sbin/nologin"}, {"username": "mail", "password": "x", "uid": 8, "gid": 8, "comment": "mail", "home": "/var/mail", "shell": "/usr/sbin/nologin"}, {"username": "news", "password": "x", "uid": 9, "gid": 9, "comment": "news", "home": "/var/spool/news", "shell": "/usr/sbin/nologin"}, {"username": "uucp", "password": "x", "uid": 10, "gid": 10, "comment": "uucp", "home": "/var/spool/uucp", "shell": "/usr/sbin/nologin"}, {"username": "proxy", "password": "x", "uid": 13, "gid": 13, "comment": "proxy", "home": "/bin", "shell": "/usr/sbin/nologin"}, {"username": "www-data", "password": "x", "uid": 33, "gid": 33, "comment": "www-data", "home": "/var/www", "shell": "/usr/sbin/nologin"}, {"username": "backup", "password": "x", "uid": 34, "gid": 34, "comment": "backup", "home": "/var/backups", "shell": "/usr/sbin/nologin"}, {"username": "list", "password": "x", "uid": 38, "gid": 38, "comment": "Mailing List Manager", "home": "/var/list", "shell": "/usr/sbin/nologin"}, {"username": "irc", "password": "x", "uid": 39, "gid": 39, "comment": "ircd", "home": "/var/run/ircd", "shell": "/usr/sbin/nologin"}, {"username": "gnats", "password": "x", "uid": 41, "gid": 41, "comment": "Gnats Bug-Reporting System (admin)", "home": "/var/lib/gnats", "shell": "/usr/sbin/nologin"}, {"username": "nobody", "password": "x", "uid": 65534, "gid": 65534, "comment": "nobody", "home": "/nonexistent", "shell": "/usr/sbin/nologin"}, {"username": "systemd-network", "password": "x", "uid": 100, "gid": 102, "comment": "systemd Network Management,,,", "home": "/run/systemd/netif", "shell": "/usr/sbin/nologin"}, {"username": "systemd-resolve", "password": "x", "uid": 101, "gid": 103, "comment": "systemd Resolver,,,", "home": "/run/systemd/resolve", "shell": "/usr/sbin/nologin"}, {"username": "syslog", "password": "x", "uid": 102, "gid": 106, "comment": "", "home": "/home/syslog", "shell": "/usr/sbin/nologin"}, {"username": "messagebus", "password": "x", "uid": 103, "gid": 107, "comment": "", "home": "/nonexistent", "shell": "/usr/sbin/nologin"}, {"username": "_apt", "password": "x", "uid": 104, "gid": 65534, "comment": "", "home": "/nonexistent", "shell": "/usr/sbin/nologin"}, {"username": "lxd", "password": "x", "uid": 105, "gid": 65534, "comment": "", "home": "/var/lib/lxd/", "shell": "/bin/false"}, {"username": "uuidd", "password": "x", "uid": 106, "gid": 110, "comment": "", "home": "/run/uuidd", "shell": "/usr/sbin/nologin"}, {"username": "dnsmasq", "password": "x", "uid": 107, "gid": 65534, "comment": "dnsmasq,,,", "home": "/var/lib/misc", "shell": "/usr/sbin/nologin"}, {"username": "landscape", "password": "x", "uid": 108, "gid": 112, "comment": "", "home": "/var/lib/landscape", "shell": "/usr/sbin/nologin"}, {"username": "pollinate", "password": "x", "uid": 109, "gid": 1, "comment": "", "home": "/var/cache/pollinate", "shell": "/bin/false"}, {"username": "sshd", "password": "x", "uid": 110, "gid": 65534, "comment": "", "home": "/run/sshd", "shell": "/usr/sbin/nologin"}, {"username": "joeuser", "password": "x", "uid": 1000, "gid": 1000, "comment": "Joe User", "home": "/home/joeuser", "shell": "/bin/bash"}] diff --git a/tests/fixtures/ubuntu-18.04/passwd.out b/tests/fixtures/ubuntu-18.04/passwd.out new file mode 100644 index 00000000..9efbf709 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/passwd.out @@ -0,0 +1,30 @@ +root:x:0:0:root:/root:/bin/bash +daemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin +bin:x:2:2:bin:/bin:/usr/sbin/nologin +sys:x:3:3:sys:/dev:/usr/sbin/nologin +sync:x:4:65534:sync:/bin:/bin/sync +games:x:5:60:games:/usr/games:/usr/sbin/nologin +man:x:6:12:man:/var/cache/man:/usr/sbin/nologin +lp:x:7:7:lp:/var/spool/lpd:/usr/sbin/nologin +mail:x:8:8:mail:/var/mail:/usr/sbin/nologin +news:x:9:9:news:/var/spool/news:/usr/sbin/nologin +uucp:x:10:10:uucp:/var/spool/uucp:/usr/sbin/nologin +proxy:x:13:13:proxy:/bin:/usr/sbin/nologin +www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin +backup:x:34:34:backup:/var/backups:/usr/sbin/nologin +list:x:38:38:Mailing List Manager:/var/list:/usr/sbin/nologin +irc:x:39:39:ircd:/var/run/ircd:/usr/sbin/nologin +gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/usr/sbin/nologin +nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin +systemd-network:x:100:102:systemd Network Management,,,:/run/systemd/netif:/usr/sbin/nologin +systemd-resolve:x:101:103:systemd Resolver,,,:/run/systemd/resolve:/usr/sbin/nologin +syslog:x:102:106::/home/syslog:/usr/sbin/nologin +messagebus:x:103:107::/nonexistent:/usr/sbin/nologin +_apt:x:104:65534::/nonexistent:/usr/sbin/nologin +lxd:x:105:65534::/var/lib/lxd/:/bin/false +uuidd:x:106:110::/run/uuidd:/usr/sbin/nologin +dnsmasq:x:107:65534:dnsmasq,,,:/var/lib/misc:/usr/sbin/nologin +landscape:x:108:112::/var/lib/landscape:/usr/sbin/nologin +pollinate:x:109:1::/var/cache/pollinate:/bin/false +sshd:x:110:65534::/run/sshd:/usr/sbin/nologin +joeuser:x:1000:1000:Joe User:/home/joeuser:/bin/bash diff --git a/tests/fixtures/ubuntu-18.04/shadow.json b/tests/fixtures/ubuntu-18.04/shadow.json new file mode 100644 index 00000000..453afa1a --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/shadow.json @@ -0,0 +1 @@ +[{"username": "root", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "daemon", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "bin", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "sys", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "sync", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "games", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "man", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "lp", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "mail", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "news", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "uucp", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "proxy", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "www-data", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "backup", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "list", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "irc", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "gnats", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "nobody", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "systemd-network", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "systemd-resolve", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "syslog", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "messagebus", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "_apt", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "lxd", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "uuidd", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "dnsmasq", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "landscape", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "pollinate", "password": "*", "last_changed": 18113, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "sshd", "password": "*", "last_changed": 18120, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}, {"username": "joeuser", "password": "$6$gEVu6dNZIHfexkz9$iGtl5ZMBnH2HRRtcMCfHKZ5gRl5Dl6Ha/dvzpYxP5rN81nYHk8YJyo5vm8.W.JCQjYc2.XlEKJVRh7ddMzJwiT/", "last_changed": 18120, "minimum": 0, "maximum": 99999, "warn": 7, "inactive": null, "expire": null}] diff --git a/tests/fixtures/ubuntu-18.04/shadow.out b/tests/fixtures/ubuntu-18.04/shadow.out new file mode 100644 index 00000000..194d3af4 --- /dev/null +++ b/tests/fixtures/ubuntu-18.04/shadow.out @@ -0,0 +1,30 @@ +root:*:18113:0:99999:7::: +daemon:*:18113:0:99999:7::: +bin:*:18113:0:99999:7::: +sys:*:18113:0:99999:7::: +sync:*:18113:0:99999:7::: +games:*:18113:0:99999:7::: +man:*:18113:0:99999:7::: +lp:*:18113:0:99999:7::: +mail:*:18113:0:99999:7::: +news:*:18113:0:99999:7::: +uucp:*:18113:0:99999:7::: +proxy:*:18113:0:99999:7::: +www-data:*:18113:0:99999:7::: +backup:*:18113:0:99999:7::: +list:*:18113:0:99999:7::: +irc:*:18113:0:99999:7::: +gnats:*:18113:0:99999:7::: +nobody:*:18113:0:99999:7::: +systemd-network:*:18113:0:99999:7::: +systemd-resolve:*:18113:0:99999:7::: +syslog:*:18113:0:99999:7::: +messagebus:*:18113:0:99999:7::: +_apt:*:18113:0:99999:7::: +lxd:*:18113:0:99999:7::: +uuidd:*:18113:0:99999:7::: +dnsmasq:*:18113:0:99999:7::: +landscape:*:18113:0:99999:7::: +pollinate:*:18113:0:99999:7::: +sshd:*:18120:0:99999:7::: +joeuser:$6$gEVu6dNZIHfexkz9$iGtl5ZMBnH2HRRtcMCfHKZ5gRl5Dl6Ha/dvzpYxP5rN81nYHk8YJyo5vm8.W.JCQjYc2.XlEKJVRh7ddMzJwiT/:18120:0:99999:7:::