Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] The best way to add a new group to /etc/group
@ 2016-03-18  9:38 Óscar Gómez Fuente
  2016-03-18 17:43 ` Yann E. MORIN
  0 siblings, 1 reply; 4+ messages in thread
From: Óscar Gómez Fuente @ 2016-03-18  9:38 UTC (permalink / raw)
  To: buildroot

Hi,

I'm building a new package in buildroot and I would like to know the best
way to add a new group.

I have to add a new group called: test_group. In my system (with
INIT_SYSV). I have a user called root and I have to add it to this group
too.

I've read the section "17.5.2. generic-package reference" in the buidroot
manual and find this variable: NAMEPACKAGE_USERS that it's very interesting
because automatically it adds the user you want and the uid and guid can be
computed automatically, so is very useful.

Does anyone know if there is something similar to add a group?

Righ now, I'm using this command in my package.mk but it's a lilttle bit
owful and very dangerous because I don't know if the guid 1001 is free or
not.

# Added usergroup test_group
@echo "test_group:x:1001:root" 1>>$(TARGET_DIR)/etc/group

Oscar Gomez Fuente
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160318/5fabd881/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-18 22:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-18  9:38 [Buildroot] The best way to add a new group to /etc/group Óscar Gómez Fuente
2016-03-18 17:43 ` Yann E. MORIN
2016-03-18 21:19   ` Arnout Vandecappelle
2016-03-18 22:22     ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox