[OE-core] RFC: Recipe based User & Group addition, modification and deletion
Yury Bushmelev
jay4mail at gmail.com
Tue May 3 21:29:11 UTC 2011
2011/5/3 Mark Hatle <mark.hatle at windriver.com>:
> RFC: Recipe based User & Group addition, modification and deletion
[skip]
> Any comments on the above?
As a former FreeBSD admin I'll show how this is done in 'ports'
collection (JFYI):
# USERS - List of users to create at install time. Each login must
# have a corresponding entry in ${UID_FILES}.
# GROUPS - List of groups to create at install time. Each group must
# have a corresponding entry in ${GID_FILES}.
Sample usage from databases/mysql51-server/Makefile:
USERS= mysql
GROUPS= mysql
UID_FILES and GID_FILES are pointing to UIDs and GIDs files in ports dir.
Sample record from UIDs file:
mysql:*:88:88::0:0:MySQL Daemon:/var/db/mysql:/usr/sbin/nologin
Sample record from GIDs file:
mysql:*:88:
--
Yury Bushmelev
More information about the Openembedded-core
mailing list