How to add a group in Linux

How to add a group in Linux

Into this tutorial we will learn how to add group in Linux using command line mode with different options and commands.

Groups

  •             Users are assigned to groups with unique group ID numbers (the GID)
  •             The group name and GID are stored in /etc/group
  •             Each user is given their own private group
  •             They can also be added to their groups to gain additional access
  •             All users in a group can share files that belong to the group

How to set expiry date for user in Linux

How to set expiry date for user in linux

In Previous tutorial we learn about how to add a new  user and how to set passwd to user in linux now we will learn about changing the password parameters in linux.

For changing of the password parameters and set expiry date you need to use the chage command. It will display password expiry information as well as changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his or her password.