User Management file / etc / passwd
Group management file / etc / group
1. Create a user
useradd
-d dir Specifies the user's home directory, dir must be an absolute path
-e expire as of the date specified account
-g group is a group designated primary account
-G group1, group2 ..... designated account of the subordinate group
-s shell 指定shell
-u uid specified user ID
Create a valid user account:
#useradd -e 0717210909 wanglin2 // create a user account expiration date of the deadline is at 21:09 on July 17, 2009, the user account will fail
#passwd wanglin2 // Create a password
2, using the SMIT tool Create an account
#smit user
3, delete users
userdel test // delete the test account, not delete the user's home directory
userdel -r test // delete the test user and delete the user's home directory
4, verify that the user account
Verify that the user account meets the system in a variety of specifications.
Usrck instruction using the following parameters:
-b
|
Users can not access the report and the reasons for the system. Used in conjunction with the -l
|
-l
|
Scan all users, or user parameters specified by the user. Used in conjunction with -b
|
-n
|
Report errors, but not fix
|
-p
|
Fix the error, but does not report
|
-t
|
Report an error, asking if you want to repair |
-Y
|
And fix the error report
|
#usrck -y ALL
5. Management Group (SMIT tool)
#smitty mkgroup
6, view the user information
#id test // Display user information
Who use instructions, parameters:
#who -b // check the time and date of the last system startup
#who -l Lists any login process //
7, a user account switch
Without switching environment variables
#su test
Switching the user with environment variables
#su - test
View su command operation log:
#cat / var / adm / sulog
8, associated with the user secure file
/ Etc / security / passwd // store the password for the user account
/ Etc / security / user // store user account information parameters
Extended information / etc / security / group // store group
/etc/security/login.cfg // store control information and user login authentication system configuration
/ Etc / security / limits // user restriction information system resources
Case / etc / security / lastlog // record last login system
9, pwdadm instruction
Managing user account password
Common parameters:
10, pwdck instruction
Verify the correctness of the local user account information
-n validation process but does not report errors corrected
-p validation process does not report a single error correction
-t report errors and asks if corrected
-y fix errors and reports
Verify that the specified user account:
#pwdck -n wl
#pwdck -y wl
Verify all accounts:
#pwdck -n ALL