I've found a lot of inconsistent documentation on single user mode. I don't need to use it often, but I get curious, and I remember not being to use shut down commands in single user mode and pressing the reset button. Is there a better way to leave single user mode after resetting passwords?
2 Answers
What do you have running in single user mode? Are databases running etc. etc. If you are worried then I would run
sync then
shutdown -i 0 (though depends on what flavor you are using) For newer Linux systems, this command should work:
systemctl poweroff --force --force - It “should work”? The power switch will (probably) work and is probably quicker, and another answer has already been presented. Is your answer better? … … … … … … … … … … … Please do not respond in comments; edit your answer to make it clearer and more complete.G-Man Says 'Reinstate Monica'– G-Man Says 'Reinstate Monica'2022-07-15 15:53:45 +00:00Commented Jul 15, 2022 at 15:53
init 0.systemctl poweroff, but maybe that was on the macpro..