On Mon, 23 Jul 2001 10:37:10 -0500 Alex Roitman <[EMAIL PROTECTED]> wrote:
> Hi, > > I have a silly question: how do I enforce time restriction on the user? > I have a user on my box whom I would like to be able to login > ONLY between 6 pm and 10 pm. That is, to login in any form at > all (tty, ssh, gdm, everything). > > I placed the following line to my /etc/security/time.conf > > *;*;user1;Al1800-2200 > > hoping that it will allow user1 to login or stay in the system > for any service, from any tty, only between 18:00 and 22:00, every day. > I started /etc/init.d/logoutd and, unfortunately, there's no apparent > effect. > That is, logoutd starts fine every reboot, but no restriction seems to > be in effect. > > Am I doing something wrong? > What is the best way to restrict a user in my situation? > > Thanks in advance, > Alex > > Having just browsed the PAM documentation a few weeks ago, I seem to remember that you can use PAM to restrict user logins on various criteria, including time. The documentation is in package libpam-doc, perhaps a good idea to take a look at that? Anyone know more? Mart -- Baby even the losers get lucky sometimes Even the losers keep a little bit of pride Tom Petty and The Heartbreakers - Even The Losers
pgpYNilFF64zt.pgp
Description: PGP signature