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-10-07 20:06:51 +05:30
|
|
|
<!-- $Id: gpasswd.1.xml,v 1.21 2006/10/28 12:29:04 kloczek Exp $ -->
|
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-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>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>gpasswd</command>
|
2007-10-07 17:16:16 +05:30
|
|
|
<arg choice='plain'>-a <replaceable>user</replaceable></arg>
|
|
|
|
<arg choice='plain'><replaceable>group</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>gpasswd</command>
|
2007-10-07 17:16:16 +05:30
|
|
|
<arg choice='plain'>-d <replaceable>user</replaceable></arg>
|
|
|
|
<arg choice='plain'><replaceable>group</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>gpasswd</command>
|
2007-10-07 17:16:16 +05:30
|
|
|
<arg choice='plain'>-R <replaceable>group</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
|
|
|
<command>gpasswd</command>
|
|
|
|
<arg choice='plain'>-r <replaceable>group</replaceable></arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>gpasswd</command>
|
2007-10-07 17:16:16 +05:30
|
|
|
<arg choice='opt' rep='repeat'>-A <replaceable>user,</replaceable></arg>
|
|
|
|
<arg choice='opt' rep='repeat'>-M <replaceable>user,</replaceable></arg>
|
|
|
|
<arg choice='plain'><replaceable>group</replaceable></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.
|
|
|
|
System administrator can use <option>-A</option> option to define
|
|
|
|
group administrator(s) and <option>-M</option> option to define
|
|
|
|
members and has all rights of group administrators and members.
|
|
|
|
</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>
|
|
|
|
Group administrator can add and delete users using <option>-a</option>
|
|
|
|
and <option>-d</option> options respectively. Administrators can use
|
|
|
|
<option>-r</option> option to remove group password. When no password
|
|
|
|
is set only group members can use <command>newgrp</command> to join
|
|
|
|
the group. Option <option>-R</option> disables access via a password
|
2007-10-07 17:16:25 +05:30
|
|
|
to the group through <command>newgrp</command> command (however
|
2007-10-07 17:16:16 +05:30
|
|
|
members will still be able to switch to this group).
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>gpasswd</command> called by a group administrator with group
|
|
|
|
name only prompts for the group password. If password is set the
|
2007-10-07 17:16:16 +05:30
|
|
|
members can still <citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
|
|
|
|
</citerefentry> without a password, non-members must supply the
|
|
|
|
password.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</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>
|