LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2013, 12:20 PM   #1
chgtang
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
config /etc/exports: whole-subnet(ro) except one (rw). How?


Intend to configure /etc/exports like this:
/somedir 12.34.56.0/24(ro) 12.34.56.78(rw)
But, the result showed that 12.34.56.78 was exported as read-only.
OS: RHEL6.4.
Any easy way to do this?
 
Old 06-13-2013, 08:57 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Try as separate exports
Code:
 /somedir 12.34.56.0/24(ro) 
 /somedir 12.34.56.78(rw)
 
Old 06-14-2013, 09:08 AM   #3
chgtang
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Found the answer.
Reverse the order and it works as desired:
/somedir 12.34.56.78(rw) 12.34.56.0/24(ro)

Apparently, the rule is:
Once a match is found, the rest names in the file are ignored.

Thank all for help.

Cheers,
 
  


Reply

Tags
configurations, nfs exports



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
[SOLVED] NFS exports do not show up in /proc/fs/nfs/exports Gerard_2009 Linux - Server 2 09-07-2010 03:06 PM
How to config DHCP for multiple subnet applebees Linux - Networking 4 06-29-2010 08:11 PM
Postfix send emails from a subnet, how to config? bzzz Linux - Server 2 11-15-2009 07:52 AM
help with dhcpd.config file to assign address's to clients on another subnet ccammack Linux - Networking 2 10-03-2005 09:42 AM
Config DHCPD for non-direct connected subnet desmondwck Linux - Software 0 05-14-2004 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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