Hi,
my question is about shell command. In my instance, I would like to delete the ubuntu user and replace it with a new one. There is a way to run multipass shell <name> with non-default user?
At the moment, I create the new user using the cloud-init file
Bit late to answer, but for others struggling with this. You can accomplish this with the following command although the ubuntu user is still needed as multipass commands rely on it.
Quick and dirty
multipass exec INSTANCE-NAME -- sudo su USERNAME
With systemd support
Install systemd-container to get machinectl.
# as root inside the VM
apt install systemd-container