OpenBSD 3.8 NFS Cannot Export RW

  • Xel02
  • Proficient
  • Proficient
  • Xel02
  • Posts: 261

Post 3+ Months Ago

Hey all,

I've just started playing around with NFS and I can get it to export as ro however I cannot export it as rw.

I've use the simplest syntax in exports both:
/var/www/htdocs 192.168.0.0(rw)

and

/var/www/htdocs -rw 192.168.0.0

And neither works. However when I replace it with ro it does.

Does anyone have any suggestions?

Thanks in advance,

Xel.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • this213
  • Guru
  • Guru
  • User avatar
  • Posts: 1260
  • Loc: ./

Post 3+ Months Ago

Code: [ Select ]
/var/www/htdocs -maproot=user:group -network=192.168 -mask=255.255.0.0

For more on this, do "man exports".

In the example, user and group should be someone with write permissions to the directory you're trying to export, you don't need to have group defined (I just put it here to show you how to do it). You can use user and group IDs here as well.

There is no -rw option as this is the default behavior. If you want a share read-only, you must specify -ro.
  • Xel02
  • Proficient
  • Proficient
  • Xel02
  • Posts: 261

Post 3+ Months Ago

Thanks that did the trick.

I thought the NFS default settings were to mount the exports as read only and you had to explicitly define read-write.

But oh well :D at least its working.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 58 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.