Account Allowed Login Times?
First of all, sorry if I'm blind and am asking an easy/answered question - but I've googled it and looked on numerous forums and can't seem to find an answer, SO:
I'm simply looking for a way to setup what times an account is active (can be logged in / running programs) and what time it's disabled (where login is denied)... like say "every day from 7pm to 8pm" or something along those lines.
Is there any way to do this without manually writing a script or setting a cron job? (or, if cron is the only way: would I just set the shell to like /sbin/nologin and then reset it at the "accessible" time... or is there something better I can change?)
Thanks in advance.
|