Nimi: Aleksandr Laada A21
Esitamise kuupaev: 07.12.2016
Retsensioon: Talk:Finger Jevgeni Kuzmin A21
finger utility displays information about the system users.
finger [-options] [user ...] [user@host ...]
- -4 - Forces finger to use IPv4 addresses only.
- -6 - Forces finger to use IPv6 addresses only.
- -s - Display the user's login name, real name, terminal name and write status (as a ``*'' before the terminal name if write permission is denied), idle time, login time, and either office location and office phone number, or the remote host.
Unknown devices as well as nonexistent idle and login times are displayed as single asterisks.
- -h - When used in conjunction with the -s option, the name of the remote host is displayed instead of the office location and office phone.
- -o - When used in conjunction with the -s option, the office location and office phone information is displayed instead of the name of the remote host.
- -g - This option restricts the gecos output to only the users' real name. It also has the side-effect of restricting the output of the remote host when used in conjunction with the -h option.
- -k - Disable all use of the user accounting database.
- -l - Produce 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 .forward, .plan, .project and .pubkey from the user's home directory.
- -p - Prevent the -l option of finger from displaying the contents of the .forward, .plan, .project and .pubkey files.
- -m - Prevent matching of user names. User is usually a login name; however, 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.
- The finger utility 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 the file .nofinger exists in the user's home directory, and the program is not run with superuser privileges, finger behaves as if the user in question does not exist.
- The optional finger.conf configuration file can be used to specify aliases. Since finger is invoked by fingerd, aliases will work for both local and network queries.
1. View detail about a particular user
finger command will display login, username, home directory, shell information about a particular user as shown below.
$ finger sathiya Login: sathiya Name: (null) Directory: /home/sathiya Shell: /bin/bash On since Mon Nov 1 18:45 (IST) on :0 (messages off) On since Mon Nov 1 18:46 (IST) on pts/0 from :0.0 New mail received Fri May 7 10:33 2010 (IST) Unread since Sat Jun 7 12:59 2008 (IST) No Plan.
2. View login details and Idle status about an user
You can use finger -s option to view the login detail for a particular user.
$ finger -s root Login Name Tty Idle Login Time Office Office Phone root root *1 19d Wed 17:45 root root *2 3d Fri 16:53 root root *3 Mon 20:20 root root *ta 2 Tue 15:43 root root *tb 2 Tue 15:44
/etc/finger.conf - alias definition data base
/var/log/utx.lastlogin - last login data base
finger This variable may be set with favored options to finger.
- To use Finger, it is necessary for the host computer to run the Finger daemon (a program running in the background) which will answer Finger requests.
- Finger is not designed to log requests. So finding out who is Fingering you is complicated.
- The finger utility does not recognize multibyte characters.
finger command appeared in 3.0BSD
Finger was one of the first computer network applications. It enabled people to see who else was using the computer system as well as find basic information on that user. (Zimmerman 1991)
Last version: 0.17-15