[yocto] Changing /etc/shadow file
rajan pathak
rajanpatha34 at gmail.com
Sun Nov 24 02:07:28 PST 2013
Thanks Bernard
I tried patching the shadow file but couldn't make it work
My requirement is specific ,wanted to modify /etc/shadow file of rootfs
I don't know how /etc/shadow file is getting generated in my rootfs,though
I know the whole
Process of how /etc/passwd file is generated in my roofs .
Inside poky I have a recipe file which will generally fetches the
passwd.master from web and copy it to
/etc/passwd file of my rootfs .
But couldn't find any such process for /etc/shadow file
I have to disable one of the user account and that requires asterisk(*) to
be put in second column of user-specific line.
For example in /etc/shadow have to change
my_user::0:0....
to
my_ user:*:0:0...
+ Khem Raj here as he made most of work of shadow packaging in poky
Thanks
Rajan
On Sun, Nov 24, 2013 at 5:19 AM, Bernard Mentink <bmentink at gmail.com> wrote:
> Just make a /recipe-extended/ directory in your layer so it looks the same
> as the original. Then add a"files" directory with your new file, then add
> in a .bbappend file that
> looks for extra files in "files", then you are done.
>
> Have a look in other .bbappend of how to just add in new files, you will
> find lot's of examples in other layers ..
>
> Cheers,
> bernie
>
>
> On Sun, Nov 24, 2013 at 2:14 AM, rajan pathak <rajanpatha34 at gmail.com>wrote:
>
>> I have to make some changes to my /etc/shadow file,
>>
>> I Can see shadow file is from poky/meta/recipe-extended,so to change
>> this file
>> do I have to apply patch or what?
>>
>> Thanks
>> Rajan
>>
>> _______________________________________________
>> yocto mailing list
>> yocto at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20131124/80951283/attachment.html>
More information about the yocto
mailing list