Interesting script to manage users in Linux

  

Our reader and friend Alexander Mayor He sent us this interesting script to manage users easily. Yes, all of this can be done using System> Administration> Users and Groups. However, some nostalgic for the terminal or those who use distros in which that option is not available, will greatly appreciate the contribution. 🙂


This script allows:

  • Create users.  
  • Create groups.
  • Add users to a group.
  • Delete users or groups.
  • Remove a user from a group.
  • List users in a group

A record of all actions are stored in a log that is displayed at the end of the script, which is then cleared.

Source: Bash YC Programming


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Gaspar Fernandez said

    Interesting ... I saw it a few weeks ago in a MuyLinux comment ... 🙂