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-10-07 17:17:33 +05:30
|
|
|
<refpurpose>administer the <filename>/etc/group</filename> file</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-10-07 20:06:51 +05:30
|
|
|
The <command>gpasswd</command> command is used to administer the
|
2007-10-07 17:16:16 +05:30
|
|
|
<filename>/etc/group</filename> file (and
|
|
|
|
<filename>/etc/gshadow</filename> file if compiled with SHADOWGRP
|
|
|
|
defined). Every group can have administrators, members and a password.
|
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>
|
|
|
|
<command>gpasswd</command> called by a group administrator with a group
|
|
|
|
name only prompts for the group password. If a password is set the
|
|
|
|
members can still <citerefentry>
|
|
|
|
<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>
|
|
|
|
<para>
|
2007-10-27 19:30:31 +05:30
|
|
|
Except for the <option>-A</option> and <option>-M</option> options,
|
|
|
|
the options cannot be combined.
|
|
|
|
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>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<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-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>
|
|
|
|
<varlistentry>
|
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>gshadow</refentrytitle><manvolnum>5</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>
|
|
|
|
</citerefentry>.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|