From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] The best way to add a new group to /etc/group
Date: Fri, 18 Mar 2016 22:19:32 +0100 [thread overview]
Message-ID: <56EC70E4.9060007@mind.be> (raw)
In-Reply-To: <20160318174359.GC3696@free.fr>
On 03/18/16 18:43, Yann E. MORIN wrote:
> ?scar, All,
>
> On 2016-03-18 10:38 +0100, ?scar G?mez Fuente spake thusly:
>> 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?
>
> Yes, it's simple: specify the username as just a plain dash '-', as
> explained in the manual:
> https://buildroot.org/downloads/manual/manual.html#makeuser-syntax
>
> ---8<---
> username is the desired user name (aka login name) for the user. It
> can not be root, and must be unique. If set to -, then just a group
> will be created.
But as far as I know, there is no way to add users to a group, no? So to add
the root user to this new group, the only option is to explicitly update the
groups file.
Regards,
Arnout
> ---8<---
>
> Regards,
> Yann E. MORIN.
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
next prev parent reply other threads:[~2016-03-18 21:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2016-03-18 22:22 ` Yann E. MORIN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56EC70E4.9060007@mind.be \
--to=arnout@mind.be \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox