PORTTIME(5)

名称
porttime - 端口访问时间文件

描述

porttime contains a list of tty devices, user names, and permitted login times.

每项包含三个由冒号分隔的字段。第一个字段是逗号分隔的 tty 设备列表，或者星号表示匹配所有终端。第二个字段是逗号分隔的用户名列表，或者星号表示匹配所有用户名。第三个字段是逗号分隔的访问许可时间。

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.

示例

The following entry allows access to user jfh on every port during weekdays from 9am to 5pm.

*:jfh:Wk0900-1700

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.

          console:root,oper:Al0000-2400
          console:*:

The following entry allows access for the user games on any port during non-working hours.

*:games:Wk1700-0900,SaSu0000-2400

文件

/etc/porttime
    包含了端口访问信息的文件。

参见

login(1).