12.8. UIDs 及 GIDs
前一頁 | 章 12. Dos and Don'ts | 下一頁

## 12.8. UIDs 及 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 `net/cvsup-mirror` for an example. Please note that this is strongly discouraged, please register user/group ID numbers as stated below.

If your port must use the same user/group ID number when it is installed as a binary package as when it was compiled, then 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). Look at `japanese/Wnn6` for an example.

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.

前一頁 | 上一層 | 下一頁
12.7. 在 wrapper scripts 中使用 `exec` 述句 | 起始頁 | 12.9. Do things rationally

本文及其他文件，可由此下載： ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/。

若有 FreeBSD 方面疑問，請先閱讀 FreeBSD 相關文件，如不能解決的話，再洽詢 <questions@FreeBSD.org>。
關於本文件的問題，請洽詢 <doc@FreeBSD.org>。