SHARE
TWEET

Untitled

a guest Dec 14th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. mcroce@mcroce-redhat:~$ hostname
  2. mcroce-redhat
  3.  
  4. mcroce@mcroce-redhat:~$ sudo unshare -u
  5.  
  6. root@mcroce-redhat:/home/mcroce# hexdump -n3 -e '1/1 "%0x2"' /dev/urandom >/proc/sys/kernel/hostname
  7.  
  8. root@mcroce-redhat:/home/mcroce# exec bash
  9.  
  10. root@5d2e52852:/home/mcroce# hostname
  11. 5d2e52852
  12.  
  13. root@5d2e52852:/home/mcroce# exit
  14.  
  15. mcroce@mcroce-redhat:~$ hostname
  16. mcroce-redhat
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top