1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 1991 - 1994, Julianne Frances Haugh
4 Copyright (c) 2007 - 2008, Nicolas François
7 Redistribution and use in source and binary forms, with or without
8 modification, are permitted provided that the following conditions
10 1. Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15 3. The name of the copyright holders or contributors may not be used to
16 endorse or promote products derived from this software without
17 specific prior written permission.
19 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
22 PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23 HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 <refentry id='groups.1'>
32 <!-- $Id: groups.1.xml 2435 2008-10-11 11:44:43Z nekral-guest $ -->
34 <refentrytitle>groups</refentrytitle>
35 <manvolnum>1</manvolnum>
36 <refmiscinfo class="sectdesc">User Commands</refmiscinfo>
38 <refnamediv id='name'>
39 <refname>groups</refname>
40 <refpurpose>display current group names</refpurpose>
43 <refsynopsisdiv id='synopsis'>
45 <command>groups</command>
47 <replaceable>user</replaceable>
52 <refsect1 id='description'>
53 <title>DESCRIPTION</title>
55 The <command>groups</command> command displays the current group names
56 or ID values. If the value does not have a corresponding entry in
57 <filename>/etc/group</filename>, the value will be displayed as the
58 numerical group value. The optional <emphasis
59 remap='I'>user</emphasis> parameter will display the groups for the
60 named <emphasis remap='I'>user</emphasis>.
67 Systems which do not support concurrent group sets will have the
68 information from <filename>/etc/group</filename> reported. The user
69 must use <command>newgrp</command> or <command>sg</command> to change
70 their current real and effective group ID.
78 <term><filename>/etc/group</filename></term>
80 <para>Group account information.</para>
86 <refsect1 id='see_also'>
87 <title>SEE ALSO</title>
90 <refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
93 <refentrytitle>getgid</refentrytitle><manvolnum>2</manvolnum>
96 <refentrytitle>getgroups</refentrytitle><manvolnum>2</manvolnum>
99 <refentrytitle>getuid</refentrytitle><manvolnum>2</manvolnum>