Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ whoison(VI) — UNIX 1BSD

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

last (VI)

sess (VI)

WHOISON(VI)  −  PWB/UNIX 8/24/77

NAME

whoison − give information about who is on the system

SYNOPSIS

whoison [ − ] [ −pufnds ] [ name ...  ] [ terminal ...  ] [ location ]

DESCRIPTION

Whoison is a program which summarizes the current users of a large system quickly and sensibly.  Options are: −plist people
−ubreak down used teletypes
−fbreak down free teletypes
−nbreak down unavailable teletypes
−dgive “classwise” distribution of users
−ssummarize used and free The default is −pdfs.  The option − only turns all information on.  Whoison uses a data file winfo to break the teletypes on the system into classes, to give patterns, ala glob (VIII), for grouping users into classes, and to map users who are su’d to the character names of super-users.  A typical winfo file would be

 evans:ABCDEFGHIJKLQRST
cory:abcdefghijklmnopvwyz+-,
phone:01234
11/10:679
private:58hq.=_%MNOPUVWX#!
 guest:guest*|lhs*
cc:cc−*
 root:0:0
jeff:11:10
chuck:25:10
bill:37:10
ken:12:10

The first group of lines, up to a null line, gives the distribution of the teletypes, given by the name of the class followed by a ‘:’ and then the teletypes in the group. The second group gives the class names, followed by a ‘:’ and then patterns to match the class names separated by ‘|’ characters.  Here any user whose login name begins with ‘guest’ or ‘lhs’ is considered to be a guest.  Finally, the rest of the file is a miniature /etc/passwd to speed up user name searches.  If non-flag arguments are given on the command line, these are used instead of the patterns here, and only users specified by these arguments are given. The effect is that of specifying the option −p for these people only, or if the pattern is a single character teletype name, for the person on that terminal only.  The pattern may also be a location name, i.e.  ‘evans’ in the example above.  Thus ‘whoison evans’ will give the names of the users on the ‘evans’ terminals.  A typical output for the Cory System with this data base would be

broderse on c, conn on I and J, csgsa on L, devel on h, englar on 1,
guest on R, jeff on 8, joyce on C and D, kaarto on o (as root), mosher on T,
root on 5 (as pascal), so on -
15 used (1 guest), 45 free (8 evans, 19 cory, 4 phone, 3 11/10, 11 private)

FILES

/etc/winfodata base
/etc/utmpwho data base
/etc/ttystty on/off information

SEE ALSO

last (VI), sess (VI)

AUTHOR

William Joy

BUGS

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026