Find the answer to your Linux question:
Results 1 to 4 of 4
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?...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2006
    Posts
    3

    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?

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,672
    Can you post the results you are seeing?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux Newbie nplusplus's Avatar
    Join Date
    Apr 2010
    Location
    Charlotte, NC, USA
    Posts
    106
    Have you experimented with changing the order of your access statements?
    Fedora 19 is OUT!

    Timidly considering Archlinux
    Slowly working my way through systemd

  4. #4
    Just Joined!
    Join Date
    Jan 2006
    Posts
    3
    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,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •