Login restriction time

Asked by Piotr Jóźwiak

Hi!
I'm using Ubuntu 12.10
I want to restrict user alicja from loging between 19-16h.
I've added line *;*;alicja; !Al1900-1600 to /etc/security/time.conf and I don't really konw what to write in /etc/pam.d/gdm

I don't really know how to configure gdm.
What should I add to /etc/pam.d/gdm ?

And also:

When alicja will log in and time reach 19 will it automatically log her off?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu shadow Edit question
Assignee:
No assignee Edit question
Solved by:
Jeet
Solved:
Last query:
Last reply:
Revision history for this message
Best Jeet (gour-jitendrasingh) said :
#1
Revision history for this message
Piotr Jóźwiak (petterros) said :
#2

Thx ;)

Revision history for this message
Piotr Jóźwiak (petterros) said :
#3

Thanks Jeet, that solved my question.