Hi,
I was wondering if there was a way of changing the encryption algorithm in the user passwords. More specifically I would like to get whatever the root password is in /etc/shadow and put it in autoyast.xml. I don't need to decrypt it. Is there a way of doing this?
Regards
On Thursday 21 June 2007 20:45, Alan Mosca wrote:
Hi,
I was wondering if there was a way of changing the encryption algorithm in the user passwords.
<security> <passwd_encryption>md5</passwd_encryption> </security>
More specifically I would like to get whatever the root password is in /etc/shadow and put it in autoyast.xml. I don't need to decrypt it. Is there a way of doing this?
I'm not sure what are you asking for - do you want to set the root password in autoyast.xml? That's just the value of <user_password> in the <users> list...
Alan Mosca
Jiri
On Thursday 21 June 2007 19:45, Alan Mosca wrote:
More specifically I would like to get whatever the root password is in /etc/shadow and put it in autoyast.xml. I don't need to decrypt it. Is there a way of doing this?
Hi,
If I understand the question correctly, you want to create the hashed value in an autoyast script so you can add that to /etc/shadow. Is that correct ?
If so, try something like echo $user:$userpw | chpasswd
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
That's what I ended up doing in the end, but I was wondering if there was an "autoyast way" of doing it. Anyway I managed a workaround so no hassle.
Simon Crute wrote:
On Thursday 21 June 2007 19:45, Alan Mosca wrote:
More specifically I would like to get whatever the root password is in /etc/shadow and put it in autoyast.xml. I don't need to decrypt it. Is there a way of doing this?
Hi,
If I understand the question correctly, you want to create the hashed value in an autoyast script so you can add that to /etc/shadow. Is that correct ?
If so, try something like echo $user:$userpw | chpasswd
autoinstall@lists.opensuse.org