Ok... I feel like such a rookie... never used PAM, but I got it working.
Here is what I did.
1. Log in with your main account
2. Launch a Terminal window
3. Type the following
Enter your password and a root file manager should open.
3. Browse to the pam.d folder (computer/etc/pam.d)
4. Double click on the "login" file
5. Uncomment (remove the # ) from the line that reads "account requisite pam_time.so"
6. Save the file.
7. In the same directory open the lightdm file
8. To the end, add the line
Code:
account required pam_time.so
9. Save the file
10. With the same sudo file broswer, navigate to computer/etc/security
11. Open the time.conf file
12. To the end of the file, add the restrictions that you want.
*;*;user;!Wk1500-2000
for instance will not (!) allow a user to log in on weekdays between the hours of 3pm and 8pm
*;*;user;Wk1500-2000
will allow user to only log on during those times.
You could also do multiple users by using the or operand (|)
For example... if you wanted both your kids to have the same login restrictions... you could do it in a single line
*;*;user1|user2;!Wk1300-2000
If you tell us some more about the restrictions you want, I bet we could help you edit the time.conf file.
The only weird thing that I noticed is that it stops me from logging on... but it tells me my password is incorrect. I would like it more if it gave me a more descriptive error and told me that I wasn't permitted to log in at that time.
Hopefully that helps.
It seems that the key I was missing was to edit the lightdm file... Ubuntu 13.10 uses that for the initial login.