As long as I had only one mount everything was fine.
file: /etc/auto.master
/mnt /etc/auto.srv1_share1
file: /etc/auto.srv1_share1
sh1 -fstype=cifs,rw,user=jdoe,domain=srv1,noexec,password=xxx ://srv1/share1
which resulted in //srv1/share1
mounted to /mnt/sh1
.
But so far I've been unable to mount multiple shares. The result should be something like that:
//srv1/share1
to /mnt/srv1_share1
//srv1/share2
to /mnt/srv1_share2
or
//srv1/share1
to /mnt/srv1/share1
//srv1/share2
to /mnt/srv1/share2
After trying, googling and reading(tfm) for hours, I need your help.
My current solution/workaround is this:
file: /etc/auto.master
/mnt/srv1_share1 /etc/auto.srv1_share1
/mnt/srv1_share2 /etc/auto.srv1_share2
file: /etc/auto.srv1_share1
share -fstype=cifs,rw,user=jdoe,domain=srv1,noexec,password=xxx ://srv1/share1
file: /etc/auto.srv1_share2
share -fstype=cifs,rw,user=jdoe,domain=srv1,noexec,password=xxx ://srv1/share2
resulting in these mounts:
//srv1/share1
to /mnt/srv1_share1/share
//srv1/share2
to /mnt/srv1_share2/share
Altough I can access all files I still want to get rid of those extra share
-directories.
How can I accomplish this?