1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry id="uss_bulk8">
4 <refentrytitle>uss bulk</refentrytitle>
5 <manvolnum>8</manvolnum>
8 <refname>uss bulk</refname>
9 <refpurpose>Executes multiple uss commands listed in a file</refpurpose>
12 <title>Synopsis</title>
13 <para><emphasis role="bold">uss bulk</emphasis> <emphasis role="bold">-file</emphasis> <<emphasis>bulk input file</emphasis>>
14 [<emphasis role="bold">-template</emphasis> <<emphasis>pathname of template file</emphasis>>] [<emphasis role="bold">-verbose</emphasis>]
15 [<emphasis role="bold">-cell</emphasis> <<emphasis>cell name</emphasis>>]
16 [<emphasis role="bold">-admin</emphasis> <<emphasis>administrator to authenticate</emphasis>>] [<emphasis role="bold">-dryrun</emphasis>]
17 [<emphasis role="bold">-skipauth</emphasis>] [<emphasis role="bold">-overwrite</emphasis>]
18 [<emphasis role="bold">-pwexpires</emphasis> <<emphasis>password expires in [0..254] days (0 =</emphasis> never)>>]
19 [<emphasis role="bold">-pipe</emphasis>] [<emphasis role="bold">-help</emphasis>]</para>
21 <para><emphasis role="bold">uss b</emphasis> <emphasis role="bold">-f</emphasis> <<emphasis>bulk input file</emphasis>> [<emphasis role="bold">-t</emphasis> <<emphasis>pathname of template file</emphasis>>]
22 [<emphasis role="bold">-v</emphasis>] [<emphasis role="bold">-c</emphasis> <<emphasis>cell name</emphasis>>]
23 [<emphasis role="bold">-a</emphasis> <<emphasis>administrator to authenticate</emphasis>>] [<emphasis role="bold">-d</emphasis>] [<emphasis role="bold">-s</emphasis>]
24 [<emphasis role="bold">-o</emphasis>] [<emphasis role="bold">-pw</emphasis> <<emphasis>password expires in [0..254] days (0 =</emphasis> never)>>]
25 [<emphasis role="bold">-pi</emphasis>] [<emphasis role="bold">-h</emphasis>]</para>
29 <title>Description</title>
30 <para>The <emphasis role="bold">uss bulk</emphasis> command executes the uss commands listed in the <emphasis>bulk
31 input file</emphasis> specified with the <emphasis role="bold">-file</emphasis> argument. If the bulk input file
32 includes <emphasis role="bold">add</emphasis> instructions that reference a template file, then the
33 <emphasis role="bold">-template</emphasis> argument is required.</para>
35 <para>To create a single account, use the <emphasis role="bold">uss add</emphasis> command. To delete one or
36 more accounts, use the <emphasis role="bold">uss delete</emphasis> command.</para>
40 <title>Options</title>
43 <term><emphasis role="bold">-file</emphasis> <<emphasis>bulk input file</emphasis>></term>
45 <para>Specifies the pathname of the bulk input file. Partial pathnames are
46 interpreted relative to the current working directory. For details on the
47 file's format, see <link linkend="uss_bulk5">uss_bulk(5)</link>.</para>
52 <term><emphasis role="bold">-template</emphasis> <<emphasis>pathname of template file</emphasis>></term>
54 <para>Specifies the pathname of the template file for any uss add commands that
55 appear in the bulk input file. Partial pathnames are interpreted relative
56 to the current working directory. For details on the file's format, see
57 <link linkend="uss5">uss(5)</link>.</para>
62 <term><emphasis role="bold">-verbose</emphasis></term>
64 <para>Produces on the standard output stream a detailed trace of the command's
65 execution. If this argument is omitted, only warnings and error messages
71 <term><emphasis role="bold">-cell</emphasis> <<emphasis>cell name</emphasis>></term>
73 <para>Specifies the cell in which to run the command. For more details, see
74 <link linkend="uss8">uss(8)</link>.</para>
79 <term><emphasis role="bold">-admin</emphasis> <<emphasis>administrator to authenticate</emphasis>></term>
81 <para>Specifies the AFS user name under which to establish authenticated
82 connections to the AFS server processes that maintain the various
83 components of a user account. For more details, see <link linkend="uss8">uss(8)</link>.</para>
88 <term><emphasis role="bold">-dryrun</emphasis></term>
90 <para>Reports actions that the command interpreter needs to perform while
91 executing the command, without actually performing them. For more details,
92 see <link linkend="uss8">uss(8)</link>.</para>
97 <term><emphasis role="bold">-skipauth</emphasis></term>
99 <para>Prevents authentication with the AFS Authentication Server, allowing a
100 site using Kerberos to substitute that form of authentication.</para>
105 <term><emphasis role="bold">-overwrite</emphasis></term>
107 <para>Overwrites any directories, files and links that exist in the file system
108 and for which there are also <computeroutput>D</computeroutput>, <computeroutput>E</computeroutput>, <computeroutput>F</computeroutput>, <computeroutput>L</computeroutput>, or <computeroutput>S</computeroutput> instructions
109 in a template file referenced by an <computeroutput>add</computeroutput> instruction in the bulk input
110 file. If this flag is omitted, the command interpreter prompts, once for
111 each <computeroutput>add</computeroutput> instruction in the bulk input file, for confirmation that it
112 should overwrite such elements. Do not include this flag if the bulk input
113 file does not contain <computeroutput>add</computeroutput> instructions.</para>
118 <term><emphasis role="bold">-pwexpires</emphasis> <<emphasis>password expiration</emphasis>></term>
120 <para>Sets the number of days after a user's password is changed that it remains
121 valid, for each user named by an <computeroutput>add</computeroutput> instruction in the bulk input
122 file. Provide an integer from the range <computeroutput>1</computeroutput> through <computeroutput>254</computeroutput> to specify the
123 number of days until expiration, or the value <computeroutput>0</computeroutput> to indicate that the
124 password never expires (the default).</para>
126 <para>When the password becomes invalid (expires), the user is unable to
127 authenticate, but has 30 more days in which to issue the <emphasis role="bold">kpasswd</emphasis>
128 command to change the password (after that, only an administrator can
134 <term><emphasis role="bold">-pipe</emphasis></term>
136 <para>Suppresses the Authentication Server's prompt for the password of the
137 issuer or the user named by the <emphasis role="bold">-admin</emphasis> argument (the Authentication
138 Server always separately authenticates the creator of an entry in the
139 Authentication Database). Instead, the command interpreter accepts the
140 password via the standard input stream, as piped in from another
141 program. This enables the <emphasis role="bold">uss bulk</emphasis> command to run as part of unattended
147 <term><emphasis role="bold">-help</emphasis></term>
149 <para>Prints the online help for this command. All other valid options are
157 <title>Examples</title>
158 <para>The following example command executes the instructions in the bulk input
159 file called <replaceable>new_students</replaceable>, which includes <computeroutput>add</computeroutput> instructions that refer
160 to the template file <replaceable>student.template</replaceable>. Both files reside in the current
161 working directory.</para>
164 % uss bulk new_students student.template
169 <title>Privilege Required</title>
170 <para>The issuer (or the user named by the <emphasis role="bold">-admin</emphasis> argument) must have the
171 privileges necessary to run the commands that correspond to instructions
172 in the bulk input file.</para>
176 <title>See Also</title>
177 <para><link linkend="uss5">uss(5)</link>,
178 <link linkend="uss_bulk5">uss_bulk(5)</link>,
179 <link linkend="uss8">uss(8)</link>,
180 <link linkend="uss_add8">uss_add(8)</link>,
181 <link linkend="uss_delete8">uss_delete(8)</link></para>
185 <title>Copyright</title>
186 <para>IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.</para>
188 <para>This documentation is covered by the IBM Public License Version 1.0. It was
189 converted from HTML to POD by software written by Chas Williams and Russ
190 Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.</para>