On Tue, 3 Dec 2002, Cameron Simpson wrote:

> On 14:25 03 Dec 2002, Ryurick M. Hristev <[EMAIL PROTECTED]> wrote:
> | I am new to autofs but used the amd for a while.
> | 
> | Currently I have one amd map file across many clients. Each client takes
> | whatever is for in for it, via a 'host==' attribute.
> | 
> | Is there an equivalent under autofs ? I.e. some hosts should mount
> | only some shares but not others listed in the maps ?
> 
> Can you show us some example amd clauses to make more clear what you mean?

/dir1/dir2
        host==client1;type:=nfs;rhost:=server1;rfs:=/dirA

This will mount the nfs share server1:/dirA _only_ on client1 at /dir1/dir2
Even if other clients have the same file they will not attempt to mount
the nfs share.

/dir3/dir4
        host!=client1;type:=nfs;rhost:=server1;rfs:=/dirB

This will mount the nfs share server1:/dirB on _all_ clients
_except_ client1.

The advantage of this system is that I can have one file only,
for all automounts, which is easy to distribute to all participating
clients. One file == easy to see everything at once, easy to manage.

Is this possible to achieve with autofs ?
I haven't seen anything either in the docs or on the web.

I could indeed deny mounting from the exports file but this would
be a workaround not a proper solution.

Cheers,
-- 
Ryurick M. Hristev mailto:[EMAIL PROTECTED]
Computer Systems Manager
University of Canterbury, Physics & Astronomy Dept., New Zealand



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to