2007-10-07 17:16:16 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-10-11 17:14:43 +05:30
|
|
|
<!--
|
|
|
|
Copyright (c) 1996 , Rafal Maszkowski
|
|
|
|
Copyright (c) 2007 - 2008, Nicolas François
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
|
modification, are permitted provided that the following conditions
|
|
|
|
are met:
|
|
|
|
1. Redistributions of source code must retain the above copyright
|
|
|
|
notice, this list of conditions and the following disclaimer.
|
|
|
|
2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
notice, this list of conditions and the following disclaimer in the
|
|
|
|
documentation and/or other materials provided with the distribution.
|
|
|
|
3. The name of the copyright holders or contributors may not be used to
|
|
|
|
endorse or promote products derived from this software without
|
|
|
|
specific prior written permission.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
|
|
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
-->
|
* man/chfn.1.xml: Uses CHFN_AUTH, CHFN_RESTRICT, LOGIN_STRING.
* man/chgpasswd.8.xml: Uses ENCRYPT_METHOD, MAX_MEMBERS_PER_GROUP,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS (SHA_CRYPT_MAX_ROUNDS).
* man/chpasswd.8.xml: Switch to using entities for ENCRYPT_METHOD,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS (SHA_CRYPT_MAX_ROUNDS).
* man/chsh.1.xml: Uses CHSH_AUTH, LOGIN_STRING.
* man/expiry.1.xml: Does not use any login.defs parameter.
* man/gpasswd.1.xml: Uses ENCRYPT_METHOD, MAX_MEMBERS_PER_GROUP,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS.
* man/login.defs.5.xml: Added CHSH_AUTH.
* man/login.defs.5.xml: Cross reference -> cross references.
* man/login.defs.5.xml: chfn only uses CHFN_AUTH when no_pam.
* man/login.defs.5.xml: chsh uses CHSH_AUTH, not CHFN_AUTH.
* man/login.defs.d/CHSH_AUTH.xml: Added.
* man/login.defs.5.xml: chsh uses parameters only when no_pam.
* man/login.defs.5.xml: expiry does not use CONSOLE_GROUPS, even
if linked in the binary.
* man/newusers.8.xml: Uses ENCRYPT_METHOD, MAX_MEMBERS_PER_GROUP,
MD5_CRYPT_ENAB, PASS_MAX_DAYS, PASS_MIN_DAYS, PASS_WARN_AGE,
SHA_CRYPT_MIN_ROUNDS, UMASK.
2007-11-27 04:57:56 +05:30
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY ENCRYPT_METHOD SYSTEM "login.defs.d/ENCRYPT_METHOD.xml">
|
|
|
|
<!ENTITY MAX_MEMBERS_PER_GROUP SYSTEM "login.defs.d/MAX_MEMBERS_PER_GROUP.xml">
|
|
|
|
<!ENTITY MD5_CRYPT_ENAB SYSTEM "login.defs.d/MD5_CRYPT_ENAB.xml">
|
|
|
|
<!ENTITY SHA_CRYPT_MIN_ROUNDS SYSTEM "login.defs.d/SHA_CRYPT_MIN_ROUNDS.xml">
|
|
|
|
]>
|
|
|
|
|
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">
|
2009-05-21 19:24:45 +05:30
|
|
|
System administrators can use the <option>-A</option> option to define
|
2007-10-27 19:30:31 +05:30
|
|
|
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>
|
2009-05-21 19:24:45 +05:30
|
|
|
If a password is set the members can still use <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>
|
2008-08-22 07:58:15 +05:30
|
|
|
<option>-a</option>, <option>--add</option> <replaceable>user</replaceable>
|
2007-10-27 19:30:31 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Add the <replaceable>user</replaceable> to the named
|
|
|
|
<replaceable>group</replaceable>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2008-08-22 07:58:15 +05:30
|
|
|
<option>-d</option>, <option>--delete</option> <replaceable>user</replaceable>
|
2007-10-27 19:30:31 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Remove the <replaceable>user</replaceable> from the named
|
|
|
|
<replaceable>group</replaceable>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2008-08-22 07:58:15 +05:30
|
|
|
<option>-r</option>, <option>--remove-password</option>
|
2007-10-27 19:30:31 +05:30
|
|
|
</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>
|
2008-08-22 07:58:15 +05:30
|
|
|
<option>-R</option>, <option>--restrict</option>
|
2007-10-27 19:30:31 +05:30
|
|
|
</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>
|
2008-08-22 07:58:15 +05:30
|
|
|
<option>-A</option>, <option>--administrators</option> <replaceable>user</replaceable>,...
|
2007-10-27 19:30:31 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Set the list of administrative users.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2008-08-22 07:58:15 +05:30
|
|
|
<option>-M</option>, <option>--members</option> <replaceable>user</replaceable>,...
|
2007-10-27 19:30:31 +05:30
|
|
|
</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>
|
|
|
|
|
* man/chfn.1.xml: Uses CHFN_AUTH, CHFN_RESTRICT, LOGIN_STRING.
* man/chgpasswd.8.xml: Uses ENCRYPT_METHOD, MAX_MEMBERS_PER_GROUP,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS (SHA_CRYPT_MAX_ROUNDS).
* man/chpasswd.8.xml: Switch to using entities for ENCRYPT_METHOD,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS (SHA_CRYPT_MAX_ROUNDS).
* man/chsh.1.xml: Uses CHSH_AUTH, LOGIN_STRING.
* man/expiry.1.xml: Does not use any login.defs parameter.
* man/gpasswd.1.xml: Uses ENCRYPT_METHOD, MAX_MEMBERS_PER_GROUP,
MD5_CRYPT_ENAB, SHA_CRYPT_MIN_ROUNDS.
* man/login.defs.5.xml: Added CHSH_AUTH.
* man/login.defs.5.xml: Cross reference -> cross references.
* man/login.defs.5.xml: chfn only uses CHFN_AUTH when no_pam.
* man/login.defs.5.xml: chsh uses CHSH_AUTH, not CHFN_AUTH.
* man/login.defs.d/CHSH_AUTH.xml: Added.
* man/login.defs.5.xml: chsh uses parameters only when no_pam.
* man/login.defs.5.xml: expiry does not use CONSOLE_GROUPS, even
if linked in the binary.
* man/newusers.8.xml: Uses ENCRYPT_METHOD, MAX_MEMBERS_PER_GROUP,
MD5_CRYPT_ENAB, PASS_MAX_DAYS, PASS_MIN_DAYS, PASS_WARN_AGE,
SHA_CRYPT_MIN_ROUNDS, UMASK.
2007-11-27 04:57:56 +05:30
|
|
|
<refsect1 id='configuration'>
|
|
|
|
<title>CONFIGURATION</title>
|
|
|
|
<para>
|
|
|
|
The following configuration variables in
|
|
|
|
<filename>/etc/login.defs</filename> change the behavior of this
|
|
|
|
tool:
|
|
|
|
</para>
|
|
|
|
<variablelist>
|
|
|
|
&ENCRYPT_METHOD;
|
|
|
|
&MAX_MEMBERS_PER_GROUP;
|
|
|
|
&MD5_CRYPT_ENAB;
|
|
|
|
&SHA_CRYPT_MIN_ROUNDS; <!--This also document SHA_CRYPT_MAX_ROUNDS-->
|
|
|
|
</variablelist>
|
|
|
|
</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>
|