user add
Add a LunaSH user. Adds a new administrative LunaSH (command line) user. This command is available only to the admin account.
LunaSH user names can be 1-32 characters in length, chosen from letters a-z, or A-Z, numbers 0-9, the dash, the dot, or the underscore:
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._
No spaces are allowed. User names cannot begin with a dot, dash, or number. As with any secure system, no two users (regardless of role) can have the same name.
This command prompts for a password, and summarizes the rules for new passwords. The newly-created administrative user cannot do anything in LunaSH until the admin user assigns it a role with the user role add command.
NOTE Previously, the user add command would create the new named user with default password PASSWORD.
For Luna Appliance Software 7.7.0 and newer, you are prompted to assign a real password, following standard password rules. The new user must be told that temporary new password. The user is prompted to change password when logging in for the first time.
User Privileges
Users with the following privileges can perform this command:
>Admin
Syntax
user add -username <username>
Argument(s) | Shortcut | Description |
---|---|---|
-username <username> | -u | Specifies the user name of the user to create. |
Example
lunash:>user list
Users Roles Status RADIUS
-------------------- -------- -------- --------
admin admin enabled no
audit audit disabled no
monitor monitor disabled no
operator operator disabled no
Command Result : 0 (Success)
lunash:>
lunash:>user add -username james
Changing password for user james.
You can now choose the new password.
The password must be at least 8 characters long.
The password must contain characters from at least 3 of the following 4 categories:
- Uppercase letters (A through Z)
- Lowercase letters (a through z)
- Numbers (0 through 9)
- Non-alphanumeric characters (such as !, $, #, %)
New password:
Retype new password:
passwd: all authentication tokens updated successfully.
Stopping sshd: [ OK ]
Starting sshd: [ OK ]
Command Result : 0 (Success)
lunash:>user list
Users Roles Status RADIUS
-------------------- -------- -------- --------
admin admin enabled no
audit audit disabled no
james none enabled no
monitor monitor disabled no
operator operator disabled no
Command Result : 0 (Success)
lunash:>
At this time, you must assign a role to the new user with the user role command, and then convey to that person their login username and the temporary password that you have just created for them.