Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS: export subdirectories and permissions with wildcards
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Feb 06, 2003 5:00 pm    Post subject: NFS: export subdirectories and permissions with wildcards Reply with quote

I have two NFS problems.

1. I'm exporting my /usr/portage, however I'm trying to do it cleanly and I want to export /usr/portage as read-only, and export /usr/portage/packages and /usr/portage/distfiles as rw. My /etc/exports looks like this:

Code:
# /etc/exports: NFS file systems being exported.  See exports(5).
/usr/portage    10.200.1.67(ro,sync)
/usr/portage/distfiles  10.200.1.67(rw,no_root_squash,sync)
/usr/portage/packages   10.200.1.67(rw,no_root_squash,sync)


However when I run exportfs -a I get "Invalid argument" errors for the two subdir lines.

2. When I export a dir, I have to specify the exact host (either name or IP) that I want to export to in order for that host to be able to mount. If I say *.lan.mydomain.com, the client will get a "permission denied" error.
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Thu Feb 06, 2003 9:36 pm    Post subject: Reply with quote

I used your exportfs file and subsituted the ip with one of mine. When I ran exportfs -a, I got no errors at all. Which version of nfs-utils do you use? And which version of the kernel?

Code:

emerge -p nfs-utils

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] net-fs/nfs-utils-1.0.1


Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Feb 06, 2003 9:41 pm    Post subject: Reply with quote

I'm on 1.0.1 of nfs-utils as well. Running gentoo-sources-2.4.19-r5.

Results of uname -a:
Code:
Linux orthanc.xxxx.com 2.4.19-gentoo-r5 #1 SMP Mon Dec 23 15:33:02 CST 2002 i686 Intel(R) Pentium(R) 4 CPU 1400MHz GenuineIntel GNU/Linux


changed my domain to protect the innocents.
Back to top
View user's profile Send private message
rizzo
Retired Dev
Retired Dev


Joined: 30 Apr 2002
Posts: 1067
Location: Manitowoc, WI, USA

PostPosted: Thu Feb 06, 2003 10:46 pm    Post subject: Reply with quote

OK now I'm on vanilla-sources 2.4.20 and when I do the export I get the "Invalid argument" error on the first line (/usr/portage).

Wacky.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum