Web hosting billing - 144 Part II . Running the Show Table
144 Part II . Running the Show Table 4-2 (continued) Option Description -f -1 Set 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 Set the primary group (as listed in the /etc/group file) the new user will be in. Replace group with the group name (-g wheel). -G grouplist Add the new user to the supplied comma-separated list of groups (-G wheel,sales,tech,lunch). -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). -u user_id Specify the user ID number for the account (-u 474). Without the -u option, the default behavior is to automatically assign the next available number. Replace user_id with the ID number (-u). For example, let s create an account for a new user named Mary Smith with a login name of mary. First, log in as root, and then type the following command: # useradd -c Mary Smith mary
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision j2ee hosting services