1df3f5d9dSPeter Wemm.\" Copyright (c) 1989, 1990, 1993, 1994 29b50d902SRodney W. Grimes.\" The Regents of the University of California. All rights reserved. 39b50d902SRodney W. Grimes.\" 49b50d902SRodney W. Grimes.\" Redistribution and use in source and binary forms, with or without 59b50d902SRodney W. Grimes.\" modification, are permitted provided that the following conditions 69b50d902SRodney W. Grimes.\" are met: 79b50d902SRodney W. Grimes.\" 1. Redistributions of source code must retain the above copyright 89b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer. 99b50d902SRodney W. Grimes.\" 2. Redistributions in binary form must reproduce the above copyright 109b50d902SRodney W. Grimes.\" notice, this list of conditions and the following disclaimer in the 119b50d902SRodney W. Grimes.\" documentation and/or other materials provided with the distribution. 12*fbbd9655SWarner Losh.\" 3. Neither the name of the University nor the names of its contributors 139b50d902SRodney W. Grimes.\" may be used to endorse or promote products derived from this software 149b50d902SRodney W. Grimes.\" without specific prior written permission. 159b50d902SRodney W. Grimes.\" 169b50d902SRodney W. Grimes.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 179b50d902SRodney W. Grimes.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 189b50d902SRodney W. Grimes.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 199b50d902SRodney W. Grimes.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 209b50d902SRodney W. Grimes.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 219b50d902SRodney W. Grimes.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 229b50d902SRodney W. Grimes.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 239b50d902SRodney W. Grimes.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 249b50d902SRodney W. Grimes.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 259b50d902SRodney W. Grimes.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 269b50d902SRodney W. Grimes.\" SUCH DAMAGE. 279b50d902SRodney W. Grimes.\" 28eae8be70SEitan Adler.Dd January 21, 2010 299b50d902SRodney W. Grimes.Dt FINGER 1 3062500372SRuslan Ermilov.Os 319b50d902SRodney W. Grimes.Sh NAME 329b50d902SRodney W. Grimes.Nm finger 339b50d902SRodney W. Grimes.Nd user information lookup program 349b50d902SRodney W. Grimes.Sh SYNOPSIS 358fe908efSRuslan Ermilov.Nm 36f8871cc8SDag-Erling Smørgrav.Op Fl 46gklmpsho 379b88faecSRuslan Ermilov.Op Ar user ...\& 389b88faecSRuslan Ermilov.Op Ar user@host ...\& 399b50d902SRodney W. Grimes.Sh DESCRIPTION 409b50d902SRodney W. GrimesThe 418fe908efSRuslan Ermilov.Nm 423898680cSPhilippe Charnierutility displays information about the system users. 439b50d902SRodney W. Grimes.Pp 449b50d902SRodney W. GrimesOptions are: 45fc978ec4SRuslan Ermilov.Bl -tag -width indent 463daa8471SHajimu UMEMOTO.It Fl 4 473daa8471SHajimu UMEMOTOForces 483daa8471SHajimu UMEMOTO.Nm 493daa8471SHajimu UMEMOTOto use IPv4 addresses only. 503daa8471SHajimu UMEMOTO.It Fl 6 513daa8471SHajimu UMEMOTOForces 523daa8471SHajimu UMEMOTO.Nm 533daa8471SHajimu UMEMOTOto use IPv6 addresses only. 549b50d902SRodney W. Grimes.It Fl s 553898680cSPhilippe CharnierDisplay the user's login name, real name, terminal name and write 569b50d902SRodney W. Grimesstatus (as a ``*'' before the terminal name if write permission is 5786641d8fSPaul Trainadenied), idle time, login time, and either office location and office 5887faa07bSSheldon Hearnphone number, or the remote host. 5987faa07bSSheldon HearnIf 6086641d8fSPaul Traina.Fl o 6186641d8fSPaul Trainais given, the office location and office phone number is printed 62cf040f74SRuslan Ermilov(the default). 63cf040f74SRuslan ErmilovIf 64cf040f74SRuslan Ermilov.Fl h 65cf040f74SRuslan Ermilovis given, the remote host is printed instead. 669b50d902SRodney W. Grimes.Pp 679b50d902SRodney W. GrimesIdle time is in minutes if it is a single integer, hours and minutes 689b50d902SRodney W. Grimesif a ``:'' is present, or days if a ``d'' is present. 6952e5cddfSRuslan ErmilovIf it is an 7052e5cddfSRuslan Ermilov.Dq * , 7152e5cddfSRuslan Ermilovthe login time indicates the time of last login. 7286641d8fSPaul TrainaLogin time is displayed as the day name if less than 6 days, else month, day; 7386641d8fSPaul Trainahours and minutes, unless more than six months ago, in which case the year 7486641d8fSPaul Trainais displayed rather than the hours and minutes. 759b50d902SRodney W. Grimes.Pp 769b50d902SRodney W. GrimesUnknown devices as well as nonexistent idle and login times are 779b50d902SRodney W. Grimesdisplayed as single asterisks. 7886641d8fSPaul Traina.It Fl h 7986641d8fSPaul TrainaWhen used in conjunction with the 8086641d8fSPaul Traina.Fl s 8186641d8fSPaul Trainaoption, the name of the remote host is displayed instead of the office 8286641d8fSPaul Trainalocation and office phone. 8386641d8fSPaul Traina.It Fl o 8486641d8fSPaul TrainaWhen used in conjunction with the 8586641d8fSPaul Traina.Fl s 8686641d8fSPaul Trainaoption, the office location and office phone information is displayed 8786641d8fSPaul Trainainstead of the name of the remote host. 880830bd13SJonathan Mini.It Fl g 890830bd13SJonathan MiniThis option restricts the gecos output to only the users' real 906a3e8b0aSRuslan Ermilovname. 916a3e8b0aSRuslan ErmilovIt also has the side-effect of restricting the output 920830bd13SJonathan Miniof the remote host when used in conjunction with the 930830bd13SJonathan Mini.Fl h 940830bd13SJonathan Minioption. 95ad468669SJuli Mallett.It Fl k 960806dd92SEd SchoutenDisable all use of the user accounting database. 979b50d902SRodney W. Grimes.It Fl l 983898680cSPhilippe CharnierProduce a multi-line format displaying all of the information 999b50d902SRodney W. Grimesdescribed for the 1009b50d902SRodney W. Grimes.Fl s 1019b50d902SRodney W. Grimesoption as well as the user's home directory, home phone number, login 10286641d8fSPaul Trainashell, mail status, and the contents of the files 103fc978ec4SRuslan Ermilov.Pa .forward , 104fc978ec4SRuslan Ermilov.Pa .plan , 105fc978ec4SRuslan Ermilov.Pa .project 106d17485b6SDag-Erling Smørgravand 107fc978ec4SRuslan Ermilov.Pa .pubkey 1089b50d902SRodney W. Grimesfrom the user's home directory. 1099b50d902SRodney W. Grimes.Pp 1109b50d902SRodney W. GrimesIf idle time is at least a minute and less than a day, it is 1119b50d902SRodney W. Grimespresented in the form ``hh:mm''. 1129b50d902SRodney W. GrimesIdle times greater than a day are presented as ``d day[s]hh:mm''. 1139b50d902SRodney W. Grimes.Pp 1149b50d902SRodney W. GrimesPhone numbers specified as eleven digits are printed as ``+N-NNN-NNN-NNNN''. 1159b50d902SRodney W. GrimesNumbers specified as ten or seven digits are printed as the appropriate 1169b50d902SRodney W. Grimessubset of that string. 1179b50d902SRodney W. GrimesNumbers specified as five digits are printed as ``xN-NNNN''. 11886641d8fSPaul TrainaNumbers specified as four digits are printed as ``xNNNN''. 1199b50d902SRodney W. Grimes.Pp 1209b50d902SRodney W. GrimesIf write permission is denied to the device, the phrase ``(messages off)'' 1219b50d902SRodney W. Grimesis appended to the line containing the device name. 1229b50d902SRodney W. GrimesOne entry per user is displayed with the 1239b50d902SRodney W. Grimes.Fl l 1249b50d902SRodney W. Grimesoption; if a user is logged on multiple times, terminal information 1259b50d902SRodney W. Grimesis repeated once per login. 1269b50d902SRodney W. Grimes.Pp 12786641d8fSPaul TrainaMail status is shown as ``No Mail.'' if there is no mail at all, ``Mail 12886641d8fSPaul Trainalast read DDD MMM ## HH:MM YYYY (TZ)'' if the person has looked at their 12986641d8fSPaul Trainamailbox since new mail arriving, or ``New mail received ...'', ``Unread 13086641d8fSPaul Trainasince ...'' if they have new mail. 1319b50d902SRodney W. Grimes.It Fl p 1323898680cSPhilippe CharnierPrevent 1339b50d902SRodney W. Grimesthe 1349b50d902SRodney W. Grimes.Fl l 1359b50d902SRodney W. Grimesoption of 1368fe908efSRuslan Ermilov.Nm 1379b50d902SRodney W. Grimesfrom displaying the contents of the 138fc978ec4SRuslan Ermilov.Pa .forward , 139fc978ec4SRuslan Ermilov.Pa .plan , 140fc978ec4SRuslan Ermilov.Pa .project 141d17485b6SDag-Erling Smørgravand 142fc978ec4SRuslan Ermilov.Pa .pubkey 1439b50d902SRodney W. Grimesfiles. 1449b50d902SRodney W. Grimes.It Fl m 1459b50d902SRodney W. GrimesPrevent matching of 1469b50d902SRodney W. Grimes.Ar user 1479b50d902SRodney W. Grimesnames. 1489b50d902SRodney W. Grimes.Ar User 1499b50d902SRodney W. Grimesis usually a login name; however, matching will also be done on the 1509b50d902SRodney W. Grimesusers' real names, unless the 1519b50d902SRodney W. Grimes.Fl m 1529b50d902SRodney W. Grimesoption is supplied. 1539b50d902SRodney W. GrimesAll name matching performed by 1548fe908efSRuslan Ermilov.Nm 1559b50d902SRodney W. Grimesis case insensitive. 1569b50d902SRodney W. Grimes.El 1579b50d902SRodney W. Grimes.Pp 1589b50d902SRodney W. GrimesIf no options are specified, 1598fe908efSRuslan Ermilov.Nm 1609b50d902SRodney W. Grimesdefaults to the 1619b50d902SRodney W. Grimes.Fl l 1629b50d902SRodney W. Grimesstyle output if operands are provided, otherwise to the 1639b50d902SRodney W. Grimes.Fl s 1649b50d902SRodney W. Grimesstyle. 1659b50d902SRodney W. GrimesNote that some fields may be missing, in either format, if information 1669b50d902SRodney W. Grimesis not available for them. 1679b50d902SRodney W. Grimes.Pp 1689b50d902SRodney W. GrimesIf no arguments are specified, 1698fe908efSRuslan Ermilov.Nm 1709b50d902SRodney W. Grimeswill print an entry for each user currently logged into the system. 1719b50d902SRodney W. Grimes.Pp 1723898680cSPhilippe CharnierThe 1733898680cSPhilippe Charnier.Nm 1743898680cSPhilippe Charnierutility may be used to look up users on a remote machine. 1759b50d902SRodney W. GrimesThe format is to specify a 1769b50d902SRodney W. Grimes.Ar user 1779b50d902SRodney W. Grimesas 1789b50d902SRodney W. Grimes.Dq Li user@host , 1799b50d902SRodney W. Grimesor 1809b50d902SRodney W. Grimes.Dq Li @host , 1819b50d902SRodney W. Grimeswhere the default output 1829b50d902SRodney W. Grimesformat for the former is the 1839b50d902SRodney W. Grimes.Fl l 1849b50d902SRodney W. Grimesstyle, and the default output format for the latter is the 1859b50d902SRodney W. Grimes.Fl s 1869b50d902SRodney W. Grimesstyle. 1879b50d902SRodney W. GrimesThe 1889b50d902SRodney W. Grimes.Fl l 1899b50d902SRodney W. Grimesoption is the only option that may be passed to a remote machine. 1908829c73eSJordan K. Hubbard.Pp 1918829c73eSJordan K. HubbardIf the file 192fc978ec4SRuslan Ermilov.Pa .nofinger 1938829c73eSJordan K. Hubbardexists in the user's home directory, 194d2e4ea2aSDiomidis Spinellisand the program is not run with superuser privileges, 1958fe908efSRuslan Ermilov.Nm 1968829c73eSJordan K. Hubbardbehaves as if the user in question does not exist. 197098c6e87SBrian Somers.Pp 198098c6e87SBrian SomersThe optional 199098c6e87SBrian Somers.Xr finger.conf 5 200098c6e87SBrian Somersconfiguration file can be used to specify aliases. 201098c6e87SBrian SomersSince 202facc6767SRuslan Ermilov.Nm 203098c6e87SBrian Somersis invoked by 204909aa0d5SSheldon Hearn.Xr fingerd 8 , 205040864acSBrian Somersaliases will work for both local and network queries. 20659be6088SPaul Traina.Sh ENVIRONMENT 2073898680cSPhilippe CharnierThe 2083898680cSPhilippe Charnier.Nm 2093898680cSPhilippe Charnierutility utilizes the following environment variable, if it exists: 21059be6088SPaul Traina.Bl -tag -width Fl 21159be6088SPaul Traina.It Ev FINGER 21259be6088SPaul TrainaThis variable may be set with favored options to 2138fe908efSRuslan Ermilov.Nm . 21459be6088SPaul Traina.El 215df3f5d9dSPeter Wemm.Sh FILES 2160806dd92SEd Schouten.Bl -tag -width /var/log/utx.lastlogin -compact 217098c6e87SBrian Somers.It Pa /etc/finger.conf 218098c6e87SBrian Somersalias definition data base 2190806dd92SEd Schouten.It Pa /var/log/utx.lastlogin 220df3f5d9dSPeter Wemmlast login data base 221df3f5d9dSPeter Wemm.El 2229b50d902SRodney W. Grimes.Sh SEE ALSO 2239b50d902SRodney W. Grimes.Xr chpass 1 , 2249b50d902SRodney W. Grimes.Xr w 1 , 2259b50d902SRodney W. Grimes.Xr who 1 , 226098c6e87SBrian Somers.Xr finger.conf 5 , 2275521ff5aSRuslan Ermilov.Xr fingerd 8 2284c33feedSGarrett Wollman.Rs 2294c33feedSGarrett Wollman.%A D. Zimmerman 2304c33feedSGarrett Wollman.%T The Finger User Information Protocol 2314c33feedSGarrett Wollman.%R RFC 1288 2324c33feedSGarrett Wollman.%D December, 1991 2334c33feedSGarrett Wollman.Re 2349b50d902SRodney W. Grimes.Sh HISTORY 2359b50d902SRodney W. GrimesThe 2368fe908efSRuslan Ermilov.Nm 2379b50d902SRodney W. Grimescommand appeared in 2389b50d902SRodney W. Grimes.Bx 3.0 . 2391e5f1c29SRuslan Ermilov.Sh BUGS 2403d1a0148STim J. RobbinsThe 2413d1a0148STim J. Robbins.Nm 2423d1a0148STim J. Robbinsutility does not recognize multibyte characters. 243