code_junkie

PHP webpage doesn't launch unix command even after updated sudoers

Nov 11th, 2011
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. <?php
  2. exec ('/usr/bin/sudo /etc/init.d/portmap restart');
  3. ?>
  4.  
  5. User_Alias WWW=apache
  6. Cmnd_Alias WEBCMDS=/etc/init.d/portmap
  7. WWW ALL=NOPASSWD: WEBCMDS
Add Comment
Please, Sign In to add comment