FreeBSDã¨ãUbuntu使ã£ã¦ããæã¯sudoã³ãã³ãã§suã«ãªãã®ãå¶éããã°ããã£ãã®ã«ãCentOSã ã¨æ®éã«suã§rootã«ãªããã¦ãã¾ã£ããã®ã§suã§rootã«ãªããªãããã«è¨å®ããã®ã§ã¡ã¢ã login.defsãç·¨éã # echo "SU_WHEEL_ONLY yes" >> /etc/login.defs wheelã°ã«ã¼ãã«ã¦ã¼ã¶è¿½å rootã«ãªãã®ã許å¯ããã¦ã¼ã¶ãwheelã°ã«ã¼ãã«è¿½å ããã # usermod -G wheel hamaco è¨å®ãæå¹ã«ãã /etc/pam.d/suã«ä»¥ä¸ã®æ§ã«æ¸ããªãã¨æå¹ã«ãªããªãã®ã§è¿½å ããã # vim /etc/pam.d/su + auth required pam_wheel.so root_only æ¤ç´¢ã§å¼ã£ãããæ®ã©ã®ãµã¤ãã¯ã #auth required pam_wheel.so use_uid
{{#tags}}- {{label}}
{{/tags}}