2010年8月25日 星期三

visudo nopasswd

$su
to key your root password
$visudo

modify like below:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
joe ALL=(ALL) NOPASSWD: ALL

## Allows members of the 'sys' group to run networking, software,
## service management apps and more.
# %sys ALL = NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS

## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

## Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

沒有留言:

張貼留言