修改/etc/login.defs里面的SU_WHEEL_ONLY的值为: SU_WHEEL_ONLY yes 那么就只有gid为0的用户可以su成root。
原文转自:http://www.ltesting.net