site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Thread-index: AccHqvFyL7yQ+HOeEduSGAAWy6NyrA== Thread-topic: Administrator password User-agent: Microsoft-Entourage/11.2.5.060620 on 06/11/10 20:05, Dan Shoop at shoop@iwiring.net wrote:
First you might check to verify that they gave you a admin user by checking to see if it's a member of the admin group.
Next you can check that the password they gave you is correct with `chkpasswd`; see it's man page.
The second part (chkpasswd) is easy. Although, as Terry pointed out, chkpasswd asks for the password interactively, in a program I can pipe the password to std in, and it works perfectly: It returns 0 if the password is correct, 1 otherwise. But the first part, getting a list of system admins, has me stumped. I can can see what I want by launching NetInfo Manager. A window named "local@localhost" opens and shows me a database browser. If I browse to groups > admin > users, I see exactly what I want: A list of all the admin users on my Mac!! But how can I get this list on the command line? Hint: NetInfo Manager is probably a GUI for some command-line program or it reads a database file, right? Maybe something to do with netinfod and /etc/netinfo, but where is the door to get in there? Thanks for any tips. Jerry Krinock _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com