Difference between revisions of "Bright:Add user cmd"

From Define Wiki
Jump to navigation Jump to search
(Created page with "== Add a User == <syntaxhighlight> cmsh user add user <username> </syntaxhighlight>")
 
 
(One intermediate revision by the same user not shown)
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 <username>
+
[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>
 +
 
 +
== Remove a User ==
 +
<syntaxhighlight>
 +
[bright61->user*[printer]]% use user maureen
 +
[bright61->user*[maureen]]% remove -r;  commit
 +
[bright61->user*]% !ls -d /home/*| grep maureen
 +
[bright61->user*]%
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 09:07, 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]]% quit

View 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

Remove a User

[bright61->user*[printer]]% use user maureen
[bright61->user*[maureen]]% remove -r;  commit
[bright61->user*]% !ls -d /home/*| grep maureen
[bright61->user*]%