Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 2002 13:38:59 -0600
From:      Tillman Hodgson <tillman@hodgsonhouse.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Remounting NFS directories with different options
Message-ID:  <20020430133859.A22519@hodgsonhouse.com>

next in thread | raw e-mail | index | archive | help
Howdy,

I have a directory (/exports/www) exported with as follows:

/exports/www  -ro -alldirs -maproot=tillman coyote

I have a subdirectory (/exportes/www/project) that I want to export with
read-write permissions. My first thought was to also explicitedly export
it, but with different options:

/exports/www/project  -maproot=tillman  coyote

That didn't work, though. After kill -HUP'ing mountd, I had the
following log entry:

Apr 30 13:28:50 athena mountd[103]: can't change attributes for /exports/www/project
Apr 30 13:28:50 athena mountd[103]: bad exports list line /exports/www/project  -maproot

The client seems to have thigns correctly mounted:

[root@coyote www]# mount
athena:/exports/www on /nfs/www (nfs, read-only)
athena:/exports/www/project on /nfs/www/project (nfs)

But it doesn't work as expected:

[root@coyote www]# touch /nfs/www/project/test2
touch: /nfs/www/project/test2: Read-only file system

Short of using completely seperate directory trees and using a mess of
symlinks of the clients, is there a nice way to do this?

TIA,

- Tillman

-- 
To give your sheep or cow a large spacious meadow is the way to control him.
	Shunryu Suzuki

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020430133859.A22519>