Autofs auto.smb attempts to mount printer drivers
In the Debian Autofs package the auto.smb script contains the following line:
/Disk/ { if (first) { print opts; first=0 }; print " \\\n\t /" $2, "://" key "/" $2 }
SAMBA for some reason lists printer drivers as 'Disk' shares:
IPC|IPC$|Remote IPC
Disk|print$|Printer Drivers
Disk|C|
Printer|HPLJ4L|HP LaserJet 4L
This produces error messages when a mount is attempted for
//machinename/print
which doesn't exist:
automount[17409]: mount(generic): calling mount -t cifs -s -o rw,credentials=/etc/auto.cifs.DELL3000
//DELL3000/print /smb/DELL3000/print
Jun 16 19:32:50 EMACH433 automount[17409]: >> retrying with upper case share name
Jun 16 19:32:50 EMACH433 automount[17409]: >> mount error 6 = No such device or address
Any way to either modify the awk program in auto.smb to exclude the 'print$' service or modify the smbclient
options to list hard drives only?
|