LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-22-2004, 02:30 PM   #1
jmoody
LQ Newbie
 
Registered: Mar 2004
Posts: 24

Rep: Reputation: 15
NFS, NIS, and Fedora 2


I have an NIS server running on RH 7.1. I have a collection of Linux hosts configured via NFS to export /home partitions within our lab. These hosts run RH6.2, RH7.2, RH7.3, RH8.0, and Fedora Core 1 & 2.

All of the hosts are happy to export the designated directories to each other _except_ for the Fedora 2 system. I finally traced the problem down to the exports file:

If I use the standard (standard for ou lab, that is) exports file:

/home @LABHOSTS(rw,sync,no_subtree_check)

then any host gets a "permission denied" error when they attempt to mount the Fedora 2's exported partition.

However, if I change the entry to

#/home @LABHOSTS(rw,sync,no_subtree_check)
/home 123.45.6.0/24(rw,sync,no_subtree_check)

and restart nfs then the Fedora 2 system behaves properly (assume the bogus IP address in this example is a valid subnet specifier): any of the other hosts can mount the /home directory on the Fedora 2 host.

Yes, the NIS maps and server are working properly otherwise. No, it's not a firewall issue. It doesn't seem to be a user permissions problem, either

As far as I can tell from the documentation a netgroup references is still a valid way to specify groups of hosts. Any idea why this isn't working for Fedora 2, and any suggestions on how to fix it?
 
Old 06-23-2004, 01:44 AM   #2
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
You haven't gotten any hits, so I will toss out some thoughts.

The problem appears to be tied to name resolution. You are apparently using NIS for name resolution. Is /etc/nsswitch.conf properly configured to use NIS for this on your Fedora 2 system? Does your Fedora 2 system properly resolve names in your netgroup otherwise, both partially and fully qualified domain names?
 
Old 06-23-2004, 05:50 AM   #3
jmoody
LQ Newbie
 
Registered: Mar 2004
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by idaho
You haven't gotten any hits, so I will toss out some thoughts.

The problem appears to be tied to name resolution. You are apparently using NIS for name resolution. Is /etc/nsswitch.conf properly configured to use NIS for this on your Fedora 2 system? Does your Fedora 2 system properly resolve names in your netgroup otherwise, both partially and fully qualified domain names?
Bingo. Every entry in the Fedora 2 system's nsswitch.conf had been properly updated to use nis -- except for netgroup.

I was certainly running down the wrong trail: the manpage for exportfs indicated changes between kernel 2.4 and 2.6, and Fedora Core 2 makes that kernel jump. I was convinced the problem I saw was related to that.

Thanks Idaho!
 
  


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
I need Help on NIS and NFS srikanthrao_d Linux - Hardware 9 01-22-2006 08:04 PM
[i have no name!] NIS NFS MMMarc Linux - Networking 17 02-13-2005 01:35 PM
(I have no name!)NIS,NFS MMMarc Linux - Software 0 02-08-2005 06:42 PM
Fedora Core 2 and NIS/NFS Rekna Linux - Software 1 06-27-2004 01:11 PM
NIS NFS and KDE phatality Linux - Networking 2 05-26-2004 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:11 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