* [Buildroot] UID management
@ 2016-06-01 9:15 Marco Trapanese
2016-06-01 9:28 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Marco Trapanese @ 2016-06-01 9:15 UTC (permalink / raw)
To: buildroot
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160601/f93ea3b9/attachment.html>
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] UID management
2016-06-01 9:15 [Buildroot] UID management Marco Trapanese
@ 2016-06-01 9:28 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-06-01 9:28 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 1 Jun 2016 11:15:02 +0200, Marco Trapanese wrote:
> Hello, I kindly ask a suggestion about the best way to manage UIDs.
> On my host system, where I have the overlay directory, the UID of the user is 1000.
> The home directory of my normal user in the target system is /opt.
>
> The overlay files copied into /opt belong to the dbus user, which has the UID 1000.
> The owner of that home directory should be user defined in the user_table file, with UID 1100:
>
> user 1100 user 1100 =user /opt /bin/sh dialout,wheel,lp,pulse,audio,network,pulse-access
> root:x:0:
> user:x:1100:
> dbus:x:1000:dbus
>
> I'm not sure which is the recommended way to get rid of this.
> I have to (manually?) chown the overlay file and set them to UID 1100?
By default, Buildroot chowns all files of the root filesystem to the
root user (i.e UID 0, GID 0). You can override that:
1/ On a per-package basis using the <pkg>_PERMISSIONS variable.
2/ Globally on your system, by passing a permission table using the
BR2_ROOTFS_DEVICE_TABLE option.
See the Buildroot manual for details.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-01 9:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-01 9:15 [Buildroot] UID management Marco Trapanese
2016-06-01 9:28 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox