FreeBSD Porter's Handbook
Prev | Chapter 6 Special Considerations | Next

# 6.25 Adding Users and Groups

Some ports require a certain user to be on the installed system. 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.

Then you can use `USERS` and `GROUPS` variables in your `Makefile`, and the user will be automatically created when installing the port.

    USERS=	pulse
    GROUPS=	pulse pulse-access pulse-rt

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

Prev | Home | Next
Starting and Stopping Services (`rc` Scripts) | Up | Ports That Rely on Kernel Sources

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