chkpasswd

chkpasswd

 chkpasswd [-c] [-i   infosystem   ] [-l   location   ] [   username   ] 

Description

Useful for scripts, chkpasswd prompts for a password, which is then compared against the appropriate directory service for the user specified. If the password is correct, chkpasswd returns 0; otherwise , it returns 1 and the string Sorry is printed to standard error.

Options/Usage


-c

Compares user input with the password hash directly, rather than running it through the crypt algorithm first.


-i

Specifies the directory service to use, which may be file , netinfo , nis , or opendirectory .


-l

Depending on the directory service being used, it's a file (the default is /etc/master.passwd ), a NetInfo domain or server/tag combo, a NIS domain, or an Open Directory node (like /NetInfo/root ).


username

Designates whose password will be checked. It defaults to that of the user running the command.

Location

/usr/libexec



Mac OS X Panther for Unix Geeks
Mac OS X Panther for Unix Geeks
ISBN: 0596006071
EAN: 2147483647
Year: 2003
Pages: 212

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net