📄 mkpasswd.8
字号:
.TH mkpasswd 8.SH Namemkpasswd \- generate hashed password table.SH Syntax.B /etc/mkpasswd [\fB\-uv\fP]\fIpasswdfile\fP.SH Description.NXR "mkpasswd command"The.PN mkpasswdcommand is used to generate the hashed password database used by thelibrary routines.PN getpwnam()and.PN getpwuid()..PPIf the.B \-uoption is present thehashed files will not be built unless they already exist.In any case, the hashed files will not be built if the timeof last modification of the.I passwdfileis less recent than that of an existing hashed files..PPIf the.B \-voption is supplied, each entry will be listed as it is added..PPThe file.I passwdfileis usually .PN /etc/passwd and must be in the format of .PN passwd(5).The.PN mkpasswdcommand will generate database files named\fIpasswdfile\f(CW.pag\fRand\fIpasswdfile\f(CW.dir\fR.The.PN mkpasswdcommand will exit with a non-zero exit code if any errors are detected.Otherwise it will print the number of entries processed and the lengthof the longest entry..PPThe presence of the hashed files is optional. They are not required forcorrect operation of.PN getpwnam()or.PN getpwuid()but will improve theirperformance on systems with moderate to large sized .PN /etc/passwd files..SH Diagnostics.B "The data base is already up to date. .brIf the specified file has been modified less recently than thehashed files..PP .B "Database not created." .brWhen used with the \f(CW\-u\fP optionand the database does not already exist..SH Files.TP 15\fIpasswdfile\f(CW.dir\fRDatabase filename.TP\fIpasswdfile\f(CW.pag\fRDatabase filename.SH See Alsogetpwent(3), passwd(5), vipw(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -