I've just created the persistent live usb (using mkusb - persistence works). The problem is that there is no password and any program can be installed from terminal with root.
Is it possible to create root password in persistent live usb?
I've just created the persistent live usb (using mkusb - persistence works). The problem is that there is no password and any program can be installed from terminal with root.
Is it possible to create root password in persistent live usb?
Yes it is possible to create a new user with encrypted home in a persistent live drive made with mkusb. I have done it so I know that it works. It is probably easiest if you install gnome-system-tools
and use users-admin
.
sudo apt install gnome-system-tools
users-admin
or start it via the graphical user interface.
Select Add to create a new user and select encrypt home folder. Otherwise the password is not really meaningful in this kind of system.
Warning: it is very important to backup the system regularly and to remember the password to the encrypted system. Otherwise you might lose your data. There is no back door.
If you keep the default user, the system will auto-login (unless you change that setting). Log out and select the new user ('tester' in the example below) and enter the password.
If you intend to remove the default user, you should make your new user an administrator, and be sure that you can run sudo
. (You should not be able to remove the default user without sudo
in standard Ubuntu, and if you manage to remove it anyway, your system would be crippled with no user to manage the system.)
sudo deluser ubuntu # in standard Ubuntu (modify user name in the flavours)
It was more difficult to create a basic working Lubuntu system with a new user with encrypted home. And after further testing we found that neither Firefox nor Thunderbird works, not for the OP in Xubuntu and not for me in Lubuntu and standard Ubuntu. So I am affected too. I suspect that it is some security feature that stops the Mozilla software from working.
I installed Midori, a light-weight web browser, and it works without problems. It can be used for webmail (I tested with my gmail account). - But if it is necessary for you to use Firefox and Thunderbird, this kind of persistent live system is a dead end street.
An alternative is to make an installed system with or without encrypted disk or encrypted home if you wish - installed like into an internal drive, but into a USB drive. It is easiest to install it correctly, if you remove the internal drive from the computer, where you create it. There are some tips at the following links,
help.ubuntu.com/community/Installation/UEFI-and-BIOS
Ubuntu on a USB stick - mount options to reduce writes
This is a quick fix, that is not adding security against a qualified attack, but maybe it would be enough to prevent tampering by curious persons, to make your persistent live tweaks in Xubuntu 'noob-proof': move (rename) sudo
and remove the gui tools to manage programs, gnome-software
, update-manager
and maybe software-properties-gtk
.
sudo mv /usr/bin/sudo /usr/bin/opns
opns apt remove gnome-software
opns apt remove update-manager
opns apt remove software-properties-gtk
Or better, move sudo to some other name, that is more difficult to guess. The following screenshot illustrates that it works to use the 'moved sudo' command to install a program package,
opns apt install htop
sudo
permissions and after that remove the default user ubuntu
, the system will wait at the login screen like a normal installed system. So the user will need a password to log in and to do administration like installing programs. It is possible to make the system log in without a password, but still need a password to do administration tasks. But if you leave the default user, it is possible to do administration tasks without a password as the default user like in a normal live or persistent live system.
SysRq r e i s u o
and a soft reboot with SysRq r e i s u b
. Usually you get SysRq with Alt
+ PrintScreen
. See this link: en.wikipedia.org/wiki/Magic_SysRq_key
Another alternative is to do a Full install to USB.
This is done the same as an install to internal drive except with the internal drive disabled and the USB plugged in, in it's place.
The install process will then prompt for password and offer to encrypt the drive.
A Full install initially takes a little more space but uses it more efficiently. It also boots a little faster, allows proprietary drivers and permits updates and upgrades.
A Full install requires an 8GB minimum flash drive for Ubuntu.
Without encrypted home folder the persistent file or partition, (casper-rw), can be easily mounted and accessed on any computer using Linux.
I have had problems shutting down Persistent drives with new users added, but this does not apply to 16.04 made with mkusb.