*;*;avi;!SaSu0000-2400
This will disable user avi login from Saturday and Sunday.
This is the syntax
`services;ttys;users;times`
| | | | | | |
* ; * ; avi ;!SaSu0000-2400
services----Is a logic list of PAM service names that the rule applies to.
If you enter * here then applies to all services. Instead of * I can enter game login Then it applies to only those services.
ttys----Is a logic list of terminal names that this rule applies to.
Here also same If you enter * Then It applies to all terminal, or you can enter particular tty name also like tty1 tty2, then It affects to only those terminal.
users----Is a logic list of users or a netgroup of users to whom this rule applies.
In my case I entered user name avi. That means these all condition applies to avi only
times----Times field is used to indicate the times at which this rule applies
These are some example lines which might be specified in /etc/security/time.conf.
All users except for root are denied access to console-login at all times:
login ; tty* & !ttyp* ; !root ; !Al0000-2400
Games (configured to use PAM) are only to be accessed out of working hours. This rule does not apply to the user waster:
games ; * ; !waster ; Wd0000-2400 | Wk1800-0800
And the main thing to work this we have to make proper edit inside /etc/pam.d/ directory
dont ask which file...
That is because see this example