Operating System - Linux
1753427 Members
4839 Online
108793 Solutions
New Discussion юеВ

Re: No remote programs registered. in redhat linux while RPC service is running

 
kuldeep saroha
Frequent Advisor

No remote programs registered. in redhat linux while RPC service is running

Dear all,

i am facing a prblem of mounting the exported file systems on server A while mounting on server B.
both server NFS, portmapper service is running.

when tring the listion rpcinfo -p serverA it is giving the following error in var/messages




audit(1210756526.155:10215): avc: denied { read } for pid=9768 comm="portmap" name="hosts.allow" dev=sda2 ino=627428 scontext=root:system_r:portmap_t tcontext=root:object_r:var_log_t tclass=file
nfsd: last server has exited
nfsd: unexporting all filesystems
rpciod: active tasks at shutdown?!
RPC: failed to contact portmap (errno -5).
audit(1210756631.725:10216): avc: denied { read } for pid=9768 comm="portmap" name="hosts.allow" dev=sda2 ino=627428 scontext=root:system_r:portmap_t tcontext=root:object_r:var_log_t tclass=file



please suggest the solution

Regards
kuldeep
6 REPLIES 6
Alexander Chuzhoy
Honored Contributor

Re: No remote programs registered. in redhat linux while RPC service is running

Unless you want to keep the selinux:
setenforce 0
edit the file /etc/sysconfig/selinux and make sure that after
SELINUX=
you have either disabled or permissive.
kuldeep saroha
Frequent Advisor

Re: No remote programs registered. in redhat linux while RPC service is running

means i have to execute the command setenforce=0
or after changing is required to reboot. currently reboot is not possibe the how to re-read the file.

or temporary i can disable this security
Steven E. Protter
Exalted Contributor

Re: No remote programs registered. in redhat linux while RPC service is running

Shalom,

If selinux is the cause there is no way to temporarily disable security. You must reboot to fix this.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
kuldeep saroha
Frequent Advisor

Re: No remote programs registered. in redhat linux while RPC service is running

rebooting of the server also does make any differnece. By the logs seems to be problem with SElinux. but hosts.allow portmap : ALL entry makes no difference.

please see the log files attached.

rgds
kuldeep
Alexander Chuzhoy
Honored Contributor

Re: No remote programs registered. in redhat linux while RPC service is running

Hmm, I disagree with Steven on this one.
Executing "setenforce 0" without rebooting the system should be sufficient in this case - works for me.


kuldeep saroha
Frequent Advisor

Re: No remote programs registered. in redhat linux while RPC service is running

i have tried it but not worked for me.