-d home_dir Change the home directory to use for the account. The default is to name it the same
as the login name and to place it in /home. Replace home_dir with the directory
name to use (for example, -d /mnt/homes/jake).
154
Running the Show Part II
TABLE 4-4 (continued)
Option Description
-e expire_date Assign a new expiration date for the account in MM/DD/YYYY format. Replace
expire_date with a date you want to use (-e 05/06/2008).
-f -1 Change the number of days after a password expires until the account is permanently
disabled. The default, -1, disables the option. Setting this to 0 disables the account
immediately after the password has expired. Replace -1 with the number to use.
-g group Change the primary group (as listed in the /etc/group file) the user will be in.
Replace group with the group name (-g wheel).
-G grouplist Add the user to the supplied comma-separated list of groups (-G
wheel,sales,tech,lunch).
-l login_name Change the login name of the account.
-m Available only when -d is used, this causes the contents of the user??™s home directory
to be copied to the new directory.
-o Use only with -u uid to remove the restriction that UIDs must be unique.
-s shell Specify a different command shell to use for this account. Replace shell with the
command shell (-s bash).
Pages:
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365