My goal is, that for every user the home-directory is mounted automatically while login. I’ve added the line
<volume fstype=“cifs” server=“192.168.178.31” options=“sec=krb5,vers=3.0” path="%(USER)" mountpoint="/home/%(USER)" > <not><user>root</user></not> <not><user>sddm</user></not> <not><user>nx</user></not> </volume>
to my /etc/security/pam_mount.conf.xml file.
But when I login as another user (for example the later used synrom), I get the Error:
mount error(2): No such file or directory
However the command
mount -t cifs -o username=synrom,password=asdf //192.168.178.31/synrom /mnt/tmp
just works fine.
Thanks for help