2012年5月28日 星期一

Linux - sudo 無法執行

.

1、編輯「 /etc/sudoers 」

2、將看到
  ## Next comes the main part: which users can run what software on
  ## which machines (the sudoers file can be shared between multiple
  ## systems).
  ## Syntax:
  ##
  ## user MACHINE=COMMANDS
  ##
  ## The COMMANDS section may have other options added to it.
  ##
  ## Allow root to run any commands anywhere

  root ALL=(ALL) ALL


3、在root 下插入已建立之user name,如下

  <user name> ALL=(ALL) ALL

.