[INFO] How to avoid from (su: Sorry) error or "message"

fbsd_

Active Member

Reaction score: 19
Messages: 103

THERE IS THE COMMAND:
sudo pw group mod wheel -m !username_here!
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,744
Messages: 39,332

See /etc/pam.d/su:
Code:
auth            requisite       pam_group.so            no_warn group=wheel root_only fail_safe ruser
 
OP
F

fbsd_

Active Member

Reaction score: 19
Messages: 103

See /etc/pam.d/su:
Code:
auth            requisite       pam_group.so            no_warn group=wheel root_only fail_safe ruser
So there is root_only. Should we have to change it to get su working on all users?
And change to what?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,744
Messages: 39,332

Should we have to change it to get su working on all users?
No, you shouldn't change it at all. All this does is explain why you need to be a member of the wheel group to be allowed to su(1) to root.
 
Top