How we do custom NFS mount authorization on Solaris 10Suppose that you want to use some custom method of authenticating and
authorizing NFS mounts, and that your fileservers are Solaris 10 systems
(although the same general approach could probably work elsewhere).
Further suppose that you don't have the source to (When thinking about all of this, remember that NFS mount security has limits.) Solaris, like most systems, will let you export filesystem to (NIS)
netgroups. Solaris also has an So, the evil hack is to hijack mountd's netgroup lookups to do your own
authorization by having your own custom library set as the service for
netgroups in nsswitch.conf. When you export a filesystem to a netgroup
and a client tries to mount the filesystem, (Essentially what you're doing is hijacking 'netgroups' to pass magic
tokens through mountd to your authorization library. Note that your
library will get the same information that One drawback of this approach is that your authorization library must
perform all of the authorization checking, because you can't tell
We use this here on our Solaris 10 fileservers,
and it works fine (with some caveats that don't fit in this
entry). The basic idea can probably be applied on any Unix with an
(The usual disclaimer: I didn't come up with this, I'm just writing it up.) Sidebar: ways to use thisThere are two ways that I can think of for using this:
Our use of this is the first sort, for extended host authentication. |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |