

As an expansion on my previous comment,
Would running these commands in this order return the original user to the state that it was in before I changed its username?
sudo mv /home/magentausername/oldhome-backup/redusername /home
(To move the encrypted homedir back into /home)
sudo chown -R redusername /home/redusername
(To give ownership of said homedir back to redusername)
sudo usermod -l blueusername -d /home/blueusername -m redusername
(To change the user’s username (redusername) back to blueusername, make a new directory called /home/blueusername, and move the contents of the encrypted homedir to said new directory*)
sudo groupmod -n blueusername redusername
(To change the user’s group’s name back to blueusername)
(*That is, assuming it’d still have the same path set as the original user’s homedir?)
(I’m not 100% sure what I’ll do next if you don’t reply to this comment… Idk what other options there’d be except for just winging it and hoping it does work like that or making another post asking if it would and quoting / linking to all the context or something, idk)





Update: I ran the commands and It 100% worked!
I ran through the possibilities and tried to find fault in the reasoning behind the commands, couldn’t really find any flaws, and the only thing I thought could have gotten in the way of it working seems from my research not to have any reason to be so…
Anyway, it worked! I have full access to the old user and all its files and settings and stuff, and everything seems to be neat and accounted for and such.
Thanks again (again) for all your help!