| Current File : //var/qmail/man/cat8/qmail-pw2u.0 |
Maintenance Procedures qmail-pw2u(8)
NNNNAAAAMMMMEEEE
qmail-pw2u - build address assignments from a passwd file
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
qqqqmmmmaaaaiiiillll----ppppwwww2222uuuu [ -////oooohhhhHHHHuuuuUUUUCCCC ] [ -cccc_c_h_a_r ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
qqqqmmmmaaaaiiiillll----ppppwwww2222uuuu reads a V7-format passwd file from standard input
and prints a qqqqmmmmaaaaiiiillll----uuuusssseeeerrrrssss-format assignment file.
A V7-format passwd file is a series of lines. Each line has
the format
user:password:uid:gid:gecos:home:shell
where _u_s_e_r is an account name, _u_i_d and _g_i_d are the user id
and group id of that account, and _h_o_m_e is the account's home
directory. _p_a_s_s_w_o_r_d, _g_e_c_o_s, and _s_h_e_l_l are ignored by
qqqqmmmmaaaaiiiillll----ppppwwww2222uuuu.
If you put the output of qqqqmmmmaaaaiiiillll----ppppwwww2222uuuu into
////vvvvaaaarrrr////qqqqmmmmaaaaiiiillll////uuuusssseeeerrrrssss////aaaassssssssiiiiggggnnnn, and then run qqqqmmmmaaaaiiiillll----nnnneeeewwwwuuuu, qqqqmmmmaaaaiiiillll----
llllssssppppaaaawwwwnnnn will obey the assignments printed by qqqqmmmmaaaaiiiillll----ppppwwww2222uuuu.
WWWWAAAARRRRNNNNIIIINNNNGGGG:::: After changing any users, uids, gids, or home
directories in your passwd file, you must run qqqqmmmmaaaaiiiillll----ppppwwww2222uuuu and
qqqqmmmmaaaaiiiillll----nnnneeeewwwwuuuu again if you want qqqqmmmmaaaaiiiillll----llllssssppppaaaawwwwnnnn to see the
changes.
RRRRUUUULLLLEEEESSSS
By default, qqqqmmmmaaaaiiiillll----ppppwwww2222uuuu follows the same rules as qqqqmmmmaaaaiiiillll----
ggggeeeettttppppwwww. It skips _u_s_e_r if (1) _u_i_d is zero, (2) _h_o_m_e does not
exist, (3) _u_s_e_r does not own _h_o_m_e, or (4) _u_s_e_r contains
uppercase letters. It then gives each remaining _u_s_e_r con-
trol over the basic _u_s_e_r address and all addresses of the
form _u_s_e_r----_a_n_y_t_h_i_n_g. A catch-all user, aaaalllliiiiaaaassss, controls all
other addresses.
You may change these rules by setting up files in
////vvvvaaaarrrr////qqqqmmmmaaaaiiiillll////uuuusssseeeerrrrssss:
iiiinnnncccclllluuuuddddeeee
Allowed users, one per line. If iiiinnnncccclllluuuuddddeeee exists, and
_u_s_e_r is not listed in iiiinnnncccclllluuuuddddeeee, _u_s_e_r is ignored.
eeeexxxxcccclllluuuuddddeeee
Ignored users, one per line. If eeeexxxxcccclllluuuuddddeeee exists, and
_u_s_e_r is listed in eeeexxxxcccclllluuuuddddeeee, _u_s_e_r is ignored.
mmmmaaaaiiiillllnnnnaaaammmmeeeessss
Replacement names for users. Each line has the form
user:mailname1:mailname2:...
SunOS 5.11 Last change: 1
Maintenance Procedures qmail-pw2u(8)
The addresses _m_a_i_l_n_a_m_e_1 and _m_a_i_l_n_a_m_e_1----_e_x_t and _m_a_i_l_n_a_m_e_2
and so on will be delivered to _u_s_e_r.
WWWWAAAARRRRNNNNIIIINNNNGGGG:::: The addresses _u_s_e_r and _u_s_e_r----_e_x_t will not be
delivered to _u_s_e_r unless _u_s_e_r is listed as one of the
_m_a_i_l_n_a_m_es.
A line in mmmmaaaaiiiillllnnnnaaaammmmeeeessss is silently ignored if the user
does not exist.
ssssuuuubbbbuuuusssseeeerrrrssss
Extra addresses. Each line has the form
sub:user:pre:
_s_u_b will be handled by _h_o_m_e////....qqqqmmmmaaaaiiiillll-_p_r_e, where _h_o_m_e is
_u_s_e_r's home directory; _s_u_b----_e_x_t will be handled by
_h_o_m_e////....qqqqmmmmaaaaiiiillll-_p_r_e-_e_x_t.
aaaappppppppeeeennnndddd
Extra assignments, printed at the end of qqqqmmmmaaaaiiiillll----ppppwwww2222uuuu's
output.
OOOOPPPPTTTTIIIIOOOONNNNSSSS
-oooo (Default.) Skip _u_s_e_r if _h_o_m_e does not exist (or is not
visible to qqqqmmmmaaaaiiiillll----ppppwwww2222uuuu). Skip _u_s_e_r if _h_o_m_e is not owned
by _u_s_e_r.
-hhhh Stop if _h_o_m_e does not exist. This is appropriate if
every user is supposed to have a home directory. Skip
_u_s_e_r if _h_o_m_e is not owned by _u_s_e_r.
-HHHH Do not check the existence or ownership of _h_o_m_e.
-UUUU (Default.) Skip _u_s_e_r if there are any uppercase
letters in _u_s_e_r.
-uuuu Allow uppercase letters in _u_s_e_r.
-cccc_c_h_a_r
Use _c_h_a_r as the user-extension delimiter in place of ----.
-CCCC Disable the user-extension mechanism.
-//// Use _h_o_m_e////....qqqqmmmmaaaaiiiillll-////... instead of _h_o_m_e////....qqqqmmmmaaaaiiiillll-...
SSSSEEEEEEEE AAAALLLLSSSSOOOO
qmail-users(5), qmail-lspawn(8), qmail-newu(8), qmail-
getpw(8)
SunOS 5.11 Last change: 2