From: nekral-guest Date: Thu, 22 Nov 2007 21:36:38 +0000 (+0000) Subject: * configure.in: SHADOWGRP added to AM_CONDITIONAL for the X-Git-Tag: 4.1.0~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2c58c81ed812f1324a83be81409ebfde0bd68ae;p=shadow * 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. --- diff --git a/ChangeLog b/ChangeLog index 125a3eda..1907f1f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2007-11-22 Nicolas François + + * 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 * po/ru.po: Updated to 399t. Thanks to Yuri Kozlov . diff --git a/configure.in b/configure.in index ad622e66..a25560d1 100644 --- a/configure.in +++ b/configure.in @@ -240,6 +240,7 @@ AC_SEARCH_LIBS(gethostbyname, nsl) if test "$enable_shadowgrp" = "yes"; then AC_DEFINE(SHADOWGRP, 1, [Define to support the shadow group file.]) fi +AM_CONDITIONAL(SHADOWGRP, test "x$enable_shadowgrp" = "xyes") if test "$enable_man" = "yes"; then dnl diff --git a/man/Makefile.am b/man/Makefile.am index e34657d6..256a55f5 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -119,10 +119,15 @@ PAM_COND=pam else PAM_COND=no_pam endif -TUTU_COND=tutu + +if SHADOWGRP +SHADOWGRP_COND=gshadow +else +SHADOWGRP_COND=no_gshadow +endif %: %.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 $< grpconv.8 grpunconv.8 pwunconv.8: pwconv.8 diff --git a/man/generate_translations.mak b/man/generate_translations.mak index 8976462e..ba5cff2f 100644 --- a/man/generate_translations.mak +++ b/man/generate_translations.mak @@ -6,8 +6,20 @@ LANG=$(notdir $(CURDIR)) xml2po -l $(LANG) -p $(LANG).po -o $@ ../$@ sed -i 's:\(^:\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 - $(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 diff --git a/man/gpasswd.1.xml b/man/gpasswd.1.xml index 9456c123..df6422ea 100644 --- a/man/gpasswd.1.xml +++ b/man/gpasswd.1.xml @@ -8,7 +8,12 @@ gpasswd - administer the /etc/group file + + administer the /etc/group + and /etc/gshadow + files + file + @@ -26,18 +31,27 @@ DESCRIPTION - The gpasswd command is used to administer the - /etc/group file (and - /etc/gshadow file if compiled with SHADOWGRP - defined). Every group can have administrators, members and a password. + The gpasswd command is used to administer + /etc/group, + and /etc/gshadow. + Every group can have + administrators, + members and a password. + + System administrator can use the option to define group administrator(s) and the option to define members and has all rights of group administrators and members. - gpasswd called by a group administrator with a group - name only prompts for the group password. If a password is set the - members can still + gpasswd called by + a group administrator + a system administrator + with a group name only prompts for the new password of the + group. + + + If a password is set the members can still newgrp1 without a password, and non-members must supply the password. @@ -56,9 +70,14 @@ OPTIONS - + Except for the and options, the options cannot be combined. + + + The options cannot be combined. + + The options which apply to the gpasswd command are: @@ -117,7 +136,7 @@ - + user,... @@ -143,6 +162,18 @@ + + CAVEATS + + This tool only operates on the /etc/group + and /etc/gshadow + files. + file. + Thus you cannot change any NIS or LDAP group. This must be performed + on the corresponding server. + + + FILES @@ -152,7 +183,7 @@ Group account information. - + /etc/gshadow Secure group account information. @@ -167,9 +198,6 @@ newgrp1 , - - gshadow5 - , groupadd8 , @@ -184,7 +212,10 @@ , group5 - . + , + + gshadow5 + .