I am on a Ubuntu 14.04 LTS machine with Mate desktop.
I am enrolled in a Stackskills course named "Linux security and hardening, the practical security guide".
The first security issue mentioned in the physical security section is about
Single User Mode
: it is said that if someone has physical access to a machine can toggle Single User Mode to login as root directly, without password.
Then it is explained that for systems like Ubuntu 16.04 and following that use systemd instead of init
to control the system initialization process it is necessary to edit /lib/systemd/system/emergency.service
and /lib/systemd/system/rescue.service
, changing sushell
in sulogin
.
However Ubuntu 14.04 LTS does not use these files, because it uses Upstart instead of systemd. What files should I look at?
How can I force anyone who tries to log in with Single User Mode to enter the root password?
init=/bin/bash
or any other shell and get root shell access that way. – user8292439 Aug 15 '17 at 14:58