Reply to post: I always set a root password on sudo-based systems

Pro tip: You can log into macOS High Sierra as root with no password

Richard Lloyd

I always set a root password on sudo-based systems

First thing I do on sudo-based systems is "sudo passwd root". Quite a few such systems would prompt for root's password for filing system repair when booting after an unclean shutdown - you're in trouble if you haven't set one!

I often run several root commands in a row, so I'll often just use "su -" for that (only doable if you set a root password), rather than "sudo bash".

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon