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 something like this: 0 17 * * * echo "No logins allowed now." > /etc/nologin 0 5 * * * rm -f /etc/nologin That would be brute force. Create the nologin file when you want and remove it when you want. Bob
Attachment:
signature.asc
Description: Digital signature