Re: restricting users during certain times/days
From: Lew Pitcher (Lew.Pitcher_at_td.com)
Date: 02/02/04
- Next message: Robert M. Stockmann: "Re: Clone HDD"
- Previous message: Frank: "process size"
- In reply to: Mike Cox: "restricting users during certain times/days"
- Next in thread: Michael Heiming: "Re: restricting users during certain times/days"
- Reply: Michael Heiming: "Re: restricting users during certain times/days"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 02 Feb 2004 21:03:47 GMT
On Mon, 02 Feb 2004 14:27:46 -0800, "Mike Cox" <mikecoxlinux@yahoo.com> wrote:
>Is it possible to control the times or days a user is allowed to login?
>For example, if you only want a user to be able to login during the
>weekdays. How would you set that up?
Depending on how universal I wanted the restriction, I'd probably set up a
couple of cron jobs
0 0 * * mon touch /etc/nologin
0 0 * * sat rm /etc/nologin
see nologin(5) ("man 5 nologin") for details on what the /etc/nologin file does.
-- Lew Pitcher IT Consultant, Enterprise Technology Solutions Toronto Dominion Bank Financial Group (Opinions expressed are my own, not my employers')
- Next message: Robert M. Stockmann: "Re: Clone HDD"
- Previous message: Frank: "process size"
- In reply to: Mike Cox: "restricting users during certain times/days"
- Next in thread: Michael Heiming: "Re: restricting users during certain times/days"
- Reply: Michael Heiming: "Re: restricting users during certain times/days"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|