Finger 百科内容来自于: 百度百科

F i n g e r协议返回一个指定主机上一个或多个用户的信息。它常被用来检查某个人是否登录了,或者搞清一个人的登录名以便给他发送邮件。 RFC1288 [Zimmerman 1991] 指明了这个协议。
由于两个原因,很多站点不支持一个 F i n g e r服务器。第一,F i n g e r服务器的一个早期版本中的一个编程错误被 1 9 8 8年声名狼藉的I n t e r n e t蠕虫病毒利用,作为进入点之一( R F C 11 3 5[Reynolds 1989] 和 [Curry 1992] 更详细地描述了蠕虫)。第二,F i n g e r协议有可能会泄露一些很多管理员认为是有关用户的私有信息(登录名、电话号码,他们上次的登录时间,等等)。R F C 1 2 8 8的第3节给出了这个有关服务安全方面的细节。
从一个协议的角度来看,F i n g e r服务器有一个知名的端口7 9。客户对这个端口做一个主动打开,然后发送一个在线的请求。服务器处理这个请求,把输出发送回去,然后关闭连接。查询和响应都是采用NVT ASCII,类似于我们在F T P和S M T P协议中所看到的。
finger命令的功能是查询用户的信息,通常会显示系统中某个用户的用户名、主目录、停滞时间、登录时间、登录shell等信息。如果要查询远程机上的用户信息,需要在用户名后面接“@主机名”,采用[用户名@主机名]的格式,不过要查询的网络主机需要运行finger守护进程
该命令的一般格式为:
finger [选项] [使用者] [用户@主机]
命令中各选项的含义如下:
-s 显示用户的注册名、实际姓名、终端名称、写状态、停滞时间、登录时间等信息。 -l 除了用-s选项显示的信息外,还显示用户主目录、登录shell、邮件状态等信息,以及用户主目录下的.plan、.project和.forward文件的内容。
-p 除了不显示.plan文件和.project文件以外,与-l选项相同。
FINGER(1) BSD General Commands Manual FINGER(1)
NAME
finger - user information lookup program
SYNOPSIS
finger [-lmsp] [user ...] [user@host ...]
DESCRIPTION
The finger displays information about the system users.
Options are:
-s Finger displays the user’s login name, real name, terminal name and
write status (as a ‘‘*’’ after the terminal name if write permis‐
sion is denied), idle time, login time, office location and office
phone number.
Login time is displayed as month, day, hours and minutes, unless
more than six months ago, in which case the year is displayed
rather than the hours and minutes.
Unknown devices as well as nonexistent idle and login times are
displayed as single asterisks.
-l Produces a multi-line format displaying all of the information
described for the -s option as well as the user’s home directory,
home phone number, login shell, mail status, and the contents of
the files “.plan”, “.project”, “.pgpkey” and “.forward” from the
user’s home directory.
Phone numbers specified as eleven digits are printed as ‘‘+N-NNN-
NNN-NNNN’’. Numbers specified as ten or seven digits are printed
as the appropriate subset of that string. Numbers specified as
five digits are printed as ‘‘xN-NNNN’’. Numbers specified as four
digits are printed as ‘‘xNNNN’’.
If write permission is denied to the device, the phrase ‘‘(messages
off)’’ is appended to the line containing the device name. One
entry per user is displayed with the -l option; if a user is logged
on multiple times, terminal information is repeated once per login.
Mail status is shown as ‘‘No Mail.’’ if there is no mail at all,
‘‘Mail last read DDD MMM ## HH:MM YYYY (TZ)’’ if the person has
looked at their mailbox since new mail arriving, or ‘‘New mail
received ...’’, ‘‘ Unread since ...’’ if they have new mail.
-p Prevents the -l option of finger from displaying the contents of
the “.plan”, “.project” and “.pgpkey” files.
-m Prevent matching of user names. User is usually a login name; how‐
ever, matching will also be done on the users’ real names, unless
the -m option is supplied. All name matching performed by finger
is case insensitive.
If no options are specified, finger defaults to the -l style output if
operands are provided, otherwise to the -s style. Note that some fields
may be missing, in either format, if information is not available for
them.
If no arguments are specified, finger will print an entry for each user
currently logged into the system.
Finger may be used to look up users on a remote machine. The format is
to specify a user as “user@host”, or “@host”, where the default output
format for the former is the -l style, and the default output format for
the latter is the -s style. The -l option is the only option that may be
passed to a remote machine.
If standard output is a socket, finger will emit a carriage return (^M)
before every linefeed (^J). This is for processing remote finger requests
when invoked by fingerd(8).
FILES
~/.nofinger If finger finds this file in a user’s home directory, it
will, for finger requests originating outside the local
host, firmly deny the existence of that user. For this
to work, the finger program, as started by fingerd(8),
must be able to see the .nofinger file. This generally
means that the home directory containing the file must
have the other-users-execute bit set (o+x). See
chmod(1). If you use this feature for privacy, please
test it with ‘‘finger @localhost’’ before relying on it,
just in case.
~/.plan
~/.project
~/.pgpkey These files are printed as part of a long-format
request. The .plan file may be arbitrarily long.
SEE ALSO
chfn(1), passwd(1), w(1), who(1)
HISTORY
The finger command appeared in 3.0BSD.
Linux NetKit (0.17) August 15, 1999 Linux NetKit (0.17)
中文 手指( 1 ) BSD的一般命令手册手指( 1 )
名字
手指-用户信息查找程序
概要
手指[ - lmsp ] [用户... ] [用户@主机... ]
描述
手指显示有关该系统的用户。
选项是:
- S的手指显示用户的登录名,真实姓名,终端名称和
收件地位(作为一个''*''后,该码头的名称,如果收件许可证-
锡永是否认) ,空闲时间,登录时间,办公地点和办公室
电话号码。
登录的时间显示为月,日,小时和分钟,除非
超过6个月前,在这种情况下,今年是显示
而不是小时和分钟。
未知设备,以及存在的闲置和登录时间
显示为单一的星号。
-升所产生的多线格式显示的所有信息
形容为- S期权,以及为用户的主目录,
家庭电话号码,登录壳,邮件的地位,和内容
档案“ 。计划” , “项目” , “ 。 pgpkey ”和“ 。提出: ”从
用户的主目录。
电话号码指定为11位数字印刷作为'' +的N -格式-
为NNN NNN - NNNN '' 。号码指定为10或7位数字印
作为适当的子字符串。号码指定为
五个数字印刷作为'' xn -举行'' 。号码指定为4
数字印刷作为'' xnnnn '' 。
如果写权限是否认向装置,词组'' (讯息
小康) ''是附加到线载装置名称。一个
进入每个用户显示与- l选项;如果用户登录
对多次,终端信息是重复一次,每登录。
电子邮件的地位,表现为''没有邮件。如果没有在所有的邮件
''邮件上宣读了国内MMM月# #时时:毫米四位数年份( tz ) ''如果该人已
看他们的邮箱以来,新邮件到达,或''新邮件
收到...'', ''未自...''如果他们有新邮件。
-阻止- l选项手指从展示的内容
“ 。计划” , “项目”和“ 。 pgpkey ”档案。
-米防止匹配的使用者名称。用户通常登录名;如何-
以往,匹配也将这样做对用户的真实姓名,除非
-m选项提供。所有名称匹配由手指
是区分大小写。
如果没有选项是指定的,手指默认为- L型输出,如果
运算提供,否则到- S的作风。请注意,有些字段
可能会丢失,无论是格式,如果资料不提供
他们。
如果没有指定的论据是,手指将打印文字为每个用户
目前登录到该系统。
手指可能被用来照顾了用户对远程机器。格式
要指定一个用户作为“用户@香港好客之道” ,或“ @香港好客之道” ,而默认输出
格式,前者是-升作风,默认输出格式为
后者是- S的作风。 - l选项是唯一的选择可能
通过远程机器。
如果标准输出是一个插座,手指将排放回车( ^米)
之前,每行( ^ j )条。这是处理远程手指的要求
当援引fingerd ( 8 ) 。
档案
?? / 。 nofinger如果手指认定,此文件在用户的主目录,它
将手指的要求,原产以外的地方
东道国,坚决否认存在该用户。这
工作,手指计划,开始由fingerd ( 8 ) ,
必须能够看到。 nofinger档案。这通常
即主目录包含该文件必须
有其他用户-执行位元组(海外+ X )来。看见
chmod ( 1 ) 。如果您使用此功能的隐私,请
测试它与''手指@本地''才依赖它,
中,以防万一。
?? / 。计划
?? / 。工程
?? / 。 pgpkey这些文件是印刷的一部分,一项长期的格式
请求。 。计划的文件可能被任意长。
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定