I found that I needed to edit /etc/connman/connman-vpn.conf also and rename /var/spool/mail/defaultuser (though that should be harmless).
This is collected from my shell history:
chmod u+w /etc/shadow
chmod u+w /etc/gshadow
cd /home
mv defaultuser nemo
ln -s nemo defaultuser
vipw
vigr
vim /etc/gshadow
vim /etc/shadow
vim /etc/subgid /etc/subuid
vim /etc/connman/connman-vpn.conf
chmod u-w /etc/shadow
chmod u-w /etc/gshadow
mv /var/spool/mail/defaultuser /var/spool/mail/nemo
cd /home/.appsupport/instance/
mv defaultuser nemo ### MAKE SURE APPSUPPORT IS OFF BEFORE THIS!
grep defaultuser /etc/* -r
find /var/ -name "*defaultuser*"
find /usr/ -name "*defaultuser*"
find /home/.??* -name "*defaultuser*"
EDIT: There may be some local user settings storing the old home path. If you kept the symlink in home, you won’t notice.
After I removed it I found the following:
An installation of Whisperfish that was done before changing to nemo stored the path /home/defaultuser in some files under ~/.config. These needed to be corrected as well.
YMMV.
Launcher Folder Icons:
Located at ~/.config/lipstick, launcher folder config files contain defaultuser references if created before the switch. The app icon grouping works, but the icon shapes revert to default.
two users with the same uid and gid? I’m very curious if this will work for long time.
Why do you want to have ‘nemo’ as username? (just for curiosity, and I fully agree that nemo is much more beautiful username than defaultuser)
Just because I have to type it a lot, and ‘nemo’ is much shorter and easier to type than ‘defaultuser’. I could probably get behind ‘captain’ but 10 letters is just too many for a username.
I have set’ up passwordless SSH login on all my computers for all my phones. So I only have to type ssh phonename and i’m immediately logged in.
edit: the same for sftp access from computer to phone to access files. Have bookmarked it in the Linux file manager, so it’s one click and I’m in to exchange files in both directions under Linux desktop GUI.