[gull] Migration serveur problème avec shadow

Sean Boran sean at boran.com
Tue Dec 22 00:32:33 CET 2009


Le crypto est probablement différente, blowfish, md5, des pour les vieux.

Que dit /etc/default/passwd sous Suse?
CRYPT_FILES=blowfish

Exemples chez moi...

Ubuntu 8.10 (SHA?)
user1:$6$KlRRuDbA$wWpz/d9k.1T7hm7hqP3E2jdc6AxT6OflPalETfnEynImwqDWFgl/NkDrYsSa9eKXvLs9XoR7Rhl0W6P9

Suse 10 (blowfish)
user2:$2a$10$YsejjheHfnPeaa8hEc5mTOdNlkfxmaoKiQGehocY6moYplExnJHPi:13644:0:99999:7:::


Sean



2009/12/21 François Bianco <fbianco at swisslinux.org>

> Bonjour,
>
> j'ai une question, je veux migrer un serveur de Suse à Debian Lenny. Mais
> lors
> du transfert des comptes utilisateurs, les mots-de-passe ne sont pas
> transféré
> correctement.
>
> J'ai en gros suivi http://www.cyberciti.biz/faq/howto-move-migrate-user-
> accounts-old-to-new-server/
>
> Donc j'ai fais (en gros on copie juste les comptes utilisateurs) :
>
> export UGIDLIMIT=500
> awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534)' /old/etc/passwd >>
> /etc/passwd
> awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534)' /old/etc/group >>
> /etc/group
> awk -v LIMIT=$UGIDLIMIT -F: '($3>=LIMIT) && ($3!=65534) {print $1}'
> /etc/passwd | tee - | egrep -f - /old/etc/shadow >> /etc/shadow
>
> Mais là pas possible de se loguer.
>
> J'ai remarqué en remettant un des ancien mots-de-passe avec 'passwd' que
> les
> valeurs dans le shadows de Debian ne correspondent pas à celle sous Suse.
>
> J'ai du rater une coche quelque part, est-ce que vous voyez où est le
> problème
> ?
>
> D'avance merci pour vos réponse
> François
>
> --
> Swisslinux.org - Le carrefour GNU/Linux en Suisse -
> http://www.swisslinux.org
>
> _______________________________________________
> gull mailing list
> gull at forum.linux-gull.ch
> http://forum.linux-gull.ch/mailman/listinfo/gull
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum.linux-gull.ch/pipermail/gull/attachments/20091222/845db287/attachment.htm>


More information about the gull mailing list