アップデート・マネージャの異常
2009/1/9 金曜日 Posted by kiyoshi eriko
Ubuntu8.10のアップデート・マネージャが突然エラーになった。
# su - でroot権限を強制的に与えるようにしたので整合性が取れなく
なってしまったのか?
Synapticでも同様のエラーになり、Updateが更新できなくなった。
キーワードは、sudoで実行する事が許可されていない場合の対処だ。
Webを調べると対処方法があった!
# cat /etc/sudoers
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
というようになっていて最後の、%admin ALL=(ALL) ALL という部分が
「ユーザーがadminというグループに属していればsudoが使える」という設定らしい。
$ sudo usermod -G admin ユーザー
で、ユーザーをadminグループに属させることでOK。



Leave a Reply