Initial commit for Tizen
[profile/extras/shadow-utils.git] / man / groups.1.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright (c) 1991 - 1994, Julianne Frances Haugh
4    Copyright (c) 2007 - 2008, Nicolas François
5    All rights reserved.
6   
7    Redistribution and use in source and binary forms, with or without
8    modification, are permitted provided that the following conditions
9    are met:
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.
18   
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.
30 -->
31 <refentry id='groups.1'>
32   <!-- $Id: groups.1.xml 2435 2008-10-11 11:44:43Z nekral-guest $ -->
33   <refmeta>
34     <refentrytitle>groups</refentrytitle>
35     <manvolnum>1</manvolnum>
36     <refmiscinfo class="sectdesc">User Commands</refmiscinfo>
37   </refmeta>
38   <refnamediv id='name'>
39     <refname>groups</refname>
40     <refpurpose>display current group names</refpurpose>
41   </refnamediv>
42
43   <refsynopsisdiv id='synopsis'>
44     <cmdsynopsis>
45       <command>groups</command>
46       <arg choice='opt'>
47         <replaceable>user</replaceable>
48       </arg>
49     </cmdsynopsis>
50   </refsynopsisdiv>
51
52   <refsect1 id='description'>
53     <title>DESCRIPTION</title>
54     <para>
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>.
61     </para>
62   </refsect1>
63
64   <refsect1 id='note'>
65     <title>NOTE</title>
66     <para>
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.
71     </para>
72   </refsect1>
73
74   <refsect1 id='files'>
75     <title>FILES</title>
76     <variablelist>
77       <varlistentry>
78         <term><filename>/etc/group</filename></term>
79         <listitem>
80           <para>Group account information.</para>
81         </listitem>
82       </varlistentry>
83     </variablelist>
84   </refsect1>
85
86   <refsect1 id='see_also'>
87     <title>SEE ALSO</title>
88     <para>
89       <citerefentry>
90         <refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
91       </citerefentry>,
92       <citerefentry>
93         <refentrytitle>getgid</refentrytitle><manvolnum>2</manvolnum>
94       </citerefentry>,
95       <citerefentry>
96         <refentrytitle>getgroups</refentrytitle><manvolnum>2</manvolnum>
97       </citerefentry>,
98       <citerefentry>
99         <refentrytitle>getuid</refentrytitle><manvolnum>2</manvolnum>
100       </citerefentry>.
101     </para>
102   </refsect1>
103 </refentry>