Re: restricting login times

2013-03-25 Thread Chris Davies
Joel Rees wrote: > I found this ancient post on using PAM and /etc/security/time.conf to > accomplish this kind of thing on techrepublic (Complete with typos: A1 > for Al? What bot edited that?): > Here are some of the rules I've tried, one at a time: > login; tty*; user1; !Al-2400 * ; * ; u

Re: restricting login times

2013-03-25 Thread Rob Owens
On Mon, Mar 25, 2013 at 08:40:38PM +0900, Joel Rees wrote: > > I didn't have to get either the silly or simple example working. > > Tried, but I couldn't, without enabling pam_time in /etc/pam.d . > > In each of > > /etc/pam.d/login > > and > > /etc/pam.d/su > > Uncommented the line > > # a

Re: restricting login times

2013-03-25 Thread Joel Rees
Good news and bad news. On Mon, Mar 25, 2013 at 11:06 AM, Hugo Vanwoerkom wrote: > Joel Rees wrote: >> >> I know this is the wrong way to solve the underlying problems, but >> sometimes brute force is required. >> >> [...] >> Here are some of the rules I've tried, one at a time: >> >> login; tty*

Re: restricting login times

2013-03-25 Thread Joel Rees
On Mon, Mar 25, 2013 at 3:11 PM, Bob Proulx wrote: > Joel Rees wrote: >> I know this is the wrong way to solve the underlying problems, but >> sometimes brute force is required. > > If I were doing that by brute force then instead of using PAM I would > use cron to create and remove a /etc/nologin

Re: restricting login times

2013-03-24 Thread Bob Proulx
Joel Rees wrote: > I know this is the wrong way to solve the underlying problems, but > sometimes brute force is required. If I were doing that by brute force then instead of using PAM I would use cron to create and remove a /etc/nologin file. See 'man 5 nologin' for details of the file. But som

Re: restricting login times

2013-03-24 Thread Joel Rees
erk. On Mon, Mar 25, 2013 at 2:33 PM, Joel Rees wrote: > On Mon, Mar 25, 2013 at 11:06 AM, Hugo Vanwoerkom wrote: >> Joel Rees wrote: >>> >>> I know this is the wrong way to solve the underlying problems, but >>> sometimes brute force is required. >>> >>> I found this ancient post on using PAM a

Re: restricting login times

2013-03-24 Thread Joel Rees
On Mon, Mar 25, 2013 at 11:06 AM, Hugo Vanwoerkom wrote: > Joel Rees wrote: >> >> I know this is the wrong way to solve the underlying problems, but >> sometimes brute force is required. >> >> I found this ancient post on using PAM and /etc/security/time.conf to >> accomplish this kind of thing on

Re: restricting login times

2013-03-24 Thread Hugo Vanwoerkom
Joel Rees wrote: I know this is the wrong way to solve the underlying problems, but sometimes brute force is required. I found this ancient post on using PAM and /etc/security/time.conf to accomplish this kind of thing on techrepublic (Complete with typos: A1 for Al? What bot edited that?): htt

restricting login times

2013-03-24 Thread Joel Rees
I know this is the wrong way to solve the underlying problems, but sometimes brute force is required. I found this ancient post on using PAM and /etc/security/time.conf to accomplish this kind of thing on techrepublic (Complete with typos: A1 for Al? What bot edited that?): http://www.techrepubli