Guest User

201503 NFS+automount+PAM

a guest
Mar 13th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. ::::: nfs-client:/etc/auto_master :::::
  2. 1 # $FreeBSD: releng/10.1/etc/auto_master 270902 2014-08-31 21:55:08Z trasz $
  3. 2 #
  4. 3 # Automounter master map, see auto_master(5) for details.
  5. 4 #
  6. 5 /net -hosts -nobrowse,nosuid
  7. 6
  8. 7 /home auto_home -nosuid
  9.  
  10. ::::: nfs-client:/etc/auto_home :::::
  11. 1 * -intr,nfsv4,sec=krb5 nfs-server.local:/home/&
  12.  
  13. ::::: nfs-client:/etc/pam.d/sshd :::::
  14. 1 # auth
  15. 2 auth sufficient pam_krb5.so try_first_pass debug forwardable
  16. 3 auth sufficient /usr/local/lib/pam_ldap.so debug try_first_pass
  17. 4 auth required pam_unix.so no_warn try_first_pass debug
  18. 5
  19. 6 # account
  20. 7 account required pam_nologin.so
  21. 8 account sufficient /usr/local/lib/pam_ldap.so no_warn debug
  22. 9 #account sufficient pam_krb5.so try_first_pass debug
  23. 10 account required pam_login_access.so
  24. 11 account required pam_unix.so
  25. 12
  26. 13 # session
  27. 14 session required /usr/local/lib/pam_mkhomedir.so debug
  28. 15 session required pam_permit.so
  29. 16
  30. 17 # password
  31. 18 password sufficient pam_krb5.so no_warn try_first_pass debug
  32. 19 password required pam_unix.so no_warn try_first_pass
  33.  
  34. ::::: nfs-server:/etc/exports :::::
  35. 1 V4: /usr/local/exports -sec=krb5 -network 10.255.0.0 -mask 255.255.0.0
  36. 2 /usr/local/exports/home -alldirs -sec=krb5
Advertisement
Add Comment
Please, Sign In to add comment