NFS time based access restrictions

Mike Kallies mike.kallies-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Feb 26 20:38:49 UTC 2010


On Fri, Feb 26, 2010 at 3:23 PM, Darryl Moore <darryl-90a536wCiRb3fQ9qLvQP4Q at public.gmane.org> wrote:
> Oh that's easy. My home server hosts videos. Everything I've ripped
> and/or downloaded in the last decade is there. I want to make sure the
> kids can't access it between the time they get home and after supper.
>
> Perhaps another solution is to change the group ownership of the
> directory and use cron add/remove the kids from a videoviewing group.
> I'm using LDAP for authentication already so that wouldn't be too hard.
>
> Yes, I didn't really think exporting and unexporting the directory was
> the best option. I have enough occasional issues with my own laptop and
> NFS when it sleep and the wakes somewhere not on the network. If
> Nautilus had an NFS mounted directory open when it went to sleep it
> causes all sorts of head aches when it resumes.

I think you can do

   exportfs -u /path/to/no/longer/export

and it will stop exporting the path, even though it's in /etc/exports

Then I think if you do a

   exportfs -a

it will reload the /etc/exports and re-export anything which was
previously unexported.

I don't have an NFS environment handy to try it out... so I'm not 100%.

I think this is a better solution than messing with permissions or
group memberships, because once authenticated, the group memberships
stay the same until the user logs back in.

-Mike
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list