getspnam

getspnam是linux函式館中訪問shadow的口令。

getspnam() 函式功能:訪問shadow口令
原型定義:struct spwd *getspnam(char *name);
表頭檔案:
#include <shadow.h>
信息存貯在如下的結構體之中
struct spwd {
char *sp_namp; /* Login name. */
char *sp_pwdp; /* Encrypted password. */
long int sp_lstchg; /* Date of last change. */
long int sp_min; /* Minimum number of days between changes. */
long int sp_max; /* Maximum number of days between changes. */
long int sp_warn; /* Number of days to warn user to change
the password. */
long int sp_inact; /* Number of days the account may be
inactive. */
long int sp_expire; /* Number of days since 1970-01-01 until
account expires. */
unsigned long int sp_flag; /* Reserved. */
};

相關詞條

熱門詞條

聯絡我們