VMWare Fusion上でFedora 11をインストールしてみたところ、sudoコマンドが異様に遅い。 tcpdumpしてみたところ、自ホスト名をDNSルックアップに行ってしまい、そのままタイムアウト待ちになるのが原因の模様。 /etc/hosts に 127.0.0.1 localhost.localdomain localhost 自ホスト名 自ホスト名.localdomainと自ホスト名を書き加えておいたところ、DNSを見に行くことは無くなり、sudoも高速になりました。
色々面倒くさくなって,sudoers(5) に,こう設定しそうになった: %sudo ALL=(ALL) ALL↓ %sudo ALL=(ALL) NOPASSWD:ALLNOPASSWD: を付けると sudo がパスワードを尋ねなくなる. ここに至るまでに色々考えた.最後の "ALL" は,その行の指定が適用されるコマンドの集合を表すので,デフォルトは NOPASSWD 無しにしておき,「パスワードを尋ねるのを省略してよいコマンドの集合」を定義して,それらだけに NOPASSWD を適用すればよいかな.しかし会社で管理してる開発サーバならともかく自宅PCではほとんど無意味だ.突然 /dev/sda を hexdump(1) したくなるとき*1とか,かなりの頻度なので. とは言え NOPASSWD は,潔癖症の私*2の基準からは敗北以外の何者でもない.そこで一度パスワードを入力した後,パ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く