Just wondering if there is any guidance / docs on the use of these scripts, /etc/auto.net and /etc/auto.smb. I understand that I can run these as executables, e.g.
/etc/auto.smb remotesmbserver /etc/auto.net remotenfsserver
to find shared directories, but I can't tell how to use the automounter to mount the output, presumably using /smb and /net.
Thanks, Mike
MJang wrote:
Just wondering if there is any guidance / docs on the use of these scripts, /etc/auto.net and /etc/auto.smb. I understand that I can run these as executables, e.g.
/etc/auto.smb remotesmbserver /etc/auto.net remotenfsserver
to find shared directories, but I can't tell how to use the automounter to mount the output, presumably using /smb and /net.
Example:
# /etc/auto.net server2 -fstype=nfs,hard,intr,nodev,nosuid \ /home server2:/home \ /home/pcsupport server2:/home/pcsupport \ /var/www/html server2:/var/www/html
This means that I can access:
server2:/home as /net/server2/home server2:/home/pcsupport as /net/server2/home/pcsupport server2:/var/www/html as /net/server2/var/www/html
(There could be restrictions on the NFS server so your client machine might not have access).
Mogens
Mogens Kjaer wrote: ...
server2:/home as /net/server2/home server2:/home/pcsupport as /net/server2/home/pcsupport server2:/var/www/html as /net/server2/var/www/html
BTW, it doesn't work in FC5test1, if you have SELinux enabled:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174156
Mogens