Friday, May 8, 2009

AIX - Group Management - List Group

AIX - Group Management - List Group

Using lsgroup command we can list group information’s. If we want to list oracle group information

#lsgroup oracle (it will display the oracle group information’s, gname, gid, members)

#lsgroup all (It will list all group details)

AIX - Group Management - Create Group

AIX - Group Management - Create Group

Using mkgroup command we can create the group, If you want to create oracle group.

#mkgroup oracle

After this command execution new oracle group has created and this group is added in /etc/groups file.

AIX - Group Management

AIX - Group Management

In group management the below operations can be performed.

1. Create group
2. List group
3. Change group
4. Remove group

AIX - User Management - Set Password

AIX - User Management - Set Password

Using passwd command we can set password for user and root

#passwd Test

Enter new password: *****
Confirm password: *****

We are changing password for Test user from root path, it will not ask existing password for Test user, because root is administrator login.

If you are changing password from Test login, it will ask existing password, because user should know the existing password before changing the new password. Otherwise any user can change the Test user password. This not recommended security.

$pwd
/home/Test
$passwd Test
Enter the old password: *****
Enter the new password: *****
Confirm password again: *****

NOTE: If you are forgotten root password that time what you will do.

Answer: boot the server with BOS Cd and go to maintenance mode, access the rootvg, then you can change the password for root.

Like this we can change the password for users.

AIX - User Management - Remove User

AIX - User Management - Remove User

Using rmuser command we can remove the user, If you want to remove Test user

#rmuser Test

After this command execution, Test user will be deleted.