Merge branches 'master' and 'suser_to_priv'
[dragonfly.git] / usr.bin / hesinfo / hesinfo.1
1 .\"     $NetBSD: hesinfo.1,v 1.1 1999/01/25 22:45:55 lukem Exp $
2 .\"
3 .\" from: #Id: hesinfo.1,v 1.9 1996/11/07 01:57:12 ghudson Exp #
4 .\"
5 .\" Copyright 1987, 1996 by the Massachusetts Institute of Technology.
6 .\"
7 .\" Permission to use, copy, modify, and distribute this
8 .\" software and its documentation for any purpose and without
9 .\" fee is hereby granted, provided that the above copyright
10 .\" notice appear in all copies and that both that copyright
11 .\" notice and this permission notice appear in supporting
12 .\" documentation, and that the name of M.I.T. not be used in
13 .\" advertising or publicity pertaining to distribution of the
14 .\" software without specific, written prior permission.
15 .\" M.I.T. makes no representations about the suitability of
16 .\" this software for any purpose.  It is provided "as is"
17 .\" without express or implied warranty.
18 .\"
19 .\" $FreeBSD: src/usr.bin/hesinfo/hesinfo.1,v 1.6 2005/02/09 18:04:22 ru Exp $
20 .\"
21 .Dd October 27, 1996
22 .Dt HESINFO 1
23 .Os
24 .Sh NAME
25 .Nm hesinfo
26 .Nd "find out what is stored in the Hesiod database"
27 .Sh SYNOPSIS
28 .Nm
29 .Op Fl bl
30 .Ar HesiodName HesiodNameType
31 .Sh DESCRIPTION
32 The
33 .Nm
34 utility takes two arguments, a name to be resolved and a string, known
35 as a
36 .Ar HesiodNameType .
37 It then prints the information returned by
38 the Hesiod nameserver.
39 .Pp
40 The value returned by
41 .Nm
42 is of the type
43 .Ar HesiodNameType .
44 .Pp
45 The following options are available:
46 .Bl -tag -width indent
47 .It Fl l
48 Selects long format.
49 .It Fl b
50 Prints the fully\-qualified string passed to the nameserver.
51 .El
52 .Ss VALID Hesiod_Names
53 The following types of identifiers may be used in the
54 .Ar HesiodName
55 argument to
56 .Nm .
57 These values will be resolved by accessing the
58 .Xr hesiod 3
59 database.
60 .Bl -tag -width indent
61 .It Aq Ar username
62 the 8\-character\-or\-less string used to identify users or classes
63 (e.g.\& joeuser, root, 1.00, etc).
64 Used with the
65 .Ar Hesiod_Name_Types
66 .Cm passwd ,
67 .Cm pobox ,
68 and
69 .Cm filsys .
70 .It Aq Ar uid
71 the id number assigned to a user.
72 .It Aq Ar groupid
73 the id number assigned to a group.
74 .It Aq Ar groupname
75 a name identifying a unique group.
76 .It Aq Ar file\-system\-name
77 the name of an Athena file system.
78 .It Xo
79 .Ao Ar "rvd\-server" Ac : Ns Aq Ar pack
80 .Xc
81 the name of an rvd's server and pack separated by a colon.
82 .It Xo
83 .Ao Ar "nfs\-server" Ac : Ns Aq Ar partition
84 .Xc
85 the name of an
86 .Tn NFS
87 server and its partition separated by a colon.
88 .It Aq Ar workstation\-name
89 the machine name of an Athena workstation (e.g.\& E40\-343\-3).
90 .It Aq Ar service\-name
91 name of an Athena service (e.g.\& Zephyr).
92 .It Aq Ar service\-type
93 name of
94 .Ux
95 service (valid entries are defined in
96 .Pa /etc/services ) .
97 .It Aq Ar printer\-name
98 name of a printer.
99 .It Aq Ar printer\-cluster\-name
100 name of an Athena print cluster.
101 .It Aq Ar foo
102 some
103 .Nm
104 calls (e.g.\&
105 .Cm prclusterlist )
106 do not require a specific
107 .Ar HesiodName
108 argument.
109 However, you must include a dummy string (e.g.\&
110 .Ql foo )
111 for
112 .Nm
113 to work properly.
114 .El
115 .Ss VALID Hesiod_Name_Types
116 The following symbols are valid substitutions for the
117 .Ar HesiodNameType
118 argument to
119 .Nm .
120 .Bl -tag -width indent
121 .It Cm passwd
122 returns string suitable for inclusion in
123 .Pa /etc/passwd ,
124 searching with
125 .Aq Ar username .
126 .It Cm pobox
127 returns information on the pobox assigned to the user specified by
128 .Ar HesiodName ,
129 searching with
130 .Aq Ar username .
131 .It Cm uid
132 returns string suitable for inclusion in
133 .Pa /etc/passwd ,
134 searching with
135 .Aq Ar uid .
136 .It Cm gid
137 returns string suitable for inclusion in
138 .Pa /etc/group ,
139 searching with
140 .Aq Ar groupid .
141 .It Cm group
142 returns string suitable for inclusion in
143 .Pa /etc/group ,
144 searching with
145 .Aq Ar groupname .
146 .It Cm grplist
147 returns subgroups included in superset
148 defined by
149 .Aq Ar groupname .
150 .It Cm filsys
151 returns file system type, export point, server, mount mode, and import point
152 for the following valid
153 .Ar HesiodNames
154 (see above) -
155 .Aq Ar "file\-system\-name" ,
156 .Aq Ar username ,
157 .Ao Ar "rvd\-server" Ac : Ns Aq Ar pack ,
158 and
159 .Ao Ar "nfs\-server" Ac : Ns Aq Ar partition .
160 .It Cm cluster
161 returns information about the local cluster the workstation, specified by
162 .Aq Ar "workstation\-name" .
163 Included is information about the local file and print servers.
164 This information is accesses by
165 .Sy clusterinfo
166 at boot time.
167 .It Cm sloc
168 returns network name of service host for
169 .Aq Ar service\-name .
170 .It Cm service
171 returns Internet protocol type and protocol service port for
172 .Aq Ar service\-type .
173 .It Cm pcap
174 returns a valid entry for
175 .Pa /etc/printcap
176 for
177 .Aq Ar printer\-name .
178 .It Cm prcluserlist
179 returns a list of print clusters.
180 .It Cm prcluster
181 returns a list of printers in a cluster specified by
182 .Aq Ar printer\-cluster\-name .
183 .El
184 .Sh FILES
185 .Bl -tag -width /etc/hesiod.conf
186 .It Pa /etc/hesiod.conf
187 .El
188 .Sh SEE ALSO
189 .Xr hesiod 3 ,
190 .Xr named 8
191 .Rs
192 .%T "Hesiod - Project Athena Technical Plan -- Name Service"
193 .Re
194 .Sh AUTHORS
195 .An Steve Dyer ,
196 IBM/Project Athena
197 .Pp
198 Copyright 1987, 1988, 1996 by the Massachusetts Institute of Technology.