Hello,
I currently have a fresh install of FreeBSD 9 and I am having some trouble granting permissions to utilize the su service for network accounts. The server is linked to my Active Directory via Samba and Kerberos. I have successfully limited login access via console and SSH- based on membership of certain groups in AD. My final hurdle that I am trying to overcome is allowing certain groups in AD to utilize su. Based on what I have read I believe the correct approach to achieving this is to edit the /etc/pam.d/su configuration file. I first attempted to utilize the pam_winbind module the same way that I allowed access for sshd service but was not able to get it to work. I thought I remembered reading somewhere that the su service won't read this particular module so I reverted to using the pam_group module. I placed the following lines above the standard wheel requirement line.
Sample of /etc/pam.d/su:
One of the accounts has a space in the name which is mildly frustrating. Are quotes the correct syntax for dealing with spaces in the group name?
I have searched and searched with no luck and also read the documentation but I am not sure if I am just missing something. Any input or recommendations would be greatly appreciated. I was trying to use the already established accounts and groups in our AD over creating new accounts locally on this server.
Thanks in advance.
I currently have a fresh install of FreeBSD 9 and I am having some trouble granting permissions to utilize the su service for network accounts. The server is linked to my Active Directory via Samba and Kerberos. I have successfully limited login access via console and SSH- based on membership of certain groups in AD. My final hurdle that I am trying to overcome is allowing certain groups in AD to utilize su. Based on what I have read I believe the correct approach to achieving this is to edit the /etc/pam.d/su configuration file. I first attempted to utilize the pam_winbind module the same way that I allowed access for sshd service but was not able to get it to work. I thought I remembered reading somewhere that the su service won't read this particular module so I reverted to using the pam_group module. I placed the following lines above the standard wheel requirement line.
Sample of /etc/pam.d/su:
Code:
auth sufficient pam_group.so no_warn group=sec_webdev root_only fail_safe ruser
auth sufficient pam_group.so no_warn group="dom admin" root_only fail_safe ruser
One of the accounts has a space in the name which is mildly frustrating. Are quotes the correct syntax for dealing with spaces in the group name?
I have searched and searched with no luck and also read the documentation but I am not sure if I am just missing something. Any input or recommendations would be greatly appreciated. I was trying to use the already established accounts and groups in our AD over creating new accounts locally on this server.
Thanks in advance.