Commit | Line | Data |
---|---|---|
2117e02e MW |
1 | Here's how to set up the qmail groups and the qmail users. |
2 | ||
3 | On some systems there are commands that make this easy. Solaris: | |
4 | ||
5 | # groupadd nofiles | |
6 | # useradd -g nofiles -d /var/qmail/alias alias | |
7 | # useradd -g nofiles -d /var/qmail qmaild | |
8 | # useradd -g nofiles -d /var/qmail qmaill | |
9 | # useradd -g nofiles -d /var/qmail qmailp | |
10 | # groupadd qmail | |
11 | # useradd -g qmail -d /var/qmail qmailq | |
12 | # useradd -g qmail -d /var/qmail qmailr | |
13 | # useradd -g qmail -d /var/qmail qmails | |
14 | ||
15 | BSDI 2.0: | |
16 | ||
17 | # addgroup nofiles | |
18 | # adduser -g nofiles -H/var/qmail/alias -G,,, -s/dev/null -P'*' alias | |
19 | # adduser -g nofiles -H/var/qmail -G,,, -s/dev/null -P'*' qmaild | |
20 | # adduser -g nofiles -H/var/qmail -G,,, -s/dev/null -P'*' qmaill | |
21 | # adduser -g nofiles -H/var/qmail -G,,, -s/dev/null -P'*' qmailp | |
22 | # addgroup qmail | |
23 | # adduser -g qmail -H/var/qmail -G,,, -s/dev/null -P'*' qmailq | |
24 | # adduser -g qmail -H/var/qmail -G,,, -s/dev/null -P'*' qmailr | |
25 | # adduser -g qmail -H/var/qmail -G,,, -s/dev/null -P'*' qmails | |
26 | ||
27 | AIX: | |
28 | ||
29 | # mkgroup -A nofiles | |
30 | # mkuser pgrp=nofiles home=/var/qmail/alias shell=/bin/true alias | |
31 | # mkuser pgrp=nofiles home=/var/qmail shell=/bin/true qmaild | |
32 | # mkuser pgrp=nofiles home=/var/qmail shell=/bin/true qmaill | |
33 | # mkuser pgrp=nofiles home=/var/qmail shell=/bin/true qmailp | |
34 | # mkgroup -A qmail | |
35 | # mkuser pgrp=qmail home=/var/qmail shell=/bin/true qmailq | |
36 | # mkuser pgrp=qmail home=/var/qmail shell=/bin/true qmailr | |
37 | # mkuser pgrp=qmail home=/var/qmail shell=/bin/true qmails | |
38 | ||
39 | On other systems, you will have to edit /etc/group and /etc/passwd | |
40 | manually. First add two new lines to /etc/group, something like | |
41 | ||
42 | qmail:*:2107: | |
43 | nofiles:*:2108: | |
44 | ||
45 | where 2107 and 2108 are different from the other gids in /etc/group. | |
46 | Next (using vipw) add six new lines to /etc/passwd, something like | |
47 | ||
48 | alias:*:7790:2108::/var/qmail/alias:/bin/true | |
49 | qmaild:*:7791:2108::/var/qmail:/bin/true | |
50 | qmaill:*:7792:2108::/var/qmail:/bin/true | |
51 | qmailp:*:7793:2108::/var/qmail:/bin/true | |
52 | qmailq:*:7794:2107::/var/qmail:/bin/true | |
53 | qmailr:*:7795:2107::/var/qmail:/bin/true | |
54 | qmails:*:7796:2107::/var/qmail:/bin/true | |
55 | ||
56 | where 7790 through 7796 are _new_ uids, 2107 is the qmail gid, and 2108 | |
57 | is the nofiles gid. Make sure you use the nofiles gid for qmaild, | |
58 | qmaill, qmailp, and alias, and the qmail gid for qmailq, qmailr, and | |
59 | qmails. |