Inside Linux The following shows the rpc script.

Inside Linux The following shows the rpc script. # . /etc/rc.config base=${0? */} link=${base#*[SK][0 9][0 9]} test $link = $base && START_PORTMAP=yes test “$START_PORTMAP” = yes -o “$NFS_SERVER” = yes || exit 0 if test -x /sbin/portmap ; then PORTMAP=/sbin/portmap else PORTMAP=/usr/sbin/portmap fi return=$rc_done case “$1″ in start) checkproc $PORTMAP && { killproc $PORTMAP 2> /dev/null echo -n “Re-” } echo -n “Starting RPC portmap daemon” startproc $PORTMAP || return=$rc_failed /bin/sleep 1 if test “$NFS_SERVER_UGID” = yes; then if test -x /usr/sbin/rpc.ugidd ; then startproc /usr/sbin/rpc.ugidd || return=$rc_failed fi fi echo -e “$return” ;; stop) if test -x /usr/sbin/rpc.ugidd ; then killproc -TERM /usr/sbin/rpc.ugidd || return=$rc_failed fi echo -n “Shutting down RPC services” killproc -TERM $PORTMAP || return=$rc_failed echo -e “$return” ;; restart|reload) $0 stop && $0 start || return=$rc_failed ;; status) status=”OK” if test “$NFS_SERVER_UGID” = yes; then checkproc /usr/sbin/rpc.ugidd || status=”rpc.ugidd down” fi checkproc $PORTMAP && echo “OK” || echo “portmapper down” ;; *) echo “Usage: $0 {start|stop}” exit 1 esac test “$return” = “$rc_done” || exit 1 exit 0 Remember, many scripts are specific to a Linux distribution, so this script may not work on your distribution. In all likelihood, the rpc command (script or otherwise) exists on your system. The /etc/exports File The /etc/exports file is important and should not be overlooked. The content of this file determines the filesystems that the NFS server allows clients to mount. The syntax for the file is as follows: directory [ option, … ] Each line contains a mount point (directory) and a list of machine (host) names that are allowed to mount the filesystem. Optionally, a parenthesized list of mount parameters may follow a machine name. Any blank lines are ignored and a # character signifies a comment in the file. An entry can span multiple lines using a (backslash) character. The following is a sample /etc/exports file: # a sample /etc/exports file … / rooty(rw) boss(rw,no_root_squash) /devel devel(rw) /usr *.local.domain(ro) /pub (ro,insecure,all_squash) /pub/private (noaccess) The first line exports the entire filesystem to machines rooty and boss. The third entry demonstrates using wildcard hostnames. The fourth line exports the public FTP directory (/pub) to all hosts, invoking requests under the nobody account. The insecure option allows clients with NFS that don’t use a reserved NFS port. The last entry (noaccess) denies all access (to NFS clients) to the /pub/private directory. page 217
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.

Leave a Reply