OpenBSD 3.8 NFS Cannot Export RW

  • Xel02
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Jun 15, 2004
  • Posts: 261
  • Status: Offline

Post January 1st, 2006, 1:16 pm

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post January 1st, 2006, 1:16 pm

  • this213
  • Guru
  • Guru
  • User avatar
  • Joined: Mar 01, 2004
  • Posts: 1242
  • Loc: ./
  • Status: Offline

Post January 1st, 2006, 3:21 pm

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.
http://www.disabo.com
  • Xel02
  • Proficient
  • Proficient
  • No Avatar
  • Joined: Jun 15, 2004
  • Posts: 261
  • Status: Offline

Post January 1st, 2006, 4:01 pm

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 56 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
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.