6
netikras
119d

TIL:

How to become root w/o having to provide a password:

unshare -rm

no go ahead and bind-mount your own /etc/hosts (or any other file/directory) w/o affecting the rest of the system!

Comments
  • 4
    Oh, yeah, namespaces are neat, basically that's how containers work.

    You're not actually becoming root, it's a bit different, but yeah, "root".
Add Comment