• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Administrator password
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Administrator password
      • From: Dan Shoop <email@hidden>
    • Re: Administrator password
      • From: Terry Lambert <email@hidden>
    • Re: Administrator password
      • From: Joseph Oreste Bruni <email@hidden>
References: 
 >Re: Administrator password (From: Dan Shoop <email@hidden>)

  • Prev by Date: Re: IOAudioDevice Subclass KEXT not calling initHardware
  • Next by Date: Re: Administrator password
  • Previous by thread: Re: Administrator password
  • Next by thread: Re: Administrator password
  • Index(es):
    • Date
    • Thread