# format # tty:user:group:load:monthly:daily:session:idle:warn:note # tty, user, and group can use shell wildcards. # load is a float threshold of ttys in use for this rule. # monthly, daily, session and idle are limits in minutes, or '-' for no limit. # warn is the advance warning time in minutes. # note is a text description used in warnings, emails, and logs. # # The load is calculated as the average number of ttys in use that match this # rule. Warnings are sent when the load for the past minute is exceeded # and the monthly, daily, session or idle limit is exceeded. However, the user # is not kicked until the load for the past "warn" minutes exceeds the load # threshold. This means that users still get "warn" minutes of warnings when # a more restrictive "peak" rule comes into affect, and if the load suddenly # drops they will not get kicked and will cease getting warnings. # the following allows members of group "dialout" on tty1 unlimited # monthly/daily limits, with 30min sessions, 5 mins idle, and 2 mins # warning. Warnings and disconnection emails will refer to "dialout" limits tty1:*:dialout:0.0:-:-:30:5:2:dialout # The following limits all users of all groups on ttyS1, ttyS2, ttyS3, or ttyS4 # to 1hr per day "on peak", 4hrs/day "off peak", where "on peak" is defined as # 3.0 or more of these lines in use on average over the last 5 mins. ttyS[1234]:*:*:3.0:-:60:-:-:5:on peak ttyS[1234]:*:*:0.0:-:240:-:-:5:off peak