]> granicus.if.org Git - shadow/commitdiff
Document all gpasswd.1 options separately. This clarify the gpasswd.1
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 27 Oct 2007 14:00:31 +0000 (14:00 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 27 Oct 2007 14:00:31 +0000 (14:00 +0000)
manpages (reported in debian bug #445480).

ChangeLog
man/gpasswd.1.xml

index 3b1ac199ebbc52c20dafc1b938eb2e138f61b13b..2ba088c0c5ea6e5461c07c4025df187bac7006b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-27  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * man/gpasswd.1.xml: Describe the options separately in the
+       OPTIONS section. Simplify the synopsis.
+
 2007-10-27  Nicolas François  <nicolas.francois@centraliens.net>
 
        * README, po/Makevars: Update contact information.
index b4caa6d3cb817413200ff2fd9a9e773c1dbbfbc8..055c7cb81977b0e8af6e0cfa35f2cacb6e0ba75f 100644 (file)
   <refsynopsisdiv id='synopsis'>
     <cmdsynopsis>
       <command>gpasswd</command>
+      <arg choice='opt'>
+       <replaceable>option</replaceable>
+      </arg>
       <arg choice='plain'>
        <replaceable>group</replaceable>
       </arg>
     </cmdsynopsis>
-    <cmdsynopsis>
-      <command>gpasswd</command>
-      <arg choice='plain'>-a <replaceable>user</replaceable></arg>
-      <arg choice='plain'><replaceable>group</replaceable></arg>
-    </cmdsynopsis>
-    <cmdsynopsis>
-      <command>gpasswd</command>
-      <arg choice='plain'>-d <replaceable>user</replaceable></arg>
-      <arg choice='plain'><replaceable>group</replaceable></arg>
-    </cmdsynopsis>
-    <cmdsynopsis>
-      <command>gpasswd</command>
-      <arg choice='plain'>-R <replaceable>group</replaceable></arg>
-    </cmdsynopsis>
-    <cmdsynopsis>
-      <command>gpasswd</command>
-      <arg choice='plain'>-r <replaceable>group</replaceable></arg>
-    </cmdsynopsis>
-    <cmdsynopsis>
-      <command>gpasswd</command>
-      <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>
 
   <refsect1 id='description'>
       <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
+      System administrator can use the <option>-A</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.
     </para>
+    <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>
 
     <refsect2 id='notes_about_group_passwords'>
       <title>Notes about group passwords</title>
   <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
-      to the group through <command>newgrp</command> command (however
-      members will still be able to switch to this group).
-    </para>
-
-    <para>
-      <command>gpasswd</command> called by a group administrator with group
-      name only prompts for the group password. If password is set the
-      members can still <citerefentry>
-      <refentrytitle>newgrp</refentrytitle><manvolnum>1</manvolnum>
-      </citerefentry> without a password, non-members must supply the
-      password.
+      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:
     </para>
+    <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>
   </refsect1>
 
   <refsect1 id='files'>