Results 1 to 4 of 4

Thread: Crontab config

  1. #1
    Join Date
    Jul 2008
    Location
    Some place in Washington
    Posts
    258

    Default 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

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Crontab config

    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

  3. #3
    Join Date
    Jul 2008
    Location
    Some place in Washington
    Posts
    258

    Default Re: Crontab config

    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

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Crontab config

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •