148 Part II . Running the Show Table (Web server logs)
148 Part II . Running the Show Table 4-3 useradd Options for Changing User Defaults Options Description -b default_home Set the default directory in which user home directories are created. Replace default_home with the directory name to use (-b garage). Usually this is /home. -e default_expire_date Set the default expiration date on which the user account is disabled. The default_expire_date value should be replaced with a date in the form MM/DD/YYYY (-e 10/15/2007). -f default_inactive Set the number of days after a password has expired before the account is disabled. Replace default_ inactive with a number representing the number of days (-f 7). -g default_group Set the default group that new users will be placed in. Normally useradd creates a new group with the same name and ID number as the user. Replace default_ group with the group name to use (-g bears). -s default_shell Set the default shell for new users. 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 exist that are useful for working with user accounts, including usermod (to modify settings for an existing account) and userdel (to delete an existing user account).
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision servlet hosting services