Re: Administrator password
Re: Administrator password
- Subject: Re: Administrator password
- From: Jerry Krinock <email@hidden>
- Date: Tue, 14 Nov 2006 00:08:38 -0500
- Thread-topic: Administrator password
on 06/11/10 20:05, Dan Shoop at email@hidden 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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden