sudoコマンド

sudoers

For example purposes, lets tweak the sudo permissions for apt-get. Now, scroll to the bottom, and we can insert our line:

Code:

 %admin ALL=(ALL)NOPASSWD:/usr/bin/apt-get

To break it down:

  • %admin - All users of the admin group
  • ALL= - from any Host/IP
  • (ALL) - can run as any user
  • NOPASSWD - with no password required
  • :/usr/bin/apt-get - the list of comma, separated, applications.

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS