useradd
Note: Always enclose arguments containing spaces in quotes, or the command will not execute successfully.
Example: If the folder Program Files is included in a path statement as an argument, the entire path must be enclosed by quotes.
The useradd command allows you to add a new user. The user name is a required parameter.
SACmd useradd user/group name [-d domainname | -p Windowspassword
|-f fullname | -g Y|N | -r "Y" or "N" or "R" |-s security_profile_name
useradd -options
Option |
Description |
---|---|
-d domainname |
Specifies the user domain. |
-p Windows/FTP/ OS400 password |
Specifies the Windows/FTP/OS400 password for the new user. |
-f fullname |
The user’s full name. If omitted, this defaults to the user/group name. |
-g Y|N |
Specifies whether this user is a group (Y) or a user (N). If unspecified this defaults to user. |
-r Y|N|R |
Specifies what type of user.
|
-s security_profile_name |
Specifies the name of the security profile for the user. If omitted; this defaults to the Operator profile. |
Operation
You can add a new user only if you have the required security privileges for adding users.