2007-10-07 17:16:16 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentry id='gpasswd.1'>
|
2007-11-11 05:16:11 +05:30
|
|
|
<!-- $Id$ -->
|
2007-10-07 17:16:16 +05:30
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>gpasswd</refentrytitle>
|
|
|
|
<manvolnum>1</manvolnum>
|
|
|
|
<refmiscinfo class="sectdesc">User Commands</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv id='name'>
|
|
|
|
<refname>gpasswd</refname>
|
2007-11-23 03:06:38 +05:30
|
|
|
<refpurpose>
|
|
|
|
administer the <filename>/etc/group</filename>
|
|
|
|
<phrase condition="gshadow">and <filename>/etc/gshadow</filename>
|
|
|
|
files</phrase>
|
|
|
|
<phrase condition="no_gshadow">file</phrase>
|
|
|
|
</refpurpose>
|
2007-10-07 17:16:16 +05:30
|
|
|
</refnamediv>
|
|
|
|
<!-- body begins here -->
|
|
|
|
<refsynopsisdiv id='synopsis'>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>gpasswd</command>
|
2007-10-27 19:30:31 +05:30
|
|
|
<arg choice='opt'>
|
|
|
|
<replaceable>option</replaceable>
|
|
|
|
</arg>
|
2007-10-07 17:16:16 +05:30
|
|
|
<arg choice='plain'>
|
2007-10-07 17:17:01 +05:30
|
|
|
<replaceable>group</replaceable>
|
2007-10-07 17:16:16 +05:30
|
|
|
</arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='description'>
|
|
|
|
<title>DESCRIPTION</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
2007-11-23 03:06:38 +05:30
|
|
|
The <command>gpasswd</command> command is used to administer
|
|
|
|
<filename>/etc/group</filename><phrase condition="gshadow">,
|
|
|
|
and <filename>/etc/gshadow</filename></phrase>.
|
|
|
|
Every group can have
|
|
|
|
<phrase condition="gshadow">administrators,</phrase>
|
|
|
|
members and a password.
|
|
|
|
</para>
|
|
|
|
<para condition="gshadow">
|
2007-10-27 19:30:31 +05:30
|
|
|
System administrator can use the <option>-A</option> option to define
|
|
|
|
group administrator(s) and the <option>-M</option> option to define
|
2007-10-07 17:16:16 +05:30
|
|
|
members and has all rights of group administrators and members.
|
|
|
|
</para>
|
2007-10-27 19:30:31 +05:30
|
|
|
<para>
|
2007-11-23 03:06:38 +05:30
|
|
|
<command>gpasswd</command> called by
|
|
|
|
<phrase condition="gshadow">a group administrator</phrase>
|
|
|
|
<phrase condition="no_gshadow">a system administrator</phrase>
|
|
|
|
with a group name only prompts for the new password of the
|
|
|
|
<replaceable>group</replaceable>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
If a password is set the members can still <citerefentry>
|
2007-10-27 19:30:31 +05:30
|
|
|
<refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
|
|
|
|
</citerefentry> without a password, and non-members must supply the
|
|
|
|
password.
|
|
|
|
</para>
|
2007-10-07 17:17:11 +05:30
|
|
|
|
|
|
|
<refsect2 id='notes_about_group_passwords'>
|
|
|
|
<title>Notes about group passwords</title>
|
|
|
|
<para>
|
|
|
|
Group passwords are an inherent security problem since more than one
|
|
|
|
person is permitted to know the password. However, groups are a
|
|
|
|
useful tool for permitting co-operation between different users.
|
|
|
|
</para>
|
|
|
|
</refsect2>
|
2007-10-07 17:17:22 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='options'>
|
|
|
|
<title>OPTIONS</title>
|
2007-11-23 03:06:38 +05:30
|
|
|
<para condition="gshadow">
|
2007-10-27 19:30:31 +05:30
|
|
|
Except for the <option>-A</option> and <option>-M</option> options,
|
|
|
|
the options cannot be combined.
|
2007-11-23 03:06:38 +05:30
|
|
|
</para>
|
|
|
|
<para condition="no_gshadow">
|
|
|
|
The options cannot be combined.
|
|
|
|
</para>
|
|
|
|
<para>
|
2007-10-27 19:30:31 +05:30
|
|
|
The options which apply to the <command>gpasswd</command> command are:
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
2007-10-27 19:30:31 +05:30
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-a</option> <replaceable>user</replaceable>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Add the <replaceable>user</replaceable> to the named
|
|
|
|
<replaceable>group</replaceable>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-d</option> <replaceable>user</replaceable>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Remove the <replaceable>user</replaceable> from the named
|
|
|
|
<replaceable>group</replaceable>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-r</option>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Remove the password from the named <replaceable>group</replaceable>.
|
|
|
|
Only group members will be allowed to use
|
|
|
|
<command>newgrp</command> to join the named
|
|
|
|
<replaceable>group</replaceable>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-R</option>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Restrict the access to the named <replaceable>group</replaceable>.
|
|
|
|
Only group members will be allowed to use
|
|
|
|
<command>newgrp</command> to join the named
|
|
|
|
<replaceable>group</replaceable>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2007-11-23 03:06:38 +05:30
|
|
|
<variablelist remap='IP' condition="gshadow">
|
2007-10-27 19:30:31 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-A</option> <replaceable>user</replaceable>,...
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Set the list of administrative users.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
|
|
|
<option>-M</option> <replaceable>user</replaceable>,...
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Set the list of group members.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2007-10-07 17:16:16 +05:30
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-11-23 03:06:38 +05:30
|
|
|
<refsect1 id='caveats'>
|
|
|
|
<title>CAVEATS</title>
|
|
|
|
<para>
|
|
|
|
This tool only operates on the <filename>/etc/group</filename>
|
|
|
|
<phrase condition="gshadow"> and <filename>/etc/gshadow</filename>
|
|
|
|
files.</phrase>
|
|
|
|
<phrase condition="no_gshadow">file.</phrase>
|
|
|
|
Thus you cannot change any NIS or LDAP group. This must be performed
|
|
|
|
on the corresponding server.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='files'>
|
|
|
|
<title>FILES</title>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/etc/group</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:33 +05:30
|
|
|
<para>Group account information.</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
2007-11-23 03:06:38 +05:30
|
|
|
<varlistentry condition="gshadow">
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/etc/gshadow</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:33 +05:30
|
|
|
<para>Secure group account information.</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='see_also'>
|
|
|
|
<title>SEE ALSO</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>groupadd</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>groupdel</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>groupmod</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>grpck</refentrytitle><manvolnum>8</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>group</refentrytitle><manvolnum>5</manvolnum>
|
2007-11-23 03:06:38 +05:30
|
|
|
</citerefentry><phrase condition="gshadow">,
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>gshadow</refentrytitle><manvolnum>5</manvolnum>
|
|
|
|
</citerefentry></phrase>.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|