LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-19-2011, 12:13 PM   #1
ogie
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 0
RHEL 6 and NFS


I've been trying to configure a new system we have on our network to run NFS but I'm running into some issues after the configuration. When I do a service nfs start I get this:


Starting NFS services: [ OK ]
Starting NFS quotas: Cannot register service: RPC: Authentication error; why = Client credential too weak
rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
[FAILED]
Starting NFS daemon: rpc.nfsd: writing fd to kernel failed: errno 13 (Permission denied)
rpc.nfsd: writing fd to kernel failed: errno 13 (Permission denied)
rpc.nfsd: unable to set any sockets for nfsd
[FAILED]

I've checked to make sure that the rpcbind daemon is running and nfslock. Is there something I'm missing here? I've done some googling but everything talks about checking to make sure that portmap is running and it doesn't look like RHEL6 even comes with it anymore. Any help would be much appreciated.
 
Old 05-19-2011, 01:11 PM   #2
ogie
LQ Newbie
 
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Found out the issue I was having. You have to add the line:

ALL:127.0.0.1

to hosts.allow in order to start the nfs daemon.
 
Old 05-19-2011, 01:31 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
It might also be likely to selinux being enabled as well. You shouldn't have to use hosts.allow or hosts.deny in order for daemons or services to work, that would be an admin nightmare.

The first thing I do if it's not disabled from a kickstart install is, disable selinux, it does more damage than good. Most people don't have the time to configure a system with selinux enabled.
 
Old 12-10-2013, 02:22 PM   #4
bits45
Member
 
Registered: Jul 2009
Posts: 44
Blog Entries: 2

Rep: Reputation: 5
Smile

I realize this is an older thread, but Google finds it among the top 3 results and people are still discovering the nfs service error. Even Red Hat's RHN's fix didn't work.

As of December 2013 on a RHEL 6.4 (x64), and patched as of November 2013, the only solution was changing the permissions on the tcp_wrapper config files. Because we had secured the box pretty heavily, we had permissions of 640 on /etc/hosts.allow and /etc/hosts.deny, both owned by root:root. We did try given these files different group ownership nothing corrected the issue when nfs started.

Once we put the perms back to "out-of-the-box" (644) the nfs (rquotad) service started up as expected. Or if we moved the hosts.allow/deny out of the way entirely.

What a pain that was to figure out. The selinux logs may have helped if I had looked sooner.

Now if we had left selinux in enforcing mode this MAY have not been an issue. I still have to test that theory.

Good luck.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS for RHEL 5.5 mplike Linux - Software 1 03-03-2011 09:44 AM
How to install rhel through nfs sunils1973 Linux - Networking 1 01-11-2010 03:50 PM
Can't connect from slackware nfs client to rhel nfs server llattan Linux - Server 2 04-21-2009 09:49 AM
RHEL 5 nfs mount hangs on RHEL 3 gwasigh Linux - Networking 1 06-13-2008 10:43 PM
RHEL Installed over NFS logosys Red Hat 1 09-03-2005 11:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration