How to grant su access to wheel without asking for password on FreeBSD?

Posted by cstamas on Server Fault See other posts from Server Fault or by cstamas
Published on 2012-03-22T15:15:01Z Indexed on 2012/03/22 17:32 UTC
Read the original article Hit count: 295

Filed under:
|
|
|

I would like to grant users of the wheel group (other sysadmins) su access without being asked for password.

I know how to do it with pam in linux, but the question now is for FreeBSD. I am not familiar with the syntax for FreeBSD's PAM subsystem. What shall I enter in /etc/pam.d/su instead of the default:

auth            sufficient      pam_rootok.so           no_warn
auth            sufficient      pam_self.so             no_warn
auth            requisite       pam_group.so            no_warn group=wheel root_only fail_safe ruser
auth            include         system

# account
account         include         system

# session
session         required        pam_permit.so

© Server Fault or respective owner

Related posts about freebsd

Related posts about pam