I've just installed a new VPS using the ubuntu-jammy image, and with the
new (likely not that new, but last VPS was pretty old) cloud-init
install it creates a default user of ubuntu. I want to change that to
something else, but haven't needed to do that before, so thought I'd
check if there are any gotchas that will come back to bite me down the
line. As far as I can tell the best way to do it is to use:
usermod -l newusernam -m -d /home/newusername oldusername
Clearly from a different account, and with this being a clean new
install there shouldn't be anything in terms of cron files to mess with.
There will be a group name to change too though. Is there anything else,
or a better way to do this?
--
Paul Tansom | Aptanet Ltd. |
https://www.aptanet.com/ | 023 9238 0001
=============================================================================
Registered in England | Company No: 4905028 | Registered Office: Ralls House,
Parklands Business Park, Forrest Road, Denmead, Waterlooville, Hants, PO7 6XP