* configure.in: SHADOWGRP added to AM_CONDITIONAL for the
generation of manpages. * man/generate_translations.mak: Added pam/no_pam condition (like in man/Makefile.am). * man/Makefile.am, man/generate_translations.mak: Added gshadow/no_gshadow condition. * man/gpasswd.1.xml: Use the gshadow/no_gshadow condition to change the manpage depending on the shadow group support.
This commit is contained in:
parent
905596ced5
commit
b2c58c81ed
11
ChangeLog
11
ChangeLog
@ -1,3 +1,14 @@
|
|||||||
|
2007-11-22 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* configure.in: SHADOWGRP added to AM_CONDITIONAL for the
|
||||||
|
generation of manpages.
|
||||||
|
* man/generate_translations.mak: Added pam/no_pam condition (like
|
||||||
|
in man/Makefile.am).
|
||||||
|
* man/Makefile.am, man/generate_translations.mak: Added
|
||||||
|
gshadow/no_gshadow condition.
|
||||||
|
* man/gpasswd.1.xml: Use the gshadow/no_gshadow condition to
|
||||||
|
change the manpage depending on the shadow group support.
|
||||||
|
|
||||||
2007-11-22 Nicolas François <nicolas.francois@centraliens.net>
|
2007-11-22 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* po/ru.po: Updated to 399t. Thanks to Yuri Kozlov <kozlov.y@gmail.com>.
|
* po/ru.po: Updated to 399t. Thanks to Yuri Kozlov <kozlov.y@gmail.com>.
|
||||||
|
@ -240,6 +240,7 @@ AC_SEARCH_LIBS(gethostbyname, nsl)
|
|||||||
if test "$enable_shadowgrp" = "yes"; then
|
if test "$enable_shadowgrp" = "yes"; then
|
||||||
AC_DEFINE(SHADOWGRP, 1, [Define to support the shadow group file.])
|
AC_DEFINE(SHADOWGRP, 1, [Define to support the shadow group file.])
|
||||||
fi
|
fi
|
||||||
|
AM_CONDITIONAL(SHADOWGRP, test "x$enable_shadowgrp" = "xyes")
|
||||||
|
|
||||||
if test "$enable_man" = "yes"; then
|
if test "$enable_man" = "yes"; then
|
||||||
dnl
|
dnl
|
||||||
|
@ -119,10 +119,15 @@ PAM_COND=pam
|
|||||||
else
|
else
|
||||||
PAM_COND=no_pam
|
PAM_COND=no_pam
|
||||||
endif
|
endif
|
||||||
TUTU_COND=tutu
|
|
||||||
|
if SHADOWGRP
|
||||||
|
SHADOWGRP_COND=gshadow
|
||||||
|
else
|
||||||
|
SHADOWGRP_COND=no_gshadow
|
||||||
|
endif
|
||||||
|
|
||||||
%: %.xml
|
%: %.xml
|
||||||
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(TUTU_COND)" \
|
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND)" \
|
||||||
-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
|
-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
|
||||||
|
|
||||||
grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
|
grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
|
||||||
|
@ -6,8 +6,20 @@ LANG=$(notdir $(CURDIR))
|
|||||||
xml2po -l $(LANG) -p $(LANG).po -o $@ ../$@
|
xml2po -l $(LANG) -p $(LANG).po -o $@ ../$@
|
||||||
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
|
sed -i 's:\(^<refentry .*\)>:\1 lang="$(LANG)">:' $@
|
||||||
|
|
||||||
|
if USE_PAM
|
||||||
|
PAM_COND=pam
|
||||||
|
else
|
||||||
|
PAM_COND=no_pam
|
||||||
|
endif
|
||||||
|
if SHADOWGRP
|
||||||
|
SHADOWGRP_COND=gshadow
|
||||||
|
else
|
||||||
|
SHADOWGRP_COND=no_gshadow
|
||||||
|
endif
|
||||||
|
|
||||||
%: %.xml
|
%: %.xml
|
||||||
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
$(XSLTPROC) --stringparam profile.condition "$(PAM_COND);$(SHADOWGRP_COND)" \
|
||||||
|
-nonet http://docbook.sourceforge.net/release/xsl/current/manpages/profile-docbook.xsl $<
|
||||||
|
|
||||||
grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
|
grpconv.8 grpunconv.8 pwunconv.8: pwconv.8
|
||||||
|
|
||||||
|
@ -8,7 +8,12 @@
|
|||||||
</refmeta>
|
</refmeta>
|
||||||
<refnamediv id='name'>
|
<refnamediv id='name'>
|
||||||
<refname>gpasswd</refname>
|
<refname>gpasswd</refname>
|
||||||
<refpurpose>administer the <filename>/etc/group</filename> file</refpurpose>
|
<refpurpose>
|
||||||
|
administer the <filename>/etc/group</filename>
|
||||||
|
<phrase condition="gshadow">and <filename>/etc/gshadow</filename>
|
||||||
|
files</phrase>
|
||||||
|
<phrase condition="no_gshadow">file</phrase>
|
||||||
|
</refpurpose>
|
||||||
</refnamediv>
|
</refnamediv>
|
||||||
<!-- body begins here -->
|
<!-- body begins here -->
|
||||||
<refsynopsisdiv id='synopsis'>
|
<refsynopsisdiv id='synopsis'>
|
||||||
@ -26,18 +31,27 @@
|
|||||||
<refsect1 id='description'>
|
<refsect1 id='description'>
|
||||||
<title>DESCRIPTION</title>
|
<title>DESCRIPTION</title>
|
||||||
<para>
|
<para>
|
||||||
The <command>gpasswd</command> command is used to administer the
|
The <command>gpasswd</command> command is used to administer
|
||||||
<filename>/etc/group</filename> file (and
|
<filename>/etc/group</filename><phrase condition="gshadow">,
|
||||||
<filename>/etc/gshadow</filename> file if compiled with SHADOWGRP
|
and <filename>/etc/gshadow</filename></phrase>.
|
||||||
defined). Every group can have administrators, members and a password.
|
Every group can have
|
||||||
|
<phrase condition="gshadow">administrators,</phrase>
|
||||||
|
members and a password.
|
||||||
|
</para>
|
||||||
|
<para condition="gshadow">
|
||||||
System administrator can use the <option>-A</option> option to define
|
System administrator can use the <option>-A</option> option to define
|
||||||
group administrator(s) and the <option>-M</option> option to define
|
group administrator(s) and the <option>-M</option> option to define
|
||||||
members and has all rights of group administrators and members.
|
members and has all rights of group administrators and members.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
<command>gpasswd</command> called by a group administrator with a group
|
<command>gpasswd</command> called by
|
||||||
name only prompts for the group password. If a password is set the
|
<phrase condition="gshadow">a group administrator</phrase>
|
||||||
members can still <citerefentry>
|
<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>
|
||||||
<refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
|
<refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
|
||||||
</citerefentry> without a password, and non-members must supply the
|
</citerefentry> without a password, and non-members must supply the
|
||||||
password.
|
password.
|
||||||
@ -56,9 +70,14 @@
|
|||||||
|
|
||||||
<refsect1 id='options'>
|
<refsect1 id='options'>
|
||||||
<title>OPTIONS</title>
|
<title>OPTIONS</title>
|
||||||
<para>
|
<para condition="gshadow">
|
||||||
Except for the <option>-A</option> and <option>-M</option> options,
|
Except for the <option>-A</option> and <option>-M</option> options,
|
||||||
the options cannot be combined.
|
the options cannot be combined.
|
||||||
|
</para>
|
||||||
|
<para condition="no_gshadow">
|
||||||
|
The options cannot be combined.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
The options which apply to the <command>gpasswd</command> command are:
|
The options which apply to the <command>gpasswd</command> command are:
|
||||||
</para>
|
</para>
|
||||||
<variablelist remap='IP'>
|
<variablelist remap='IP'>
|
||||||
@ -117,7 +136,7 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
<variablelist remap='IP'>
|
<variablelist remap='IP' condition="gshadow">
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>-A</option> <replaceable>user</replaceable>,...
|
<option>-A</option> <replaceable>user</replaceable>,...
|
||||||
@ -143,6 +162,18 @@
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
<refsect1 id='files'>
|
<refsect1 id='files'>
|
||||||
<title>FILES</title>
|
<title>FILES</title>
|
||||||
<variablelist>
|
<variablelist>
|
||||||
@ -152,7 +183,7 @@
|
|||||||
<para>Group account information.</para>
|
<para>Group account information.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
<varlistentry>
|
<varlistentry condition="gshadow">
|
||||||
<term><filename>/etc/gshadow</filename></term>
|
<term><filename>/etc/gshadow</filename></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Secure group account information.</para>
|
<para>Secure group account information.</para>
|
||||||
@ -167,9 +198,6 @@
|
|||||||
<citerefentry>
|
<citerefentry>
|
||||||
<refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
|
<refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
|
||||||
</citerefentry>,
|
</citerefentry>,
|
||||||
<citerefentry>
|
|
||||||
<refentrytitle>gshadow</refentrytitle><manvolnum>5</manvolnum>
|
|
||||||
</citerefentry>,
|
|
||||||
<citerefentry>
|
<citerefentry>
|
||||||
<refentrytitle>groupadd</refentrytitle><manvolnum>8</manvolnum>
|
<refentrytitle>groupadd</refentrytitle><manvolnum>8</manvolnum>
|
||||||
</citerefentry>,
|
</citerefentry>,
|
||||||
@ -184,7 +212,10 @@
|
|||||||
</citerefentry>,
|
</citerefentry>,
|
||||||
<citerefentry>
|
<citerefentry>
|
||||||
<refentrytitle>group</refentrytitle><manvolnum>5</manvolnum>
|
<refentrytitle>group</refentrytitle><manvolnum>5</manvolnum>
|
||||||
</citerefentry>.
|
</citerefentry><phrase condition="gshadow">,
|
||||||
|
<citerefentry>
|
||||||
|
<refentrytitle>gshadow</refentrytitle><manvolnum>5</manvolnum>
|
||||||
|
</citerefentry></phrase>.
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
</refentry>
|
</refentry>
|
||||||
|
Loading…
Reference in New Issue
Block a user