LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2005, 04:29 PM   #1
essdeeay
Member
 
Registered: Aug 2004
Location: United Kingdom
Distribution: Debian
Posts: 88

Rep: Reputation: 15
Help with scripting 'autofs'


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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
autofs kemkem42 Linux - Software 1 09-22-2005 01:22 PM
autofs fitteschleiker Slackware 2 06-28-2005 04:17 PM
Autofs tefal Linux - Software 4 07-20-2004 10:58 AM
Autofs...help please yourcompadre Linux - Networking 0 06-03-2003 09:07 PM
Please help! autofs foetus66 Linux - General 1 03-25-2003 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration