NFS time based access restrictions

Darryl Moore darryl-90a536wCiRb3fQ9qLvQP4Q at public.gmane.org
Fri Feb 26 20:23:56 UTC 2010


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.

cheers,
darryl

Lennart Sorensen wrote:
> On Fri, Feb 26, 2010 at 09:12:54AM -0500, Darryl Moore wrote:
>> I am needing to place time based access restrictions on NFS mounts. I
>> figured I would just create a cron job on the server. Change the
>> /etc/exports file and restart the server when the access restrictions
>> need to take effect.
>>
>> Unfortunately it is only one exported directory that I need to disable,
>> while all the other mounts from the same server still need to be accessible.
>>
>> Does any one have thoughts about whether this is the best way to do this
>> or not? The other alternative I guess is to put the cron job on the
>> various clients and have them umount the NFS directory. Of course I
>> might run into issues if there are files open. Then the umount could fail.
>>
>> The NFS exports are read only.
>>
>> I'd love to hear anybody elses opinions if you want to offer it.
> 
> I guess the obvious question is: Why do you want to do this?
> 
> Quite likely if we knew that we could give you a sensible solution that
> might actually work reliably.
> 
--
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