Script to mount the whole SMB network.
Hello,
I've posted earlier here, about the autofs managed network maps.
I'm using the new autofs version. With this version it's possible to use "multi mount maps". The script here uses the name of the network as key, here only the "Windows Network" is supported.
copy the auto.network script to /etc/autofs
make it executable if not already
mkdir -p /mnt/network
Add this to the auto.master file:
/mnt/network /etc/autofs/auto.network -browse
So when I want to enter the "Windows Network", I type:
ls -A "/mnt/network/Windows Network"
You'll get the complete windows environment and you can access the shares.
It acts as guest, but when a credential file is provided, it will use that one for authentification.
It takes some time to complete, it uses lookups by nmblookup. If your network is bigger, it takes more time.
It uses CIFS, and will check it is supported. You can make it use SMBFS, change the parameter FILESYSTEM
Futher this script only creates a map for the Windows Network. On my system the script can also handle FTP and SSH (with the help of Fuse)
See for more info:
http://linux.bononline.nl/linux/automountsmbshares/automountsmbshares-page01a.php
The it's possible to do:
ls "/mnt/network/FTP hosts" and
ls "/mnt/network/SSH"
Greetings,
Stef Bon
the Netherlands
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs
Quoted 6 lines · On Wednesday 30 July 2008 10:59:51 Stef Bon wrote:
Hello,
copy the auto.network script to
/etc/autofs
make it executable if not already
Oops, it had a small bug.
Attached is the corrected version.
Stef Bon
_______________________________________________
autofs mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/autofs