このブログを検索

2017年5月28日日曜日

SUDOさんのパスワード入力をスルー

ターミナルでsudo さんを使うときいちいちパスワード入力を要求されて鬱陶しいので。

visudoさんですっ飛ばすように記述してみたけん。

$ sudo visudo

#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults        env_reset
Defaults        mail_badpass
Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL:ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

# Allow members of group sudo to execute any command
%sudo   ALL=(ALL:ALL) ALL
ora ALL=NOPASSWD: ALL
# See sudoers(5) for more information on "#include" directives:

#includedir /etc/sudoers.d


^G ヘルプ        ^O 保存          ^R 読み込み      ^Y 前のページ    ^K 切り取り      ^C 位置
^X 終了          ^J 両端揃え      ^W 検索          ^V 次のページ    ^U 貼り付け      ^T スペル確認

オラさんであれば=ora
を赤字のように入力し CTRL+Xで保存して完了。
これでおいらは最強のユーザーに変身出来る。
その代わり悪用されたら最悪のユーザーに!!

0 件のコメント:

コメントを投稿