* useradd-example.bb
@ 2018-02-13 21:32 Jean-Pierre Sainfeld
2018-02-14 20:57 ` useradd-example.bb Jeff Osier-Mixon
2018-02-14 21:02 ` useradd-example.bb Fred Ollinger
0 siblings, 2 replies; 4+ messages in thread
From: Jean-Pierre Sainfeld @ 2018-02-13 21:32 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 841 bytes --]
Hi,
I am working on yocto system at the jethro rev level.
I am looking to use the meta-skeleton useradd-example.bb recipe
So far I have been successful in adding the required users and group
and creating files in the /usr/share directory
The current issue I am facing is the ownership of the created file
I see the right permissions at the do_install() time
however when the image is loaded in the target
those files are reverted to the root:root permissions
The requirement of our platform is that we can create specific users and
make some specific processes and data files having the proper uid and ueid.
I have been able to do all this successfully on the target
but not through the yocto build system
Any assistance in this regard would be fantastic and very cool :-)
--
Jean-Pierre Sainfeld
408-508-1741
[-- Attachment #2: Type: text/html, Size: 1229 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: useradd-example.bb
2018-02-13 21:32 useradd-example.bb Jean-Pierre Sainfeld
@ 2018-02-14 20:57 ` Jeff Osier-Mixon
2018-02-14 21:09 ` useradd-example.bb Mark Hatle
2018-02-14 21:02 ` useradd-example.bb Fred Ollinger
1 sibling, 1 reply; 4+ messages in thread
From: Jeff Osier-Mixon @ 2018-02-14 20:57 UTC (permalink / raw)
To: Jean-Pierre Sainfeld; +Cc: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 1324 bytes --]
Can anyone help Jean-Pierre? This seems at first like a simple issue during
do_populate.
On Tue, Feb 13, 2018 at 1:32 PM, Jean-Pierre Sainfeld <jean-pierre@anki.com>
wrote:
> Hi,
> I am working on yocto system at the jethro rev level.
> I am looking to use the meta-skeleton useradd-example.bb recipe
> So far I have been successful in adding the required users and group
> and creating files in the /usr/share directory
> The current issue I am facing is the ownership of the created file
> I see the right permissions at the do_install() time
> however when the image is loaded in the target
> those files are reverted to the root:root permissions
>
> The requirement of our platform is that we can create specific users and
> make some specific processes and data files having the proper uid and
> ueid.
>
> I have been able to do all this successfully on the target
> but not through the yocto build system
>
> Any assistance in this regard would be fantastic and very cool :-)
>
>
>
> --
> Jean-Pierre Sainfeld
> 408-508-1741 <(408)%20508-1741>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
>
--
Jeff Osier-Mixon - Open Source Community Manager, Intel Corporation
[-- Attachment #2: Type: text/html, Size: 2384 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: useradd-example.bb
2018-02-13 21:32 useradd-example.bb Jean-Pierre Sainfeld
2018-02-14 20:57 ` useradd-example.bb Jeff Osier-Mixon
@ 2018-02-14 21:02 ` Fred Ollinger
1 sibling, 0 replies; 4+ messages in thread
From: Fred Ollinger @ 2018-02-14 21:02 UTC (permalink / raw)
To: Jean-Pierre Sainfeld, yocto
How are you deploying the final image on your device?
________________________________
From: yocto-bounces@yoctoproject.org <yocto-bounces@yoctoproject.org> on behalf of Jean-Pierre Sainfeld <jean-pierre@anki.com>
Sent: Tuesday, February 13, 2018 1:32 PM
To: yocto@yoctoproject.org
Subject: [yocto] useradd-example.bb
Hi,
I am working on yocto system at the jethro rev level.
I am looking to use the meta-skeleton useradd-example.bb<http://useradd-example.bb> recipe
So far I have been successful in adding the required users and group
and creating files in the /usr/share directory
The current issue I am facing is the ownership of the created file
I see the right permissions at the do_install() time
however when the image is loaded in the target
those files are reverted to the root:root permissions
The requirement of our platform is that we can create specific users and
make some specific processes and data files having the proper uid and ueid.
I have been able to do all this successfully on the target
but not through the yocto build system
Any assistance in this regard would be fantastic and very cool :-)
--
Jean-Pierre Sainfeld
408-508-1741
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: useradd-example.bb
2018-02-14 20:57 ` useradd-example.bb Jeff Osier-Mixon
@ 2018-02-14 21:09 ` Mark Hatle
0 siblings, 0 replies; 4+ messages in thread
From: Mark Hatle @ 2018-02-14 21:09 UTC (permalink / raw)
To: Jeff Osier-Mixon, Jean-Pierre Sainfeld; +Cc: Yocto Project
On 2/14/18 2:57 PM, Jeff Osier-Mixon wrote:
> Can anyone help Jean-Pierre? This seems at first like a simple issue during
> do_populate.
Need more information. Are you creating new users and putting files in those
user directories in /usr/share or elsewhere?
The /usr/share hierarchy is controlled by the system wide fs-perms. Many of
it's standard subdirectories will globally set all subdirectories become
root:root 0755, while files become 0644 root:root.
See the fs-perms.txt file: meta/files/fs-perms.txt
Pay specific attention to the comment:
# Note: all standard config directories are automatically assigned "0755 root
root false - - -"
'standard config directories' refer to the following list:
(from classes/package.bbclass)
# By default all of the standard directories specified in
# bitbake.conf will get 0755 root:root.
target_path_vars = [ 'base_prefix',
'prefix',
'exec_prefix',
'base_bindir',
'base_sbindir',
'base_libdir',
'datadir',
'sysconfdir',
'servicedir',
'sharedstatedir',
'localstatedir',
'infodir',
'mandir',
'docdir',
'bindir',
'sbindir',
'libexecdir',
'libdir',
'includedir',
'oldincludedir' ]
> On Tue, Feb 13, 2018 at 1:32 PM, Jean-Pierre Sainfeld <jean-pierre@anki.com
> <mailto:jean-pierre@anki.com>> wrote:
>
> Hi,
> I am working on yocto system at the jethro rev level.
> I am looking to use the meta-skeleton useradd-example.bb
> <http://useradd-example.bb> recipe
> So far I have been successful in adding the required users and group
> and creating files in the /usr/share directory
> The current issue I am facing is the ownership of the created file
> I see the right permissions at the do_install() time
> however when the image is loaded in the target
> those files are reverted to the root:root permissions
>
> The requirement of our platform is that we can create specific users and
> make some specific processes and data files having the proper uid and ueid.
>
> I have been able to do all this successfully on the target
> but not through the yocto build system
>
> Any assistance in this regard would be fantastic and very cool :-)
>
>
>
> --
> Jean-Pierre Sainfeld
> 408-508-1741 <tel:(408)%20508-1741>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org <mailto:yocto@yoctoproject.org>
> https://lists.yoctoproject.org/listinfo/yocto
> <https://lists.yoctoproject.org/listinfo/yocto>
>
>
>
>
> --
> Jeff Osier-Mixon - Open Source Community Manager, Intel Corporation
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-14 21:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-13 21:32 useradd-example.bb Jean-Pierre Sainfeld
2018-02-14 20:57 ` useradd-example.bb Jeff Osier-Mixon
2018-02-14 21:09 ` useradd-example.bb Mark Hatle
2018-02-14 21:02 ` useradd-example.bb Fred Ollinger
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.