2011/5/3 Mark Hatle <mark.ha...@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

_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to