share_nfs problem with both ro= and rw=

share_nfs problem with both ro= and rw=

Post by Francois Perrucho » Sat, 20 Jan 1996 04:00:00

I would like to share a filesystem via NFS. There should be
exactly two hosts allowed access: One of them read-write, the
other read-only. According to the share_nfs(1M) man page this
should be possible (or at least that's the impression I got).

Ok, I tried to set it up this way, but it did not work.
The NFS server is nol2183, the two NFS clients are nol2149 and

(nol2183:root) ~ # share -F nfs -orw=nol2149,ro=nol2372 /mnt1
(nol2183:root) ~ # share | grep /mnt1
-               /mnt1   rw=nol2149,ro=nol2372   ""  
(nol2183:root) ~ #

(nol2149:root) # mount -F nfs nol2183:/mnt1 /mnt
nfs mount: nol2183:/mnt1: access denied

(nol2372:root) ~ # umount /mnt
(nol2372:root) ~ # mount -F nfs nol2183:/mnt1 /mnt
(nol2372:root) ~ # pwd >/mnt/tmp/foo$$
bash: /mnt/tmp/foo374: Read-only file system

I end up with the read-only client nol2372 getting the file system (fine),
but the read-write client cannot do its mount!!
Can my requirement be fulfilled and if yes, how?
(We are running Solaris 2.3)


Francois Perruchoud  

Phone: +41 1 236 17 73
Postal Addr: UBS, Dept. LEIT/LITP-PCF, P.O. Box, CH-8021 Zurich


1. mount ro then rw then ro...??

I went through the slackware install using net boot and
color144 root just fine except for it said that util.tgz was
missing from a2 and keytbls.tgz from a3. I looked for these
files on several sunsite mirrors and did not find them.

Figuring that the index file had not been updated or something
I proceded.

When booting the hd using lilo it said I needed to mount
/dev/hda1  read only. I did this and it said to do it read
write. I did this and it said to do it read only. Whats up with

I am new to this linux thing and would appreciate any help.

2. Welcome to [Frequent posting]

3. FQDN in rw=list for share_nfs required?

4. WinWriter 150C Printer: Am I Screwed?

5. Install problems: CD-ROM drive and rw/ro

6. Network Access Question

7. Mounting Linux Partition as RW v. RO

8. Kernel boot problem

9. fstab mounting FAT16 FS's ro - want rw

10. rw ramdisk with ro backend?

11. ro rw

12. QA: How to remount -rw a -ro filesystem

13. Mounting a disk RO and RW