pw usermod john -G wheeland change pam policy (file /etc/pam.d/su):
#auth requisite pam_group.so no_warn group=wheel root_only fail_safe ruser auth sufficient pam_group.so no_warn group=wheel root_only fail_safe ruserIt is necessary to re-login so new group membership take place. Issue the following command to check user group:
$ id uid=1001(john) gid=1001(john) groups=1001(john),0(wheel)
everywhere is written that simply add users to the wheel group. Yes, but when you switch users using su command is necessary to enter the root password. And I dont want to tell other people root password!
ReplyDeleteAn adjustment file /etc/pam.d/su mentions not much!
Solved, thank you!