Bright:Add user cmd

From Define Wiki
Revision as of 09:07, 22 October 2013 by David (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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*]%