Results 1 to 2 of 2

Thread: General NFS exports question

  1. #1
    Join Date
    Jul 2006
    Beans
    36

    General NFS exports question

    I'd like to make an export rw for one machine, and ro for the rest. I'd like to do something like this:

    Code:
    /dir 192.168.1.0/24(rw)
    /dir/dir2/dir3 192.168.1.5(rw) 192.168.1.0/24(ro)
    Essentially, I'd like to be able to make dir3 writable from only one machine on my local network, and read only from the rest. What is the correct syntax for this?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: General NFS exports question

    I'd have the machine hostnames resolved in order and use
    /build buildhost0[0-9].local.domain(rw)
    /build buildhost1[0-9].local.domain(ro)

    Or you can check the export manpage for details.

    There is an issue with the /dir export allowing everything too. Mixing rw and ro on the same storage exports is a bad idea, IMHO.
    https://access.redhat.com/solutions/454723
    Last edited by TheFu; October 4th, 2014 at 11:09 PM.

Tags for this Thread

Bookmarks

Posting Permissions

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