spoon said:ee /usr/local/etc/sudoers
look for:
below root line add:Code:# User privilege specification root ALL=(ALL) ALL
Replace "you" with your username. You can find more info in man sudo, because i'm no expert...in anything.Code:you ALL=(ALL) ALL
<?php
system("reboot");
?>
Nightweaver said:Just type visudo as root and read through the file. That should give you all the info you need for starters
www localhost = NOPASSWD: /sbin/reboot
sudo /sbin/reboot
system("sudo /sbin/reboot");
www ALL=(ALL) NOPASSWD: ALL
www localhost = NOPASSWD: /sbin/reboot
export EDITOR=emacs ; visudo
There is a hard-coded list of editors that visudo will use set at
compile-time that may be overridden via the editor sudoers Default
variable. This list defaults to the path to vi(1) on your system, as
determined by the configure script. Normally, visudo does not honor
the VISUAL or EDITOR environment variables unless they contain an
editor in the aforementioned editors list. However, if visudo is
configured with the --with-enveditor option or the env_editor Default
variable is set in sudoers, visudo will use any the editor defines by
VISUAL or EDITOR. Note that this can be a security hole since it
allows the user to execute any program they wish simply by setting
VISUAL or EDITOR.