Difference between revisions of "Bright:Add user cmd"
Jump to navigation
Jump to search
(Created page with "== Add a User == <syntaxhighlight> cmsh user add user <username> </syntaxhighlight>") |
|||
| Line 1: | Line 1: | ||
== Add a User == | == Add a User == | ||
| + | |||
| + | All users are created in a local LDAP database. (not in /etc/passwd or /etc/group) | ||
<syntaxhighlight> | <syntaxhighlight> | ||
| − | cmsh | + | [root@brighthead ~]# cmsh |
| − | user | + | [brighthead]% user |
| − | add user < | + | [brighthead->user]% add user david |
| + | [brighthead->user*[david*]]% set password | ||
| + | enter new password: | ||
| + | retype new password: | ||
| + | [brighthead->user*[david*]]% commit | ||
| + | [brighthead->user[david]]% quit | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | == View User Details == | ||
| + | <syntaxhighlight> | ||
| + | [brighthead->user]% show user david | ||
| + | Parameter Value | ||
| + | ------------------------------ ------------------------------------------------ | ||
| + | Common name david | ||
| + | Expiration date 2038/1/1 | ||
| + | Group ID 1001 | ||
| + | Home directory /home/david | ||
| + | Inactive 0 | ||
| + | Last change 2013/10/21 | ||
| + | Login shell /bin/bash | ||
| + | Password ********* | ||
| + | Profile | ||
| + | Revision | ||
| + | Shadow max 999999 | ||
| + | Shadow min 0 | ||
| + | Shadow warning 7 | ||
| + | Sur name david | ||
| + | User ID 1001 | ||
| + | User name david | ||
| + | email | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 09:06, 22 October 2013
Add a User
All users are created in a local LDAP database. (not in /etc/passwd or /etc/group)
[root@brighthead ~]# cmsh
[brighthead]% user
[brighthead->user]% add user david
[brighthead->user*[david*]]% set password
enter new password:
retype new password:
[brighthead->user*[david*]]% commit
[brighthead->user[david]]% quitView User Details
[brighthead->user]% show user david
Parameter Value
------------------------------ ------------------------------------------------
Common name david
Expiration date 2038/1/1
Group ID 1001
Home directory /home/david
Inactive 0
Last change 2013/10/21
Login shell /bin/bash
Password *********
Profile
Revision
Shadow max 999999
Shadow min 0
Shadow warning 7
Sur name david
User ID 1001
User name david
email