
CentOSで環境設定パネルを構成するためにroot権限が必要なのはなぜですか?実際、sudoerアクセスだけで十分だと思います。これを変更できますか?
答え1
この問題を解決する簡単な方法は、適切なsudoers
権限があると仮定すると、適切なコマンドプレフィックスを付けるsudo
ことです。
sudo system-config-users
それ以外の場合は、いくつかの調査を行います。
% ls -l =system-config-users
lrwxrwxrwx 1 root root 13 Jul 24 2015 /usr/bin/system-config-users -> consolehelper
もう少し調査した結果、userhelper
マニュアルに次のような内容を含むプログラムが発見されました。
UGROUPS
A comma-separated list of groups whose members will be authenti-
cated as if USER were set to the special value <user>. If the
invoking user is not a member of one of these groups, the name
defined in USER will be used as normal.
Centos 7はwheel
デフォルトでグループを設定しているようです。
# cat /etc/security/console.apps/config-util
USER=root
UGROUPS=wheel
#
したがって、理論的には、ユーザーがそのwheel
グループに属している場合は、これらのパスワードプロンプトでパスワードを入力する必要があります。あなたのユーザーはこのwheel
グループに属していますか?