From AIX/6000 Network Services, NFS, NIS, DNS Student Notebook taken 4/26/95. NFS Daemons Activity | Client | Server -------------+-------------+------------ When mountd starts on the server, Mount | RPC <------> portmap it "registers" with portmap as being | | mountd available. When a client mounts an -------------+-------------+------------ NFS file system, it asks portmap, who open/read | biod <------> nfsd returns mountd's socket (host,port#). close/write | | -------------+-------------|------------ fcntl() | statd <------> statd | lockd <------> lockd ---------------------------------------------------------------------------------- /etc/exports contains the files available for export, but it's not read by the mountd daemon. rc.nfs runs exportfs -a, which copies /etc/exports to /etc/xtab, which is what mountd reads. ---------------------------------------------------------------------------------- To avoid these cryptic error messages, when mount -r rhino:/dfs /rhino_dfs nfsmnthelp: 1831-019 rhino: System call error number -1. mount: 1831-008 giving up on: rhino:/dfs System call error number -1. ensure rhino can reverse-resolve the machine you're coming from. ---------------------------------------------------------------------------------- You (evidently) cannot specify a wildcard for smitty's "HOSTS allowed root access" field (which translates into the chnfsexp command's -r option). I tried using *, but it didn't work as expected. Instead, I had to list all the clients, which gets translated into this in the /etc/exports file. /dfs -root=bear:buffalo:jasmine:elk:gecko:ghost:giraffe:jasper:lizard:minkie:patimg1:patimg2:penguin:phoebe:polecat:reindeer:skunk:walrus:zingo:grumpy:adam:jenny:melanie:agam:vinu:jacob:mark:kristine:afs1:loon /dfsrw -root=bear:buffalo:jasmine:elk:gecko:ghost:giraffe:jasper:lizard:minkie:patimg1:patimg2:penguin:phoebe:polecat:reindeer:skunk:walrus:zingo:grumpy:adam:jenny:melanie:agam:vinu:jacob:mark:kristine:afs1:loon ---------------------------------------------------------------------------------- The NFS daemons can/do listen in either the UDP or TCP protocols. Typically, they listen in both. To see what daemons are listening in on what protocols and ports, try rpcinfo -p. Program Program Name Number Versions Protocols Port Comments ======= ======= ======== ========= ====== ==================== portmapper 100000 2-4 UDP & TCP 111 Fixed rstatd 100001 1-3 UDP & TCP 32769 Variable pcnfsd 150001 1-2 UDP 32773 Variable nfs 100001 1-3 UDP & TCP 32769 Variable 100001 1-3 UDP & TCP 32769 Variable 100001 1-3 UDP & TCP 32769 Variable 100001 1-3 UDP & TCP 32769 Variable 100001 1-3 UDP & TCP 32769 Variable ---------------------------------------------------------------------------------- Other NFS commands and their related daemons are rup/rstatd, rusers/rusersd, rwall/rwalld, spray/sprayd, on/rexd, and showmount/mountd. All of those daemons can be found in /etc/inetd.conf. ---------------------------------------------------------------------------------- NIS Daemons | Client | Server -----------------+--------------+-------------- login | ypbind <-----> ypserv yp = Yellow Pages name resolution | | | | change password | yppasswd <-----> yppasswdd yppasswd isn't a daemon, really. It's just a substitute for the passwd command. /etc/passwd has "escape" sequence in it of "+::0:0:::" to say from now on, use the NIS server to validate this userid. /etc/group also has a similar escape sequence of "+:". Other NIS commands are ypwhich, ypset, ypinit, ypmatch, ypcat, makedbm, yppoll, domainname, yppush, and ypxfr.