📄 qmail-pw2u.9
字号:
.TH qmail-pw2u 8.SH NAMEqmail-pw2u \- build address assignments from a passwd file.SH SYNOPSIS.B qmail-pw2u[.B \-/ohHuUC][.B \-c\fIchar].SH DESCRIPTION.B qmail-pw2ureads a V7-format passwd file from standard inputand prints a.BR qmail-users -formatassignment file.A V7-format passwd file is a series of lines.Each line has the format.EX user:password:uid:gid:gecos:home:shell.EEwhere.I useris an account name,.I uidand.I gidare the user id and group id of that account,and.I homeis the account's home directory..IR password ,.IR gecos ,and.I shellare ignored by.BR qmail-pw2u .If you put the output of.B qmail-pw2uinto.BR QMAILHOME/users/assign ,and then run.BR qmail-newu ,.B qmail-lspawnwill obey the assignments printed by.BR qmail-pw2u ..B WARNING:After changing any users, uids, gids, or home directoriesin your passwd file,you must run.B qmail-pw2uand.B qmail-newuagain if you want.B qmail-lspawnto see the changes..SH RULESBy default,.B qmail-pw2ufollows the same rules as.BR qmail-getpw .It skips.I userif (1).I uidis zero,(2).I homedoes not exist,(3).I userdoes not own.IR home ,or(4).I usercontains uppercase letters.It then gives each remaining.I usercontrol over the basic.I useraddress andall addresses of the form.IR user\fBBREAK\fIanything .A catch-all user,.BR alias ,controls all other addresses.You may change these rules by setting up files in.BR QMAILHOME/users :.TP.B includeAllowed users, one per line.If.B includeexists, and.I useris not listed in.BR include ,.I useris ignored..TP.B excludeIgnored users, one per line.If.B excludeexists, and.I useris listed in.BR exclude ,.I useris ignored..TP.B mailnamesReplacement names for users.Each line has the form.EX user:mailname1:mailname2:....EEThe addresses.I mailname1and.I mailname1\fBBREAK\fIextand.I mailname2and so on will be deliveredto.IR user ..B WARNING:The addresses.I userand.I user\fBBREAK\fIextwill not be delivered to.I userunless.I useris listed as one of the.IR mailname s.A line in.B mailnamesis silently ignored if the user does not exist..TP.B subusersExtra addresses.Each line has the form.EX sub:user:pre:.EE.I subwill be handled by.IR home\fB/.qmail\-\fIpre ,where.I homeis.IR user 'shome directory;.I sub\fBBREAK\fIextwill be handled by.IR home\fB/.qmail\-\fIpre\fB\-\fIext ..TP.B appendExtra assignments,printed at the end of.BR qmail-pw2u 'soutput..SH OPTIONS.TP.B \-o(Default.)Skip.I userif.I homedoes not exist (or is not visible to.BR qmail-pw2u ).Skip.I userif.I homeis not owned by.IR user ..TP.B \-hStop if.I homedoes not exist.This is appropriate if every user is supposed to have a home directory.Skip.I userif.I homeis not owned by.IR user ..TP.B \-HDo not check the existence or ownership of.IR home ..TP.B \-U(Default.)Skip.I userif there are any uppercase letters in.IR user ..TP.B \-uAllow uppercase letters in.IR user ..TP.B \-c\fIcharUse.I charas the user-extension delimiterin place of.BR BREAK ..TP.B \-CDisable the user-extension mechanism..TP.B \-/Use.IR home\fB/.qmail\-/ ...instead of.IR home\fB/.qmail\- ....SH "SEE ALSO"qmail-users(5),qmail-lspawn(8),qmail-newu(8),qmail-getpw(8)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -