* [Buildroot] Howto use "Makeusers"
@ 2015-12-04 14:01 Andreas Ehmanns
2015-12-04 14:03 ` Thomas Petazzoni
2015-12-04 14:04 ` Gustavo Zacarias
0 siblings, 2 replies; 4+ messages in thread
From: Andreas Ehmanns @ 2015-12-04 14:01 UTC (permalink / raw)
To: buildroot
Hello,
to make an openldap server available for buildroot I created an init
script which starts the ldap server as non-privileged user (and group).
Since the ldap user and group is not existing on the target I searched
for a way to let the openldap package add the user and group to the
target filesystem. The buildroot documentation describes in chapter 23
the syntax of "makeusers". So far so good, but I have no idea to which
file I should add the corresponding makeusers command.
I grepped the buildroot tree for an example but unfortunately did not
found a package using this command.
Does anybody have an example how to do this.
Regards,
Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Howto use "Makeusers"
2015-12-04 14:01 [Buildroot] Howto use "Makeusers" Andreas Ehmanns
@ 2015-12-04 14:03 ` Thomas Petazzoni
2015-12-04 14:17 ` Andreas Ehmanns
2015-12-04 14:04 ` Gustavo Zacarias
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2015-12-04 14:03 UTC (permalink / raw)
To: buildroot
Andreas,
On Fri, 4 Dec 2015 15:01:51 +0100, Andreas Ehmanns wrote:
> to make an openldap server available for buildroot I created an init
> script which starts the ldap server as non-privileged user (and group).
> Since the ldap user and group is not existing on the target I searched
> for a way to let the openldap package add the user and group to the
> target filesystem. The buildroot documentation describes in chapter 23
> the syntax of "makeusers". So far so good, but I have no idea to which
> file I should add the corresponding makeusers command.
>
> I grepped the buildroot tree for an example but unfortunately did not
> found a package using this command.
>
> Does anybody have an example how to do this.
Directly in your .mk file, using a variable named <pkg>_USERS. See
package/dbus/dbus.mk for an example:
define DBUS_USERS
dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user
endef
This is also documented in the manual, which says:
LIBFOO_USERS lists the users to create for this package, if it
installs a program you want to run as a specific user (e.g. as a
daemon, or as a cron-job). The syntax is similar in spirit to the
makedevs one, and is described in the Chapter 23, Makeusers syntax
documentation. This variable is optional.
Hope this helps,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] Howto use "Makeusers"
2015-12-04 14:03 ` Thomas Petazzoni
@ 2015-12-04 14:17 ` Andreas Ehmanns
0 siblings, 0 replies; 4+ messages in thread
From: Andreas Ehmanns @ 2015-12-04 14:17 UTC (permalink / raw)
To: buildroot
Am 04.12.2015 um 15:03 schrieb Thomas Petazzoni:
> Andreas,
>
> On Fri, 4 Dec 2015 15:01:51 +0100, Andreas Ehmanns wrote:
>
>> to make an openldap server available for buildroot I created an init
>> script which starts the ldap server as non-privileged user (and group).
>> Since the ldap user and group is not existing on the target I searched
>> for a way to let the openldap package add the user and group to the
>> target filesystem. The buildroot documentation describes in chapter 23
>> the syntax of "makeusers". So far so good, but I have no idea to which
>> file I should add the corresponding makeusers command.
>>
>> I grepped the buildroot tree for an example but unfortunately did not
>> found a package using this command.
>>
>> Does anybody have an example how to do this.
> Directly in your .mk file, using a variable named <pkg>_USERS. See
> package/dbus/dbus.mk for an example:
>
> define DBUS_USERS
> dbus -1 dbus -1 * /var/run/dbus - dbus DBus messagebus user
> endef
>
> This is also documented in the manual, which says:
>
> LIBFOO_USERS lists the users to create for this package, if it
> installs a program you want to run as a specific user (e.g. as a
> daemon, or as a cron-job). The syntax is similar in spirit to the
> makedevs one, and is described in the Chapter 23, Makeusers syntax
> documentation. This variable is optional.
>
> Hope this helps,
>
> Thomas
Dear Thomas, dear Gustavo,
thanks for your information and your hints. Seems that I did not grep
for the right key word.
Regards,
Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Howto use "Makeusers"
2015-12-04 14:01 [Buildroot] Howto use "Makeusers" Andreas Ehmanns
2015-12-04 14:03 ` Thomas Petazzoni
@ 2015-12-04 14:04 ` Gustavo Zacarias
1 sibling, 0 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2015-12-04 14:04 UTC (permalink / raw)
To: buildroot
On 04/12/15 11:01, Andreas Ehmanns wrote:
> Hello,
> to make an openldap server available for buildroot I created an init
> script which starts the ldap server as non-privileged user (and group).
> Since the ldap user and group is not existing on the target I searched
> for a way to let the openldap package add the user and group to the
> target filesystem. The buildroot documentation describes in chapter 23
> the syntax of "makeusers". So far so good, but I have no idea to which
> file I should add the corresponding makeusers command.
>
> I grepped the buildroot tree for an example but unfortunately did not
> found a package using this command.
>
> Does anybody have an example how to do this.
>
> Regards,
> Andreas
Hi.
Actually several packages use this functionality, see for example
package/squid/squid.mk (SQUID_USERS), package/redis/redis.mk
(REDIS_USERS) and such.
Regards.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-12-04 14:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-04 14:01 [Buildroot] Howto use "Makeusers" Andreas Ehmanns
2015-12-04 14:03 ` Thomas Petazzoni
2015-12-04 14:17 ` Andreas Ehmanns
2015-12-04 14:04 ` Gustavo Zacarias
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.