Showing posts with label User Administration. Show all posts
Showing posts with label User Administration. Show all posts

Tuesday, January 15, 2013

Control AIX group





To control and manage AIX groups, we chgroup command.

Right away, I am going to give you some examples so you totally understand how to manage and control your AIX groups!

-To add ahmed and amer to the oracle group, which currently only has Mohamed as a member, type:
#chgroup users=ahmed,mahmoud,amer oracle
 


-To remove ahmed from the oracle group, type:
#chgroup users=mahmoud,amer oracle

Display group attributes





The lsgroup command displays group attributes. You can use this command to list all the system groups and their attributes or you can list all the attributes of individual groups.

1st of all, you don`t know how many groups are existing in a machine and what are the names of these groups. To get all these information ,you have to methods to use:

   1)    #lsuser ALL 


 
2)    # cat /etc/group



 
Now, you know ALL the groups on this systems and you are curious to know more information about a specific group and which users are members of this group…..etc! 

- To display the attributes of the staff group,type:
#lsuer staff


Displaying group attruibuites is an easy-job,dosn`t it?! ;-)


 


Remove a user account





In a nutshell, removing a user is done by using the command rmuser

-To remove the user amer from your system:
#rmuser amer

-To remove the user account amer and all its attributes, including passwords and other user authentication information in the /etc/security/passwd file, type:
#rmuser  -p  amer

Additionally, let me tell you about how to use simtty to remove users:
#smitty rmuser