Different options for subdir? Possible?
Subsystems (2)
I'd like to export the filesystem /exports as ro, but the subdir /exports/dump as rw. I can't seem to get it to work though, so before I start digging deeper I figured I might ask if this is even possible? :)
I tried this in /etc/exports:
/exports/dump 1.2.3.4(rw)
/exports 1.2.3.4(ro)
Rgds
Signature · 6 lines
-- Pierre Ossman WARNING: This correspondence is being monitored by FRA, a Swedish intelligence agency. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption.
A message that is not in the archive (sent off-list or not yet received): 20100515153104.51f5e4ab-OhHrUh4vRMS8I+09wXhka4dd74u8MsAO@public.gmane.org
Quoted 4 lines · Pierre Ossman
I'd like to export the filesystem /exports as ro, but the subdir /exports/dump as rw. I can't seem to get it to work though, so before I start digging deeper I figured I might ask if this is even possible? :)
If the "dump" subdirectory is a subdirectory of the same filesystem (not a mountpoint), and if you're using NFSv4 (or v2/v3 with crossmnt), the client will continue to use the export options on the parent directory.
Also, note that it's relatively easy for someone with access to the network to treat all of /exports as rw.
In general, export points that aren't mountpoints are not usually a good idea.
--b.
Quoted 14 lines
I tried this in
/etc/exports:/exports/dump 1.2.3.4(rw)
/exports 1.2.3.4(ro)Rgds
Signature · 6 lines
-- Pierre Ossman WARNING: This correspondence is being monitored by FRA, a Swedish intelligence agency. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption.
Quoted 10 lines · On Mon, 17 May 2010 16:49:47 -0400 "J. Bruce Fields" <[email protected]>…
Quoted 4 lines · Pierre Ossman
I'd like to export the filesystem /exports as ro, but the subdir /exports/dump as rw. I can't seem to get it to work though, so before I start digging deeper I figured I might ask if this is even possible? :)
If the "dump" subdirectory is a subdirectory of the same filesystem (not a mountpoint), and if you're using NFSv4 (or v2/v3 with crossmnt), the client will continue to use the export options on the parent directory.
Hmm... client? Can't say I'm intimate with the NFS protocol, but access permissions like this seems like a server decision.
Quoted 2 lines
Also, note that it's relatively easy for someone with access to the network to treat all of /exports as rw.
Even with subtree check?
Quoted 2 lines
In general, export points that aren't mountpoints are not usually a good idea.
Fair enough. I'll have to figure something else out.
Thanks
Signature · 6 lines
-- Pierre Ossman WARNING: This correspondence is being monitored by FRA, a Swedish intelligence agency. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption.
A message that is not in the archive (sent off-list or not yet received): 20100518193445.0c8dbc17-OhHrUh4vRMS8I+09wXhka4dd74u8MsAO@public.gmane.org
Quoted 9 lines · Pierre Ossman
Quoted 6 lines · On Mon, 17 May 2010 16:49:47 -0400 "J. Bruce Fields" <[email protected]>…
Quoted 4 lines · Pierre Ossman
I'd like to export the filesystem /exports as ro, but the subdir /exports/dump as rw. I can't seem to get it to work though, so before I start digging deeper I figured I might ask if this is even possible? :)
Quoted 7 lines
Quoted 4 lines
If the "dump" subdirectory is a subdirectory of the same filesystem (not a mountpoint), and if you're using NFSv4 (or v2/v3 with crossmnt), the client will continue to use the export options on the parent directory.
Hmm... client? Can't say I'm intimate with the NFS protocol, but access permissions like this seems like a server decision.
Yes, apologies for the imprecise language.
Quoted 4 lines
Quoted 2 lines
Also, note that it's relatively easy for someone with access to the network to treat all of /exports as rw.
Even with subtree check?
If you turn on subtree_check, you're safe. (That can cause other problems, though, due to filehandles changing on cross-directory rename.)
--b.
Quoted 13 lines
Quoted 2 lines
In general, export points that aren't mountpoints are not usually a good idea.
Fair enough. I'll have to figure something else out.
Thanks
Signature · 6 lines
-- Pierre Ossman WARNING: This correspondence is being monitored by FRA, a Swedish intelligence agency. Make sure your server uses encryption for SMTP traffic and consider using PGP for end-to-end encryption.