sysutils/nut*: Use a dedicated UID and GID
To reduce conflicts with other packages and improve security, avoid using the uucp UID and GID. This avoids potential conflicts with the net/freebsd-uucp port. Users who wish to continue using the uucp user and group may add NUT_USER=uucp and NUT_GROUP=uucp to their make.conf. PR: 268960 Reported by: delphij MFH: 2023Q1
This commit is contained in:
parent
0f1c0929d2
commit
02c038c8cc
2
GIDs
2
GIDs
@ -256,7 +256,7 @@ _sphinx:*:312:
|
||||
_fastdfs:*:313:
|
||||
promscale:*:314:
|
||||
lavinmq:*:315:
|
||||
# free: 316
|
||||
nut:*:316:
|
||||
# free: 317
|
||||
# free: 318
|
||||
# free: 319
|
||||
|
2
UIDs
2
UIDs
@ -261,7 +261,7 @@ _sphinx:*:312:312::0:0:Sphinxsearch Owner:/nonexistent:/usr/sbin/nologin
|
||||
_fastdfs:*:313:313::0:0:FastDFS Owner:/nonexistent:/usr/sbin/nologin
|
||||
promscale:*:314:314::0:0:Promscale:/nonexistent:/usr/sbin/nologin
|
||||
lavinmq:*:315:315::0:0:LavinMQ user:/nonexistent:/usr/sbin/nologin
|
||||
# free: 316
|
||||
nut:*:316:316::0:0:Network UPS Tools user:/nonexistent:/usr/sbin/nologin
|
||||
# free: 317
|
||||
# free: 318
|
||||
# free: 319
|
||||
|
8
UPDATING
8
UPDATING
@ -5,6 +5,14 @@ they are unavoidable.
|
||||
You should get into the habit of checking this file for changes each time
|
||||
you update your ports collection, before attempting any port upgrades.
|
||||
|
||||
20230116:
|
||||
AFFECTS: users of sysutils/nut and sysutils/nut-devel
|
||||
AUTHOR: cy@freebsd.org
|
||||
|
||||
As of PR/268960 Network UPS Tools will now run under its own UID and GID
|
||||
instead of uucp. Users who wish to continue using the uucp user and
|
||||
group may add NUT_USER=uucp and NUT_GROUP=uucp to their make.conf.
|
||||
|
||||
20230111:
|
||||
AFFECTS: users of sysutils/graylog
|
||||
AUTHOR: dch@freebsd.org
|
||||
|
@ -1,6 +1,6 @@
|
||||
PORTNAME= nut
|
||||
PORTVERSION= ${NUT_COMMIT_DATE}
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
CATEGORIES= sysutils
|
||||
PKGNAMESUFFIX= -devel
|
||||
# MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
|
||||
@ -28,8 +28,10 @@ GNU_CONFIGURE= yes
|
||||
USES= autoreconf:build compiler:c11 gmake libtool pkgconfig python
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
NUT_USER?= uucp
|
||||
NUT_GROUP?= uucp
|
||||
NUT_USER?= nut
|
||||
NUT_GROUP?= nut
|
||||
USERS= ${NUT_USER}
|
||||
GROUPS= ${NUT_GROUP}
|
||||
STATEDIR?= /var/db/nut
|
||||
PLIST_SUB+= NUT_USER=${NUT_USER}
|
||||
PLIST_SUB+= NUT_GROUP=${NUT_GROUP}
|
||||
|
@ -1,6 +1,6 @@
|
||||
PORTNAME= nut
|
||||
PORTVERSION= 2.8.0
|
||||
PORTREVISION= 13
|
||||
PORTREVISION= 14
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= http://www.networkupstools.org/source/${PORTVERSION:R}/
|
||||
|
||||
@ -18,8 +18,10 @@ GNU_CONFIGURE= yes
|
||||
USES= autoreconf:build compiler:c11 gmake libtool pkgconfig python:build
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
NUT_USER?= uucp
|
||||
NUT_GROUP?= uucp
|
||||
NUT_USER?= nut
|
||||
NUT_GROUP?= nut
|
||||
USERS= ${NUT_USER}
|
||||
GROUPS= ${NUT_GROUP}
|
||||
STATEDIR?= /var/db/nut
|
||||
PLIST_SUB+= NUT_USER=${NUT_USER}
|
||||
PLIST_SUB+= NUT_GROUP=${NUT_GROUP}
|
||||
|
Loading…
Reference in New Issue
Block a user