Hi Paul
On 03.11.23 13:05, Paul Tansom via BitFolk Users wrote:
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?
Since I don't have to cope with some hypothetical future consequences I
say: Just give it a go.
I'd write in my install log something meaningful about this. In case my
system would start to behave strangely some days after initial setup I'd
go back to my install logs and would start investigate. Of course there
is a high probability I would not remember I took these notes at this
point in time.
LGS