root login

190 views
Skip to first unread message

Roger Oberholtzer

unread,
Sep 10, 2017, 6:25:36 AM9/10/17
to kiwi-...@googlegroups.com
I have built an image of Leap 42.3 that I am trying in qemu. When it
eventually gets to the login, it is not accepting my root password. It
was originally obtained via kiwi −−createpassword long ago. So maybe
that is not compatible with kiwi ng. I thought I would generate a new
password string. But I do not seem to find how. I have searched
through the docs at https://suse.github.io/kiwi/index.html# and must
not be specifying the right search pattern. Same with looking at the
kiwi command line help and man page.

Am I blind? (probably...)

So, how goes one generate the password string for kiwi ng?

--
Roger Oberholtzer

Till Dörges

unread,
Sep 10, 2017, 1:26:16 PM9/10/17
to kiwi-...@googlegroups.com, Roger Oberholtzer
config.xml lets you specify users, e.g.

--- snip ---
<users>
<user id="0" name="root" groups="root" home="/root" password="<hash>" />
<user name="x" groups="a,b,c" home="/home/x" password="*" />
</users>
--- snap ---


Documentation would be here:

https://suse.github.io/kiwi/development/schema.html#id297


HTH -- Till
--
Dipl.-Inform. Till Dörges doe...@pre-sense.de
Tel. +49 - 40 - 244 2407 - 14
Fax +49 - 40 - 244 2407 - 24
PRESENSE Technologies GmbH Sachsenstr. 5, D-20097 HH
Geschäftsführer/Managing Directors AG Hamburg, HRB 107844
Till Dörges, Jürgen Sander USt-IdNr.: DE263765024

Marcus Schäfer

unread,
Sep 10, 2017, 3:16:06 PM9/10/17
to kiwi-...@googlegroups.com
Hi,

> I have built an image of Leap 42.3 that I am trying in qemu. When it
> eventually gets to the login, it is not accepting my root password. It
> was originally obtained via kiwi −−createpassword long ago. So maybe
> that is not compatible with kiwi ng.

I think that's not a compatbility question of the image builder but
more a question what password digests are accepted by the Leap42.3
distribution.

In kiwi-ng I use the following to create passwd compatible hashes

openssl passwd -1 -salt 'xyz', password

Regards,
Marcus
--
Public Key available via: https://keybase.io/marcus_schaefer/key.asc
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer (Res. & Dev.) SUSE Linux GmbH
Tel: 0911-740 53 0 Maxfeldstrasse 5
FAX: 0911-740 53 479 D-90409 Nürnberg
HRB: 21284 (AG Nürnberg) Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
http://www.suse.de
-------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages