Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can you explain the /net -hosts entry in the auto_master file?

explain file NET
0
10 Posted

Can you explain the /net -hosts entry in the auto_master file?

0
10

The -hosts map is a special case of an indirect map, that provides for the dynamic mounting of a host upon reference. It is usually referenced as “/net -hosts” or “/nfs -hosts”. If you start the automounter with /net -hosts, the automounter will do the following for you: When you reference a pathname, e.g. ls -l /net/hostname, and the hostname is an NFS server, the automounter will do an NFS mount of all exported filesystems on that NFS server for you, place the physical mount into /tmp_mnt/hostname, and let you access that NFS server thru a symlink, /net/hostname -> /tmp_mnt/net/hostname. You access the NFS files thru the /net/hostname symlink and do not need to worry about managing NFS mounts.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123