NFS problem: portmap won't start properly
Posted on 1998-12-08
I'm trying no start the NFS service on a RedHat 5.0 system on a PC where I have root access.
When I start the portmapper as root (/usr/sbin/portmap) it seemingly lives as a process when I check with ps aux, but when I try do anything that has to do with rpc, say /usr/sbin/rpc.mountd or /usr/sbin/rpcinfo -p the portmapper vanishes from the list of running processes and there is an error message like "Cannot register service: RPC: Unable to recieve; errno = Connection refused".
When I check messages in /var/log/messages it sometimes says
"portmap[xxxx]: cannot bind udp: Permission denied". Could this be because portmap is run as user bin when I check it with ps aux, and not as root? I start the portmapper as root and I suppose it should run as bin, or?
Besides, from where should portmap, rpc.mountd and rpc.nfsd be started at boot time in a RedHat system? I've searched a lot of doc's, faq's and man pages for this information, but it never becomes as specific to say exactly where or how. In the file /etc/rc.d/init.d/inet it says that this script starts the Internet Network Deamon & RPC portmapper, but there is no sign of references to /usr/sbin/portmap what so ever. (Not even in a system I have where the portmapper starts correctly from boot time). Could that be added there together with mountd and nfsd or where? I've tried that but it doesn't work.
Long story folks, do you have a good answer?