PORTTIMESection: File Formats (5)
Index Return to Main Contents
NAMEporttime - port access time file
DESCRIPTIONporttime contains a list of tty devices, user names, and permitted login times.
Each entry consists of three colon separated fields. The first field is a comma separated list of tty devices, or an asterisk to indicate that all tty devices are matched by this entry. The second field is a comma separated list of user names, or an asterisk to indicated that all user names are matched by this entry. The third field is a comma separated list of permitted access times.
Each access time entry consists of zero or more days of the week, abbreviated Su, Mo, Tu, We, Th, Fr, and Sa, followed by a pair of times separated by a hyphen. The abbreviation Wk may be used to represent Monday thru Friday, and Al may be used to indicate every day. If no days are given, Al is assumed.
EXAMPLESThe following entry allows access to user jfh on every port during weekdays from 9am to 5pm.
The following entries allow access only to the users root and
oper on /dev/console at any time.
This illustrates how the
/etc/porttime file is an ordered list of access times.
Any other user would match the second entry which does not permit
access at any time.
The following entry allows access for the user games on any
port during non-working hours.
FILES/etc/porttime - file containing port access times
AUTHORJulianne Frances Haugh (firstname.lastname@example.org)