ports/77367: sympa account creation patch

Scott Balmos scott.balmos at utoledo.edu
Thu Feb 10 23:40:32 UTC 2005

>Number:         77367
>Category:       ports
>Synopsis:       sympa account creation patch
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 10 23:40:24 GMT 2005
>Originator:     Scott Balmos
>Release:        5.3-RELEASE
FreeBSD flyingpig.simunex.com 5.3-RELEASE FreeBSD 5.3-RELEASE #5: Fri Nov 12 16:52:26 EST 2004 sbalmos at flyingpig.simunex.com:/usr/obj/usr/src/sys/FLYINGPIG  i386

The port of sympa (mail/sympa) creates a user account and group, sympa/sympa, for the Sympa system to run under. However, the port creates a user with a uid/gid of 1025, not with a uid normally reserved in the "system account" space (uid/gid <1000). This can be annoying to systems set up with user account managers that do not use pw and /etc/master.password, and are shared across multiple servers (e.g. LDAP).

It would be better if the sympa user was created using an explicit "system account" uid/gid, such as uid/gid 200 (which doesn't seem to be used by any port that I know of).

Load a fresh FreeBSD box. Create a few normal user accounts (e.g. ones that are auto-assigned uid's, incrementing starting from uid 1000).

Install mail/sympa somewhere along the line.

pw usershow sympa and pw groupshow sympa. The assigned uid/gid is 1025, which is in normal user account uid/gid space.
Explicitly assign uid/gid 200 to sympa. This would also update Sect. 17.12 of the Porter's Handbook.

--- /usr/ports/mail/sympa/pkg-install   Wed Oct 27 11:57:50 2004
+++ pkg-install Thu Feb 10 18:24:58 2005
@@ -44,7 +44,7 @@
 if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then

More information about the freebsd-ports-bugs mailing list