I have exported /etc/loginscript/ so I can access it over NFS. On the
client’s side, I want to use autofs (with LDAP) to mount it at the same
location (and access /etc/loginscript/secure which is available on the
server). Which map and key should I use? For some reason I can’t get it
to mount with autofs (but I can mount it manually).
One clarification, I said I can’t get it to mount with autofs. When in
actual fact, autofs can mount it on /loginscript but I can’t get it to
mount in /etc/loginscript.
Fede
Federico wrote:
> I have exported /etc/loginscript/ so I can access it over NFS. On the
> client’s side, I want to use autofs (with LDAP) to mount it at the same
> location (and access /etc/loginscript/secure which is available on the
> server). Which map and key should I use? For some reason I can’t get it
> to mount with autofs (but I can mount it manually).
>
> Thank you.
>
>
> Fede
>
> ---------------------------
> /etc/exports
>
> /etc/loginscript/
> 10.x.x.x/24(fsid=0,ro,no_subtree_check,root_squash,sync)
>
> ---------------------------
> On LDAP I have:
>
> # /loginscript, auto.master, autofs, xxxx
> dn: cn=/loginscript,nisMapName=auto.master,ou=autofs,dc=xxxx
> cn: /loginscript
> nisMapEntry: ldap 10.x.x.x:nisMapName=auto.loginscript,ou=autofs,dc=xxxx
> nisMapName: auto.master
> objectClass: nisObject
>
> # auto.loginscript, autofs, xxxx
> dn: nisMapName=auto.loginscript,ou=autofs,dc=xxxx
> nisMapName: auto.loginscript
> objectClass: nisMap
>
> # secure, auto.loginscript, autofs, xxxx
> dn: cn=secure,nisMapName=auto.loginscript,ou=autofs,dc=xxxx
> cn: secure
> nisMapEntry: -fstype=nfs,rw,soft,sync,tcp 10.x.x.x:/etc/loginscript/&
> nisMapName: auto.loginscript
> objectClass: nisObject
Ok, it seems I need to create a submount. Is it possible to do it with
Yast autofs module or I have to use a LDIF file?
Fede
Federico wrote:
> One clarification, I said I can’t get it to mount with autofs. When in
> actual fact, autofs can mount it on /loginscript but I can’t get it to
> mount in /etc/loginscript.
>
> Fede
>
> Federico wrote:
>> I have exported /etc/loginscript/ so I can access it over NFS. On the
>> client’s side, I want to use autofs (with LDAP) to mount it at the same
>> location (and access /etc/loginscript/secure which is available on the
>> server). Which map and key should I use? For some reason I can’t get it
>> to mount with autofs (but I can mount it manually).
>>
>> Thank you.
>>
>>
>> Fede
>>
>> ---------------------------
>> /etc/exports
>>
>> /etc/loginscript/
>> 10.x.x.x/24(fsid=0,ro,no_subtree_check,root_squash,sync)
>>
>> ---------------------------
>> On LDAP I have:
>>
>> # /loginscript, auto.master, autofs, xxxx
>> dn: cn=/loginscript,nisMapName=auto.master,ou=autofs,dc=xxxx
>> cn: /loginscript
>> nisMapEntry: ldap 10.x.x.x:nisMapName=auto.loginscript,ou=autofs,dc=xxxx
>> nisMapName: auto.master
>> objectClass: nisObject
>>
>> # auto.loginscript, autofs, xxxx
>> dn: nisMapName=auto.loginscript,ou=autofs,dc=xxxx
>> nisMapName: auto.loginscript
>> objectClass: nisMap
>>
>> # secure, auto.loginscript, autofs, xxxx
>> dn: cn=secure,nisMapName=auto.loginscript,ou=autofs,dc=xxxx
>> cn: secure
>> nisMapEntry: -fstype=nfs,rw,soft,sync,tcp 10.x.x.x:/etc/loginscript/&
>> nisMapName: auto.loginscript
>> objectClass: nisObject