Document new mkgroup,mkpasswd options

This commit is contained in:
Joshua Daniel Franklin 2003-03-01 17:29:51 +00:00
parent f78765dadd
commit 34a50bf03f
1 changed files with 47 additions and 27 deletions

View File

@ -372,6 +372,7 @@ This program prints a /etc/group file to stdout
Options: Options:
-l,--local print local group information -l,--local print local group information
-c,--current print current group, if a domain account
-d,--domain print global group information from the domain -d,--domain print global group information from the domain
specified (or from the current domain if there is specified (or from the current domain if there is
no domain specified) no domain specified)
@ -389,14 +390,15 @@ One of `-l' or `-d' must be given on NT/W2K.
<para>The <command>mkgroup</command> program can be used to help <para>The <command>mkgroup</command> program can be used to help
configure your Windows system to be more UNIX-like by creating an configure your Windows system to be more UNIX-like by creating an
initial <filename>/etc/group</filename> substitute (some commands need this initial <filename>/etc/group</filename>.
file) from your system information. It only works on the NT series Its use is essential on the NT series (Windows NT, 2000, and XP) to
(Windows NT, 2000, and XP). <command>mkgroup</command> does not work on include Windows security information.
the Win9x series (Windows 95, 98, and Me) because they lack the security model It can also be used on the Win9x series (Windows 95, 98, and Me) to
to support it. To initially set up your machine, you'd do something like create a file with the correct format.
this:</para> To initially set up your machine if you are a local user, you'd do
something like this:</para>
<example><title>Setting up the groups file</title> <example><title>Setting up the groups file for local accounts</title>
<screen> <screen>
<prompt>$</prompt> <userinput>mkdir /etc</userinput> <prompt>$</prompt> <userinput>mkdir /etc</userinput>
<prompt>$</prompt> <userinput>mkgroup -l &gt; /etc/group</userinput> <prompt>$</prompt> <userinput>mkgroup -l &gt; /etc/group</userinput>
@ -408,16 +410,24 @@ information in your system, you'll need to regenerate the group file
for it to have the new information.</para> for it to have the new information.</para>
<para>The <literal>-d</literal> and <literal>-l</literal> options <para>The <literal>-d</literal> and <literal>-l</literal> options
allow you to specify where the information comes from, either the allow you to specify where the information comes from, the
local machine or the default (or given) domain. The <literal>-o</literal> local machine or the domain (default or given), or both.
option allows for special cases (such as multiple domains) where the GIDs With the <literal>-d</literal> option the program contacts the Domain
might match otherwise. The <literal>-s</literal> Controller, which my be unreachable or have restricted access.
An entry for the current domain user can then be created by using the
option <literal>-c</literal> together with <literal>-l</literal>,
but <literal>-c</literal> has no effect when used with <literal>-d</literal>.
The <literal>-o</literal> option allows for special cases
(such as multiple domains) where the GIDs might match otherwise.
The <literal>-s</literal>
option omits the NT Security Identifier (SID). For more information on option omits the NT Security Identifier (SID). For more information on
SIDs, see <Xref Linkend="ntsec"> in the Cygwin User's Guide. The SIDs, see <Xref Linkend="ntsec"> in the Cygwin User's Guide. The
<literal>-u</literal> option causes <command>mkgroup</command> to <literal>-u</literal> option causes <command>mkgroup</command> to
enumerate the users for each group, placing the group members in the enumerate the users for each group, placing the group members in the
gr_mem (last) field. Note that this can greatly increase gr_mem (last) field. Note that this can greatly increase
the time for <command>mkgroup</command> to run in a large domain. the time for <command>mkgroup</command> to run in a large domain.
Having gr_mem fields is helpful when a domain user logs in remotely
while the local machine is disconnected from the Domain Controller.
</para> </para>
</sect2> </sect2>
@ -431,6 +441,7 @@ This program prints a /etc/passwd file to stdout
Options: Options:
-l,--local print local user accounts -l,--local print local user accounts
-c,--current print current account, if a domain account
-d,--domain print domain accounts (from current domain -d,--domain print domain accounts (from current domain
if no domain specified) if no domain specified)
-o,--id-offset offset change the default offset (10000) added to uids -o,--id-offset offset change the default offset (10000) added to uids
@ -450,14 +461,17 @@ One of `-l', `-d' or `-g' must be given on NT/W2K.
<para>The <command>mkpasswd</command> program can be used to help <para>The <command>mkpasswd</command> program can be used to help
configure your Windows system to be more UNIX-like by creating an configure your Windows system to be more UNIX-like by creating an
initial <filename>/etc/passwd</filename> substitute (some commands initial <filename>/etc/passwd</filename> from your system information.
need this file) from your system information. It only works on the NT series Its use is essential on the NT series (Windows NT, 2000, and XP) to
(Windows NT, 2000, and XP). <command>mkpasswd</command> does not work on include Windows security information, but the actual passwords are
the Win9x series (Windows 95, 98, and Me) because they lack the security model determined by Windows, not by the content of <filename>/etc/passwd</filename>.
to support it. To initially set up your machine, you'd do something like On the Win9x series (Windows 95, 98, and Me) the password field must be
this:</para> replaced by the output of <userinput>crypt your_password</userinput>
if remote access is desired.
To initially set up your machine if you are a local user, you'd do
something like this:</para>
<example><title>Setting up the passwd file</title> <example><title>Setting up the passwd file for local accounts</title>
<screen> <screen>
<prompt>$</prompt> <userinput>mkdir /etc</userinput> <prompt>$</prompt> <userinput>mkdir /etc</userinput>
<prompt>$</prompt> <userinput>mkpasswd -l &gt; /etc/passwd</userinput> <prompt>$</prompt> <userinput>mkpasswd -l &gt; /etc/passwd</userinput>
@ -469,10 +483,16 @@ information in your system, you'll need to regenerate the passwd file
for it to have the new information.</para> for it to have the new information.</para>
<para>The <literal>-d</literal> and <literal>-l</literal> options <para>The <literal>-d</literal> and <literal>-l</literal> options
allow you to specify where the information comes from, either the allow you to specify where the information comes from, the
local machine or the default (or given) domain. The <literal>-o</literal> local machine or the domain (default or given), or both.
option allows for special cases (such as multiple domains) where the UIDs With the <literal>-d</literal> option the program contacts the Domain
might match otherwise. The <literal>-g</literal> option creates a local Controller, which my be unreachable or have restricted access.
An entry for the current domain user can then be created by using the
option <literal>-c</literal> together with <literal>-l</literal>,
but <literal>-c</literal> has no effect when used with <literal>-d</literal>.
The <literal>-o</literal> option allows for special cases
(such as multiple domains) where the UIDs might match otherwise.
The <literal>-g</literal> option creates a local
user that corresponds to each local group. This is because NT assigns groups user that corresponds to each local group. This is because NT assigns groups
file ownership. The <literal>-m</literal> option bypasses the current file ownership. The <literal>-m</literal> option bypasses the current
mount table so that, for example, two users who have a Windows home mount table so that, for example, two users who have a Windows home
@ -489,9 +509,9 @@ use a prefix other than <literal>/home/</literal>. For example, this command:
</example> </example>
would put local users' home directories in the Windows 'Profiles' directory. would put local users' home directories in the Windows 'Profiles' directory.
The <literal>-u</literal> option allows <command>mkpasswd</command> to On Win9x machines the <literal>-u</literal> option creates an entry for
search for a specific username, greatly reducing the amount of time it the specified user. On the NT series it restricts the output to that user,
takes in a large domain.</para> greatly reducing the amount of time it takes in a large domain.</para>
</sect2> </sect2>