Crontab config

I have kids that use the pc down stairs. I would like to configure my PC to log off the younger children when they log on after 8pm, an the oldest at 9pm.

I have it configured for root to shutdown between the hours of 11pm and 5am, and to check every 5 mins.

How can I configure the kids portion of my cron? The accounts are saved on my SLES server thats running LDAP.

Thanks in advance

You might want to look using pam_time in the authorisation specs in /etc/pam.d/common-account. The time limitations are set in /etc/security/time.conf

Do you have any examples? Is this something I can setup with Yast? And do you know if it will work with LDAP accounts?

Thanks, John

Haven’t tried it myself but the docs make it sound like what you want. Should work with LDAP but you’d have to write the usernames in /etc/security/time.conf. Good luck.