lightdm and pam authentication (pam_time)
in previos version of With Ubuntu Linux, it is possible to assign to your computer time restrictions, to prevent the connection of one or more users to your system. With the time restrictions, you can, for example, limit access to the computer for your children (a kind of parental control, in short), or even protect the connection to your server during certain hours.
I use PAM (Pluggable Authentication Modules). It allows you to control user authentication when they connect. Then, we will use the security configuration files to define logon hours allowed. Enable Restrictions hours via the PAM Module
First of all, first go to the /etc/pam.d/, where is all configurable services: This is available by default in the kernel of linux...
If we want to block the connection to the computer, we will have to change the gdm service. Edit the file so gdm and add this line of code (at the end of file):
account required pam_time.so
GDM is the login screen distributions in Ubuntu but in 11.10 this change to Lighdm and i can't get this work again....
I tested this parameter in the follow files :
/etc/pam.d/lightdm and also /etc/pamd.
without success .....
I also notice that that som pam parameters change like
How i can get this solution available again ??????
DistroRelease: Ubuntu 11.10
Package: lightdm 1.0.1-0ubuntu6
Uname: Linux 3.0.0-12-generic i686
Date: Sun Oct 23 13:54:32 2011
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
PATH=(custom, no user)
UpgradeStatus: No upgrade log present (probably fresh install)
|security vulnerability:||yes → no|
|visibility:||private → public|