Bonjour,
J'ai recemment suivit ce tuto
http://forums.contribs.org/index.php?topic=30414.0pour faire la migration d'un serveur en 6.0.1 vers un 7.0 (en utilisant le script migrate),
J'ai pu recuperer toutes mes données de la sme 6.0.1 sur la 7.0
Mais je pense que je n'ai pas bien compris la phase :
Now the annoying bit. You need to "merge" the contents of the "old" and "new" group, gshadow, passwd and shadow files, as follows.
- Backup the existing (new) versions:
cd /etc
mkdir pwnew
cp group pwnew
cp gshadow pwnew
cp passwd pwnew
cp shadow pwnew
mkdir pwmerged
Now you have an old and a new version of these four files. Here's what I did to merge them, maybe some Linux god can create a script to do this:
For the group, gshadow, passwd and shadow files:
[1] Copy the entire contents of the old version of the file in question to something like M$ word. (Open Office will probably do the job, maybe even Vi?). Just copy and paste from the SSH client.
[2] Select all of the old version in word, and change the text colour to red
[3] Copy the entire contents of the new version of the file in question to the same word doc (or whatever).
[4] Sort the file into alphabetical order by paragraphs (ascending)
[5] Now go through each user / group in the file. Where there are double-ups, you generally need to delete the RED line - unless it is stacked up with users separated by commas at the end, in which case you just need to change the formatting at the start to the same as the BLACK line and delete the BLACK line.
[6] Go back to your SSH client, pico -w pwmerged/group
(or /gshadow, or /passwd, or /shadow) and paste in the contents of the word doc. Save it.
[7] Repeat steps 1 to 4 until you have merged all four files
Now
cd /etc/pwmerged
cp * /etc/
Pray that it worked
signal-event post-upgrade; signal-event reboot
Du coups maintenant je ne peux plus supprimer mes utilisateur correctement, ou modifier leur mot de passe, j'ai bien tous mes groupes et tous mes users et mes anciens messages, mais j'ai l'impression d'avoir louper quelque chose.
Si quelqu'un a réussi cette procedure, peux t-il m'aider, ou m'orienter.
D'avance merci pour toutes propositions.
Question subsidiaire, est-il possible de modifier la politique de mot de passe ?