9
9

More than 5 years have passed since last update.

sudoしないと使えないコマンドを使えるようにする

Last updated at Posted at 2014-05-09

mountのようなsudoしないと使えないコマンドを
sudoしないで使えるようにするには、

/etc/sudoers

user ALL=(ALL)  /bin/mount, /bin/umount

と追記すれば使えるようになります。(上記はユーザ名がuserの場合)

ただ、/etc/sudoers はreadonlyでrootユーザも編集できません。
そのときは、visudoコマンドを使えば、編集できるようになります。

$sudo visudo
9
9
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9