Advertisement
Guest User

/usr/bin/usercgroup

a guest
Oct 8th, 2015
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo `whoami` > /root/whoami.txt
  4.  
  5. echo 1 > /proc/sys/kernel/unprivileged_userns_clone
  6.  
  7. /usr/bin/cgm create all me
  8. /usr/bin/cgm chown all me $(id -u paul) $(id -g paul)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement