From: Jeff Moyer Subject: Re: Read-only map Date: Wed, 29 Oct 2008 13:25:04 -0400 Message-ID: References: <49087C73.6080502@s3group.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <49087C73.6080502@s3group.cz> (Ondrej Valousek's message of "Wed, 29 Oct 2008 16:08:35 +0100") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org To: Ondrej Valousek Cc: "autofs@linux.kernel.org" Ondrej Valousek writes: > Hi List, > > I have a problem: > My system (client, server) RHEL 5.2, latest updates. > 1. NFS server is exporting read/write share > 2. NIS automount map point to that share, but in read only like "key -ro > nfsserver:/share/key" > > Now, the "strange" thing is that on clients that share is mounted read > only, fine, but when I go to the nfsserver itself, the share is mounted > read write. I understand this is because mount --bind is used instead of > nfs for performance reasons, but this way we lose the -ro flag. > Is there any simple solution to this? Well, you could add -fstype=nfs. In olden days, you could specify -nosymlink. Cheers, Jeff