720 Part V . Running Servers (Cheap web hosting) These are

720 Part V . Running Servers These are just examples; you can share any directories that you choose, including the entire file system (/). Of course, there are security implications of sharing the whole file system or sensitive parts of it (such as /etc). Security options that you can add to your /etc/exports file are described throughout the sections that follow. Host Names in /etc/exports You can indicate in the/etc/exports file which host computers can have access to your shared directory. If you want to associate multiple host names or IP addresses with a particular shared directory, be sure to have a space before each host name. However, add no spaces between a host name and its options. For example: /usr/local maple(rw) spruce(ro,root_squash) Notice that there is a space after (rw) but none after maple. Here are ways to identify hosts: . Individual host Enter one or more TCP/IP host names or IP addresses. If the host is in your local domain, you can simply indicate the host name. Otherwise, use the full host.domain format. These are valid ways to indicate individual host computers: maple maple.handsonhistory.com 10.0.0.11 . IP network Allow access to all hosts from a particular network address by indicating a network number and its netmask, separated by a slash (/). Here are valid ways to designate network numbers: 10.0.0.0/255.0.0.0 172.16.0.0/255.255.0.0 192.168.18.0/255.255.255.0 . TCP/IP domain Using wildcards, you can include all or some host computers from a particular domain level. Here are some valid uses of the asterisk and question mark wildcards: *.handsonhistory.com *craft.handsonhistory.com ???.handsonhistory.com The first example matches all hosts in the handsonhistory.com domain. The second example matches woodcraft, basketcraft, or any other host names ending in craft in the handsonhistory.com domain. The final example matches any three-letter host names in the domain. Using an asterisk doesn t match subdomains. For example, *.handsonhistory .com would not cause the host name mallard.duck.handsonhistory.com to be included in the access list. . NIS groups You can allow access to hosts contained in an NIS group. To indicate an NIS group, precede the group name with an at (@) sign (for example, @group). Note
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.

Leave a Reply