Login restriction time

Asked by Piotr Jóźwiak on 2012-12-24

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:
2012-12-28
Last query:
2012-12-28
Last reply:
2012-12-24
Piotr Jóźwiak (petterros) said : #2

Thx ;)

Piotr Jóźwiak (petterros) said : #3

Thanks Jeet, that solved my question.