Access times cron job

Status
Not open for further replies.

reedjasonf

Dabbler
Joined
Mar 12, 2013
Messages
21
I have three users on my freenas share: admin, uploaders, users. Uploaders have read and write permissions all the time and users only have read permissions. I'd like to set up a cron job that will change the users permissions so that they can can not read between certain hours of the day.

For example, at 10 pm regular users won't have access to the CIFS share until 8 am the next morning.

I'm guessing I do this with a cron job but I don't know the command I should have the cron job perform.
 

reedjasonf

Dabbler
Joined
Mar 12, 2013
Messages
21
I think I figured it out but it only works if ACL is selected as Unix. I used "chmod 760 /mnt/share" every night at 10 and "chmod 765 /mnt/share" every morning at 7 am.

If someone knows how to automate this with ACL windows would appreciate that as well.
 
Status
Not open for further replies.
Top