![]() The first thing to know is, if a machine has no exports listed, these daemons will not be started when the OS starts. See the respective man pages for more information on these. The commands to accomplish this are:įor serving NFS, Mac OS X has three daemons which need to be running: portmap which tells clients how to contact the NFS daemons, Nfs Manager 4.3 Build 170412 Dl For Mac Os mountd which handles mounting of NFS filesystems, and nfsd which handles all the rest of serving NFS. These properties are clients which we'll set to an empty string (which means all clients, but read the note on default entry, below) and opts, set to ro so the directory is mounted read-only (see the manpage for exports for the options which can be used). Now we need to add the two properties which specify the allowed clients and any options we need.Make sure to not put in a trailing slash on the path. If you added /exports/external/path then the path exported would be external/path which is a relative path, but relative to what? Note also the part // as the path we are exporting is /external/path which includes the leading /. This is definitely not what we want.īasically, double-backslash the forward slashes in the path to export ( /external/path), but not the NetInfo path ( /exports/). If we don't use any backslashes, nicl will end up creating an entry /exports/external which has a subdirectory path. After the shell is done examining the command, the string / becomes / which is what we need to pass to nicl. This is done with the backslash,, and since we are running in a shell, we need to double them up. Since NetInfo uses the / to separate path components, and we have / characters in the entry we want to create, those / have to be escaped. ![]() You can repeat this procedure for any other directories you wish to export (but be sure to read the note about default entry, below, if you export several directories to empty clients properties).Īdding NFS export information to NetInfo from a command line involves running a few simple commands: one to create the entry, and two more to add the necessary options. What's left is to notify or start the NFS server-related daemons. All required information is now in NetInfo for the system to export filesystems via NFS. Change the second new_property to clients, and set the value to a blank (delete what is currently there), which means export to all clients (see the note about default entry, below). Double-click the first new_property and rename it to opts set the value of this property to ro to export this filesystem as read-only (see the manpage for exports for the options which can be used). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |