Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 4, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 4, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 4, 2025

      Smashing Animations Part 4: Optimising SVGs

      June 4, 2025

      I test AI tools for a living. Here are 3 image generators I actually use and how

      June 4, 2025

      The world’s smallest 65W USB-C charger is my latest travel essential

      June 4, 2025

      This Spotlight alternative for Mac is my secret weapon for AI-powered search

      June 4, 2025

      Tech prophet Mary Meeker just dropped a massive report on AI trends – here’s your TL;DR

      June 4, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025
      Recent

      Beyond AEM: How Adobe Sensei Powers the Full Enterprise Experience

      June 4, 2025

      Simplify Negative Relation Queries with Laravel’s whereDoesntHaveRelation Methods

      June 4, 2025

      Cast Model Properties to a Uri Instance in 12.17

      June 4, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025
      Recent

      My Favorite Obsidian Plugins and Their Hidden Settings

      June 4, 2025

      Rilasciata /e/OS 3.0: Nuova Vita per Android Senza Google, Più Privacy e Controllo per l’Utente

      June 4, 2025

      Rilasciata Oracle Linux 9.6: Scopri le Novità e i Miglioramenti nella Sicurezza e nelle Prestazioni

      June 4, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Learning Resources»Simplifying User Accounts and Permissions Management in Linux

    Simplifying User Accounts and Permissions Management in Linux

    February 3, 2025
    Simplifying User Accounts and Permissions Management in Linux
    by George Whittaker

    Linux, renowned for its robustness and security, is a powerful multi-user operating system that allows multiple people to interact with the same system resources without interfering with each other. Proper management of user accounts and permissions is crucial to maintaining the security and efficiency of a Linux system. This article provides an exploration of how to effectively manage user accounts and permissions in Linux.

    Understanding User Accounts in Linux

    User accounts are essential for individual users to access and operate Linux systems. They help in resource allocation, setting privileges, and securing the system from unauthorized access. There are mainly two types of user accounts:

    • Root account: This is the superuser account with full access to all commands and files on a Linux system. The root account has the power to do anything, including tasks that can potentially harm the system, hence it should be used sparingly.
    • Regular user accounts: These accounts have more limited permissions, generally confined to the user’s home directory. Permissions for these accounts are set in a way that protects the core functionalities of the system from unintended disruptions.

    Additionally, Linux systems also include various system accounts that are used to run services such as web servers, databases, and more.

    Creating and Managing User Accounts

    Creating a user account in Linux can be accomplished with the useradd or adduser commands. The adduser command is more interactive and user-friendly than useradd.

    Creating a new user

    sudo adduser newusername

    Hostinger

    This command creates a new user account and its home directory with default configuration files.

    Setting user attributes

    • Password: Set or change passwords using the passwd command.
    • Home directory: Specify a home directory at creation with useradd -d /home/newusername newusername.
    • Login shell: Define the default shell with useradd -s /bin/bash newusername.

    Modifying and deleting user accounts

    • To modify an existing user, use usermod. For example, sudo usermod -s /bin/zsh username changes the user’s default shell to zsh.
    • To delete a user, along with their home directory, use userdel -r username.

    Understanding Linux Permissions

    In Linux, every file and directory has associated access permissions which determine who can read, write, or execute them.

    Go to Full Article

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleDebian Package Dependency Management: Handling Dependencies
    Next Article OpenAI announces “deep research” agent that can complete online research

    Related Posts

    Learning Resources

    What I learned from Inspired

    June 4, 2025
    Learning Resources

    macOS Apprentice [SUBSCRIBER]

    June 4, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Salesforce AI Introduces TACO: A New Family of Multimodal Action Models that Combine Reasoning with Real-World Actions to Solve Complex Visual Tasks

    Machine Learning

    Two Actively Exploited Security Flaws in Adobe and Oracle Products Flagged by CISA

    Development

    Supercharging vector search performance and relevance with pgvector 0.8.0 on Amazon Aurora PostgreSQL

    Databases

    How Your Business Can Benefit from a Network Security Policy

    Development

    Highlights

    Machine Learning

    Protect your DeepSeek model deployments with Amazon Bedrock Guardrails

    February 6, 2025

    The rapid advancement of generative AI has brought powerful publicly available large language models (LLMs),…

    Building a virtual meteorologist using Amazon Bedrock Agents

    February 11, 2025

    Microsoft tests Windows 11 24H2 update with new image editing, Start menu changes

    April 11, 2025

    Two Critical RCE Flaws Expose Yi IOT Smart Cameras to Full Device Takeover

    April 22, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

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