Linux Smb/Cifs Autofs, Pam, Systemd
- Mount Windows shares using smb protocol, 2020 linux now has cifs(smb) drive in the kernel don't need the fullh samba software suite to mount fs.
Goals
1. Goal: mount user directories from windows(cifs) on login
- Use pam (plugable authentication manager) to mount the windows share on mount
2. Goal: mount server share in fixed path
2a. Option: systemd.
Setup in /etc/fstab
//192.168.20.22/c /home/{user}/cifs cifs rw,uid={user},gid={user},username={win_user},password={win_pass},x-systemd.automount,x-systemd.device-timeout=10 0 0
specific settings
-systemd.automount,x-systemd.device-timeout=10