[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
howtos:network_services:postfix_dovecot_mysql:uid_gid [2015/02/15 08:15 (UTC)] – created astrogeek | howtos:network_services:postfix_dovecot_mysql:uid_gid [2015/03/08 09:35 (UTC)] (current) – Sources and links astrogeek | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Creating Required Users and Groups ===== | + | ====== Creating Required Users and Groups ====== |
- | <note important> | + | |
+ | This page is supplemental to main article: [[howtos: | ||
You will need to create a few special users and groups to be able to build and/or run your mail server components. | You will need to create a few special users and groups to be able to build and/or run your mail server components. | ||
We will use the SBo assigned uid and gid for each user and group. | We will use the SBo assigned uid and gid for each user and group. | ||
- | To prepare to build or run postfix, execute the following commands on the target machine: | + | To prepare to build or install |
< | < | ||
Line 13: | Line 15: | ||
</ | </ | ||
- | To prepare to build or run dovecot, execute the following commands on the target machine: | + | To prepare to build or install |
< | < | ||
Line 22: | Line 24: | ||
</ | </ | ||
- | Additionally, | + | Additionally, |
+ | |||
+ | Execute | ||
< | < | ||
- | groupadd -g 303 vmail | + | groupadd -g 5000 vmail |
- | useradd -d /var/vmail -s /bin/false -u 303 -g 303 vmail | + | useradd -d /var/vmail -s /bin/false -u 5000 -g 5000 vmail |
mkdir -p / | mkdir -p / | ||
chown -R vmail:vmail /var/vmail | chown -R vmail:vmail /var/vmail | ||
</ | </ | ||
+ | |||
+ | To test whether these users or groups already exist on a machine, substitute the user or group names into the respective commands: | ||
+ | < | ||
+ | cat /etc/passwd |grep ^postfix | ||
+ | cat /etc/group |grep ^postdrop | ||
+ | </ | ||
+ | |||
+ | If the corresponding name exists it will be shown, otherwise you will see only an empty prompt in response. | ||
+ | |||
+ | For troubleshooting you should verify that each user and group is defined on your machine as shown here. | ||
[[howtos: | [[howtos: | ||
- | {{tag> | + | ====== Sources ====== |
+ | * Originally written by [[wiki: | ||
+ | {{tag> |