I recently used @Harsh 's mkusb instructions to successfully create an Ubuntu 18.04 live USB with persistence greater than 4 GB. The default user is Ubuntu
and the default password is , that is to say blank (just hit enter).
Can I run the sudo passwd Ubuntu
command and add an actual password to this live USB system? I want a password required on boot and on the lock screen as well. I don't know what issues this would present, if any. I do understand somebody could still mount my live USB system on another Linux machine, and have access to my files. My password requirement is a very low level of defense, that I'm comfortable with, and want.
Alternatively, could I simply delete the Ubuntu
user, and add myself jason
as the only user, create a password for jason
, and be done with it?
Persistent live Ubuntu
I tested, and yes, you can remove the original
ubuntu
user after creating a custom user ID with a good password and admin (sudo
) permissions.and you get a convenient tool to create a custom user,
Remember the admin (
sudo
) permissions!It is a good idea to set the permissions of your subdirectories (in your home directory) to only allow your own user to see them. And set the permissions for the files in a corresponding way.
Using
*
instead of.
excludes the hidden directories and files from these actions.Test:
Logging in live-only, 'Try Ubuntu', does not give direct access to files saved in Documents. but the default
ubuntu
live hassudo
permissions, and can access these files that way.Installed Ubuntu in a USB pendrive
If you want security it is much better to create an installed system in your USB pendrive, installed like into an internal drive (but into a pendrive). See the instructions at the following link:
How do I install Ubuntu to a USB key? (without using Startup Disk Creator).
If you wish, you can encrypt it (LVM with LUKS encryption). In that case, do it at the partitioning window during the installation.