Start first_valid_uid at 1000 to match the low uid of regular Unix users

on OpenBSD.

ok sthen@ brad@ (maintainer)
This commit is contained in:
ajacoutot 2013-01-27 09:29:37 +00:00
parent e7b3e9a34f
commit d650a2552b
2 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.197 2013/01/08 23:58:43 brad Exp $
# $OpenBSD: Makefile,v 1.198 2013/01/27 09:29:37 ajacoutot Exp $
SHARED_ONLY= Yes
@ -19,6 +19,7 @@ PKGNAME-mysql= dovecot-mysql-${V_DOVECOT}
PKGNAME-postgresql= dovecot-postgresql-${V_DOVECOT}
CATEGORIES= mail
MASTER_SITES= ${HOMEPAGE}releases/${V_MAJOR}/
REVISION-server=0
SHARED_LIBS= dovecot-lda 1.0 \
dovecot-login 1.0 \

View File

@ -1,6 +1,6 @@
$OpenBSD: patch-doc_example-config_conf_d_10-mail_conf,v 1.2 2012/06/08 22:04:10 sthen Exp $
--- doc/example-config/conf.d/10-mail.conf.orig Fri May 4 17:14:02 2012
+++ doc/example-config/conf.d/10-mail.conf Sat May 12 22:47:31 2012
$OpenBSD: patch-doc_example-config_conf_d_10-mail_conf,v 1.3 2013/01/27 09:29:37 ajacoutot Exp $
--- doc/example-config/conf.d/10-mail.conf.orig Fri May 4 23:14:02 2012
+++ doc/example-config/conf.d/10-mail.conf Sun Jan 27 09:54:31 2013
@@ -129,8 +129,9 @@ namespace inbox {
##
@ -13,6 +13,15 @@ $OpenBSD: patch-doc_example-config_conf_d_10-mail_conf,v 1.2 2012/06/08 22:04:10
# Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
# since version 3, so this should be safe to use nowadays by default.
@@ -161,7 +162,7 @@ namespace inbox {
# to make sure that users can't log in as daemons or other system users.
# Note that denying root logins is hardcoded to dovecot binary and can't
# be done even if first_valid_uid is set to 0.
-#first_valid_uid = 500
+first_valid_uid = 1000
#last_valid_uid = 0
# Valid GID range for users, defaults to non-root/wheel. Users having
@@ -194,10 +195,10 @@ namespace inbox {
# UNIX socket path to master authentication server to find users.