Hello
I've just learnt about 'autofs' and quite a neat little thing it is. I was introduced to it because I hacked a little script (with a lot of help) to use 'smbclient' on a server, then mount all listed shares - needless to say, I ran out of mount points and Fedora now hates me.
I would like to write a little script that will:-
- perform 'smbclient' on a server
- create a local directory structure listing all shares
- create an /etc/auto.<servername> file
- add the /etc/auto.<servername> entry to /etc/auto.master
The reason for creating the local driectory structure of the shares, is so I can use autocomplete and not have to remember what they are.
The part missing from my list is how to make Linux know that I've possibly created a new auto file, and to use it.
The reason I am doing it this way is so I don't run out of mount points, as only the shares I access will be mounted. Is this thinking correct?
Any help would be much appreciated,
Cheers,
Steve