File: innetgr.1.in

package info (click to toggle)
ng-utils 1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 388 kB
  • sloc: ansic: 218; makefile: 7
file content (49 lines) | stat: -rw-r--r-- 1,398 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.TH "innetgr" "1" "@VERSION@" "Petter Reinholdtsen" "NSS utilities"
.SH "NAME"
.LP 
innetgr \- Check netgroup membership

.SH "SYNTAX"
.LP 
innetgr [\-d \fIdomain\fP] [\-h \fIhost\fP] [\-u \fIuser\fP] [\-v] <\fInetgroup\fP>
.SH "DESCRIPTION"
.LP 
innetgr checks if the specified user, host or domain is
a member of the given netgroup. The program does not
produce any output unless the verbose ( \-v ) flag is given.
.LP 
The exit status is 0 if the user/host/doman combination is a member of
the given netgroup.  Exit status is 1 if the combination is not found
in the group, and 2 if one of the arguments are invalid.
.SH "OPTIONS"
.LP 
.TP 
\fB\-\-domain <\fIdomain\fP> | \-d\fR <\fIdomain\fP>
Search in the given domain.
.TP 
\fB\-\-host <\fIhost name\fP> | \-h\fR <\fIhost name\fP>
Search for the given host name.
.TP 
\fB\-\-user <\fIuser name\fP> | \-u\fR <\fIuser name\fP>
Search for the given user name.
.TP 
\fB\-\-verbose | \-v\fR
Enable verbose mode
.TP 
\fB\-\-version | \-V\fR
Show version information.
.SH "EXAMPLES"
.LP 
To check if the current host is listed in the netgroup
allhosts, use this command line:
.LP 
if innetgr \-h `uname \-n` allhosts ; then echo "Found"; fi

.SH "CONFORMING TO"
A innetgr program first appeared in NetBSD 1.4.
.SH "AUTHORS"
.LP 
Petter Reinholdtsen <pere@hungry.com>
.SH "SEE ALSO"
.LP 
getent(1) netgroup(1) innetgr(3) netgroup(5) nsswitch.conf(5)