-k skel_dir Set the skeleton directory containing initial configuration files and login scripts
that should be copied to a new user??™s home directory. This parameter can be
used only in conjunction with the -m option. Replace skel_dir with the
directory name to use. (Without this option, the /etc/skel directory is used.)
-m Automatically create the user??™s home directory and copy the files in the
skeleton directory (/etc/skel) to it.
-M Do not create the new user??™s home directory, even if the default behavior is set
to create it.
-n Turn off the default behavior of creating a new group that matches the name
and user ID of the new user. This option is available with Red Hat Linux
systems. Other Linux systems often assign a new user to the group named
users instead.
-o Use with -u uid to create a user account that has the same UID as another
username. (This effectively lets you have two different usernames with
authority over the same set of files and directories.)
-p passwd Enter a password for the account you are adding. This must be an encrypted
password. Instead of adding an encrypted password here, you can simply use
the passwd user command later to add a password for user.
-s shell Specify the command shell to use for this account. Replace shell with the
command shell (-s bash).
Pages:
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357