Back when I migrated to Fedora 24, all the user/group ids
changed.
At that time I discovered rsync's --usermap and --groupmap. Its
format is:
old_uid:new_username
old_gid:new_groupname
rsync -axAXv --delete --numeric-ids
--usermap=400:bob,391:smbguest
--groupmap=400:bob,391:smbguest rsync://oldserver.com/home/
/home/
Of course there were many more users that just the two so I
created a bash script:
#! /usr/bin/bash
USERMAP=400:bob,301:smbguest,501:bill,600:fred,....
GROUPMAP=400:bob,301:smbguest,501:bill,600:fred,435:staff,....
rsync -axAXv --delete
--numeric-ids --usermap=$USERMAP --groupmap=$GROUPMAP
rsync://oldserver.com/home/ /home/
Hope this helps someone,
Bill
On Wed, 15 Jul 2020 12:29:29 -0700 Samuel Sieb <samuel@xxxxxxxx> wrote:On 7/15/20 12:00 PM, Geoffrey Leach wrote:Further info on this. The problem appears to be with the user account that was being used for testing. The user account that was created with Anaconda permits ssh login. The problem account is using a directory that was leftover from the Fedora 30 install.You created that user again after the install? It most likely has the wrong permissions since the user will most likely have a different userid than it did before. Do "ls -l /home" to check that. And if the permissions are wrong, then run "chown -R user: /home/user" (replacing "user" in all cases with the real username").More than likely that was the problem. I recreated the user and copied the non-dot files over and did the chown thingy, _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx