FreeBSD Porter's Handbook
Prev | Chapter 12 Dos and Don'ts | Next

# 12.8 UIDs and GIDs

The current list of reserved UIDs and GIDs can be found in `ports/UIDs` and `ports/GIDs`.

If your port requires a certain user to be on the installed system, let the `pkg-install` script call `pw` to create it automatically. Look at `sysutils/symon` for an example. Your port must use a fixed user/group ID number. You must choose a free UID from 50 to 999 and register it either in `ports/UIDs` (for users) or in `ports/GIDs` (for groups).

Make sure you do not use a UID already used by the system or other ports.

Please include a patch against these two files when you require a new user or group to be created for your port.

Prev | Home | Next
Use the `exec` statement in wrapper scripts | Up | Do things rationally

For questions about the FreeBSD ports system, e-mail <ports@FreeBSD.org>.
For questions about this documentation, e-mail <doc@FreeBSD.org>.