Normally this is /bin/bash. Replace
default_shell with the full path to the shell that you want as the
default for new users (-s /bin/ash).
To set any of the defaults, give the -D option first, and then add the defaults you want to set. For
example, to set the default home directory location to /home/everyone and the default shell to
/bin/tcsh, type the following:
# useradd -D -b /home/everyone -s /bin/tcsh
Besides setting up user defaults, an administrator can create default files that are copied to each
user??™s home directory for use. These files can include login scripts and shell configuration files
(such as .bashrc).
Other commands that are useful for working with user accounts include usermod (to modify settings
for an existing account) and userdel (to delete an existing user account).
Modifying Users with usermod
The usermod command provides a simple and straightforward method for changing account
parameters. Many of the options available with it mirror those found in useradd. Table 4-4 lists
the options that can be used with this command.
TABLE 4-4
usermod Options
Option Description
-c username Change the description associated with the user account. Replace username with
the name of the user account (-c jake). Use quotes to enter multiple words (-c
???jake jackson???).
Pages:
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364