Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: gsimpson on July 23, 2017, 09:10:43 AM
-
Hi,
I am moving users from SME 8 to SME 9.
I am using LAT to move these and noticed something unusual.
After I created the users on SME 9, I went to the Users tab on the Server Manager page and all the users
have "Account is Locked" and "Reset Password".
I used the shadow file to re-create the user passwords and they all were created (At least it said so).
I logged into the machine via Horde, and was able to do so with no issue.
I cannot seem to log into the server manager as another user though.
Can anyone tell me how to fix this without resetting each and every password?
Thanks,
Greg Simpson
-
First of all, would you mint to explain us why are you using LAT and not just backup and restore
-
I migrated a couple systems from SME 8 to SME 9.2 using LAT.
On the second one I had to re-restore the passwords (as none of them were working correctly). My notes say that I did this:
# force password restore from SME 8.2
cd /root/lat-dump
/usr/sbin/lat-shadow -a -i=mail.shadow -f
signal-event post-upgrade; signal-event reboot
(/root/lat-dump on the new server contained the LAT output files from the original system)
-
On the second one I had to re-restore the passwords (as none of them were working correctly). My notes say that I did this:
# force password restore from SME 8.2
cd /root/lat-dump
/usr/sbin/lat-shadow -a -i=mail.shadow -f
signal-event post-upgrade; signal-event reboot
(/root/lat-dump on the new server contained the LAT output files from the original system)
That looks like a good note to add to the LAT contrib page under "server migration". I will add a comment there but let me know if that isn't proper. I can take it out if needed.
-
Thanks!
This worked. Had to do it twice, just like yours.
I migrated a couple systems from SME 8 to SME 9.2 using LAT.
On the second one I had to re-restore the passwords (as none of them were working correctly). My notes say that I did this:
# force password restore from SME 8.2
cd /root/lat-dump
/usr/sbin/lat-shadow -a -i=mail.shadow -f
signal-event post-upgrade; signal-event reboot
(/root/lat-dump on the new server contained the LAT output files from the original system)
-
This worked. Had to do it twice, just like yours.
I think the important bit is the extra "-f"
-f, --force
Force update if password is not empty in the shadow file on the SME box