Close Menu

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Introduction to Server-Side Attacks: Information Gathering

    April 9, 2025

    The rise of AI and 12 in-demand professions in 2025

    April 7, 2025

    How to Stay Safe from Freelancing Scams and Fraud?

    April 7, 2025
    Facebook X (Twitter) Instagram
    Trending
    • Introduction to Server-Side Attacks: Information Gathering
    • The rise of AI and 12 in-demand professions in 2025
    • How to Stay Safe from Freelancing Scams and Fraud?
    • 2025: The Best Uses of AI Tools for Your Career
    • How promising is a coding career in the age of AI?
    • Easy Start, Smart Income: Virtual Assistant
    • How to Secure CISCO Network Devices
    • Difference Between Cracked Windows And Original Windows
    Facebook X (Twitter) Instagram YouTube
    Tech Buzz InsiderTech Buzz Insider
    Demo
    • Home
    • Linux Basics
    • Defensive Security
    • Offensive Security
    • Hacking Zone
    • Security Tool
    • Blog
    Tech Buzz InsiderTech Buzz Insider
    Home ยป Comparing User and Group Administration in Linux and Windows -04
    Featured

    Comparing User and Group Administration in Linux and Windows -04

    Tech Buzz InsiderBy Tech Buzz InsiderJuly 9, 2024Updated:July 9, 2024No Comments4 Mins Read34 Views
    Facebook Twitter Pinterest LinkedIn Telegram Tumblr Email
    Share
    Facebook Twitter LinkedIn Pinterest Email

    If you want to work as a system administrator, you need to know how to manage users and group administration. Both Linux and Windows have their distinct tools and processes for managing users and groups. In this blog, we will be highlighting the features and methods of managing users and groups both in Windows and Linux servers.

    Toggle
    • Linux: User and Group Administration
      • Understanding the โ€œ/etc/passwdโ€ file:
      • Common User Management Commands
      • Common Group Management Commands
      • User and Group Information Files
      • Working with Sudo
    • Windows: User and Group Administration:
      • User Management
      • Group Management
      • Tools for User and Group Management
    • Conclusion

    Linux: User and Group Administration

    As a system administrator, you need to know the command line tools for managing users and groups. In the below article, we will be discussing the key commands that need to be learned for the basic operation of managing users and groups.

    Understanding the โ€œ/etc/passwdโ€ file:

    The /etc/passwd file contains essential information about user accounts. Each line represents a user, with fields separated by colons (:):

    1. Username
    2. Password Info (stored in /etc/shadow)
    3. User ID (UID)
    4. Group ID (GID)
    5. User’s Comment
    6. Home Directory
    7. Shell

    For example:

    tarek:x:1001:1001::/home/tarek:/bin/bash

    Common User Management Commands

    1. Adding Users:
    useradd tarek
    tail /etc/passwd

    Setting Passwords:

    passwd mahfuz
    grep 'mahfuz\|murshid' /etc/shadow

    Modifying Users:

    usermod -G trainer tarek  # Modify existing user
    useradd -G trainer belal  # Add new user to group
    usermod -d /newhome/roman roman  # Change home directory
    usermod -s /sbin/nologin mahfuz  # Change user shell

    Deleting Users:

    userdel tarek
    userdel -r tarek  # Delete user with home directory

    Common Group Management Commands

    Adding Groups:

    groupadd trainer
    groupadd staff

    Modifying Groups:

    gpasswd -M mahfuz,murshid trainer  # Add multiple users to a group
    groupmod -n faculty trainer  # Change group name

    Deleting Groups:

    groupdel staff

    User and Group Information Files

    • /etc/passwd: Contains user account information.
    • /etc/shadow: Stores secure user password data.
    • /etc/group: Holds group information.
    • /etc/gshadow: Secure group password data.

    Working with Sudo

    The sudo command allows permitted users to execute commands as the superuser or another user, as specified by the security policy in /etc/sudoers:

    visudo

    Example configuration for user rumon to run all commands:

    rumon ALL=(ALL) ALL

    Windows: User and Group Administration:

    The best facility that Windows provides is the graphical interface and managing everything using the graphical control panel. Below we will be discussing a few key aspects and tools to manage Users and Groups in Windows both using a graphical view and command prompt or PowerShell:

    User Management

    Adding Users:

      • Open Control Panel > User Accounts > Manage another account > Add a new user.
      • Alternatively, use the Command Prompt or PowerShell:
    net user tarek /add

    Setting Passwords:

      • Use the Control Panel or Command Prompt:
    net user mahfuz P@ssword123

    Modifying Users:

      • Modify user properties via the Control Panel.
      • Use Command Prompt or PowerShell:
    net user tarek /active:no  # Disable user account

    Deleting Users:

      • Control Panel > User Accounts > Manage another account > Delete the account.
      • Command Prompt or PowerShell:
    net user tarek /delete

    Group Management

    Adding Groups:

      • Open Computer Management > Local Users and Groups > Groups > New Group.
      • Command Prompt or PowerShell:
    net localgroup trainers /add

    Modifying Groups:

      • Add or remove users from groups via Computer Management.
      • Command Prompt or PowerShell:
    net localgroup trainers mahfuz /add

    Deleting Groups:

      • Computer Management > Local Users and Groups > Groups > Delete.
      • Command Prompt or PowerShell:
    net localgroup trainers /delete

    Tools for User and Group Management

    • Local Users and Groups: You can access this section via Computer Management for managing users and groups.
    • Active Directory Users and Computers: If you are in a Windows Server environment, then you need to use this tool for managing domain users and groups.
    • PowerShell: A powerful scripting language for advanced users and group management.

    Conclusion

    For managing users and groups, both operating systems provide an extensive amount of control. In Linux, you will be able to manage the users and groups from a command line interface whereas in Windows the main difference is you will be able to manage it from a user-friendly GUI. Both platforms provide comprehensive solutions for user and group management.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Tech Buzz Insider
    • Website

    Related Posts

    Comparing Virtualization and Package Management in Linux and Windows – 14

    July 16, 2024

    Comparing Linux and Windows Network Management – 13

    July 15, 2024

    Comparing Linux and Windows- Overview of Boot Process and System Management -12

    July 15, 2024

    Comparing Linux and Windows Storage Management and Logical Volume Management (LVM) -11

    July 15, 2024

    Comparing Linux and Windows Swap Partition Management -10

    July 14, 2024

    Comparing Linux and Windows: Partition Management -09

    July 14, 2024
    Leave A Reply Cancel Reply

    Demo
    Top Posts

    Tips for Proper Documentation and Managing Your IT Asset Inventory

    April 25, 202476 Views

    Linux VS Windows Navigating Process Management -08

    July 14, 202457 Views

    Know the tools for the first step in Penetration Testing: Information Gathering

    April 6, 202456 Views
    Don't Miss

    Introduction to Server-Side Attacks: Information Gathering

    April 9, 2025

    Information gathering is very vital as it reveals the operating system in use by the…

    The rise of AI and 12 in-demand professions in 2025

    April 7, 2025

    How to Stay Safe from Freelancing Scams and Fraud?

    April 7, 2025

    2025: The Best Uses of AI Tools for Your Career

    April 7, 2025
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Latest Reviews
    Demo
    Most Popular

    Tips for Proper Documentation and Managing Your IT Asset Inventory

    April 25, 202476 Views

    Linux VS Windows Navigating Process Management -08

    July 14, 202457 Views

    Know the tools for the first step in Penetration Testing: Information Gathering

    April 6, 202456 Views
    Our Picks

    Introduction to Server-Side Attacks: Information Gathering

    April 9, 2025

    The rise of AI and 12 in-demand professions in 2025

    April 7, 2025

    How to Stay Safe from Freelancing Scams and Fraud?

    April 7, 2025

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    Tech Buzz Insider
    Facebook X (Twitter) Instagram YouTube LinkedIn
    • Home
    • Linux Basics
    • Hacking Zone
    • Defensive Security
    • Offensive Security
    • Buy Now
    © TechBuzz Insider @ Copyright Protected

    Type above and press Enter to search. Press Esc to cancel.