[opensuse-autoinstall] Password encryption
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 -- Alan Mosca -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
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 -- Jiri Suchomel SUSE LINUX, s.r.o. e-mail: jsuchome@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Praha 9, Czech Republic http://www.suse.cz -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
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 -- Simon Crute IS&T. Bracknell. UK. -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
-----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
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGlLw+7/DrbyL5gesRAvcWAKCm9T8AVdGXse9BWugU9LKKeEAL7ACfbaeE oJYmWfJ+WneJBy9Fq32vytU= =W7cN -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (3)
-
Alan Mosca
-
Jiří Suchomel
-
Simon Crute