iffalse

if(false) { assert("this should not happen"); }

Friday, December 21, 2012

The super user is more powerful than god

$ useradd god
$ mkdir a
$ chmod 000 a
$ su god -c ls a
ls: cannot open directory a: Permission denied
$ sudo ls a
$

And it can even tell god what to do:

$ sudo su god -c "sed -i 's/\(-DWINDOWS\|-DMAC\)//' Makefile; make -B world"

Happy winter solstice. 
Posted by Bruno Barcarol GuimarĂ£es at 8:48 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: ba/sh, linux
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Links

  • bbguimaraes.com

Blog Archive

  • ►  2019 (1)
    • ►  July (1)
  • ►  2017 (1)
    • ►  March (1)
  • ►  2016 (1)
    • ►  August (1)
  • ►  2015 (1)
    • ►  January (1)
  • ►  2014 (4)
    • ►  December (2)
    • ►  May (1)
    • ►  March (1)
  • ►  2013 (6)
    • ►  July (1)
    • ►  May (2)
    • ►  February (2)
    • ►  January (1)
  • ▼  2012 (8)
    • ▼  December (1)
      • The super user is more powerful than god
    • ►  November (1)
    • ►  October (6)

About Me

Bruno Barcarol GuimarĂ£es
View my complete profile
Simple theme. Powered by Blogger.