I've just had to write instructions to someone to reset root's password
by adding "init=/bin/sh/" to the boot line.
Everything worked OK, but
how to resume/reboot, since "shutdown" isn't available?
I just switched
off; is there a more elegant exit? ("exit" itself doesn't work either)
On Wed, 20 Jul 2022 15:50:10 +0100, Grimble wrote:
I've just had to write instructions to someone to reset root's password
by adding "init=/bin/sh/" to the boot line.
I thought just adding a space 1 to end of kernel line would boot system to run level 1
Everything worked OK, but
how to resume/reboot, since "shutdown" isn't available?
Probably would be available if you were to do a
export PATH=$PATH:/usr/sbin/
or did a /usr/sbin/shutdown
I just switched
off; is there a more elegant exit? ("exit" itself doesn't work either)
Use run level 1 next time with shutdown or poweroff.
Doesn't runlevel 1 also ask for a root password when it comes up?
On Wed, 20 Jul 2022 15:50:10 +0100, Grimble wrote:
I've just had to write instructions to someone to reset root's password
by adding "init=/bin/sh/" to the boot line.
I thought just adding a space 1 to end of kernel line would boot system to run level 1
On Wed, 20 Jul 2022 13:55:29 -0400, William Unruh <unruh@invalid.ca> wrote:
Doesn't runlevel 1 also ask for a root password when it comes up?
Only if you've configured it to ask. The default standard security in msec doesn't
do that. At the secure level or by overriding the ENABLE_SULOGIN setting it does.
Regards, Dave Hodgins
On 2022-07-20, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
On Wed, 20 Jul 2022 13:55:29 -0400, William Unruh <unruh@invalid.ca> wrote: >>> Doesn't runlevel 1 also ask for a root password when it comes up?
Only if you've configured it to ask. The default standard security in msec doesn't
do that. At the secure level or by overriding the ENABLE_SULOGIN setting it does.
Which means anyone who happens across the machine can change the root password (including say the border officials who want to see what is on
your machine), and thus see, or change anything on the machine.
I've just had to write instructions to someone to reset root's password
by adding "init=/bin/sh/" to the boot line. Everything worked OK, but
how to resume/reboot, since "shutdown" isn't available? I just switched
off; is there a more elegant exit? ("exit" itself doesn't work either)
On Wed, 20 Jul 2022 19:22:26 -0400, William Unruh <unruh@invalid.ca> wrote:
On 2022-07-20, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
On Wed, 20 Jul 2022 13:55:29 -0400, William Unruh <unruh@invalid.ca> wrote: >>>> Doesn't runlevel 1 also ask for a root password when it comes up?
Only if you've configured it to ask. The default standard security in msec doesn't
do that. At the secure level or by overriding the ENABLE_SULOGIN setting it does.
Which means anyone who happens across the machine can change the root
password (including say the border officials who want to see what is on
your machine), and thus see, or change anything on the machine.
Correct. Anyone with physical control over the hard drive has access unless it's encrypted. Requiring the root password for single user mode just slows down
the people who don't know how to get around that. It doesn't stop access or changing the password.
If you're going to be crossing borders, expect to be required to provide access,
including providing decryption pass phrase, and passwords to your social media
accounts.
Even encryption doesn't help with when a rubber hose is involved. :-)
Regards, Dave Hodgins
On 2022-07-20, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
Correct. Anyone with physical control over the hard drive has access unless >> it's encrypted. Requiring the root password for single user mode just slows down
the people who don't know how to get around that. It doesn't stop access or >> changing the password.
Slowing down may be worthwhile.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 40:27:23 |
Calls: | 9,566 |
Files: | 13,656 |
Messages: | 6,141,779 |