Thursday, May 7, 2009

AIX - User Management - Change User

AIX - User Management - Change User

Using chuser command we can change user properties, i.e. user home directory, shell group, etc. except password

Whenever you create a user that user home directory by default created in /home file system, and default group is staff.

If we want to change the Test user group to system, then your command will be.

#lsuser Test (it will show Test user properties including group information)

#chuser pgrp=system Test (now Test user is assigned to primary group system and secondary group is assigned to staff)

#lsuser Test (It will list modified Test properties, group is system, staff)

Like this we can change all the user properties

AIX - User Management - List User

AIX - User Management - List User

Using lsuser command we can list the user properties, i.e. user home directory, shell, group, etc. except password

#lsuser all (It will list all the user information’s except password)

#lsuser Test (It will list only Test user information’s except password)

AIX - User Management - Create User

AIX - User Management - Create User

Using mkuser command we can create a new user, If you want to create new user Test,

#mkuser Test

After this command execution, Test home directory created in /home/Test/
Test user configuration details stored in /etc/passwd

Now you can login the terminal using Test user name without password.

Then you have to set the password for Test user using command passwd

#passwd Test
Enter new password: ******
Confirm password again: ******

After this command execution password assigned to Test user and Test user password configuration entry added in /etc/security/passwd.

NOTE: user configuration data stored in /usr/lib/security/mkuser.sys

Whenever login the server that last login information’s stored in /etc/security/lastlog file.

AIX - User and Group Management

AIX - User and Group Management

In user management, we can perform the below operations:

1. Create user
2. List user
3. Change user
4. Remove user
5. Set password for users