Server rental store

Linux System Administration

# Linux System Administration

This article provides a foundational overview of Linux system administration, geared towards newcomers to server management and the MediaWiki platform. Understanding these concepts is crucial for maintaining a stable and secure environment for your wiki. We will cover fundamental aspects, including user management, package management, networking, and basic security practices. This guide assumes a Debian/Ubuntu based distribution, though concepts are broadly applicable.

User and Group Management

Effective user and group management is paramount for security and organization. Linux utilizes a hierarchical user system.

Creating Users

The `useradd` command is used to create new user accounts. Important options include `-m` (create home directory), `-s` (specify shell), and `-G` (add to groups).

For example: `sudo useradd -m -s /bin/bash -G sudo newuser` creates a user named `newuser` with a home directory, Bash shell, and membership in the `sudo` group (allowing administrative privileges).

Managing Groups

The `groupadd` command creates new groups. `gpasswd` is used to manage group members. `usermod -a -G groupname username` adds a user to a supplementary group.

User Permissions

Linux employs a robust permission system based on user, group, and others. Permissions are represented by `rwx` for read, write, and execute. The `chmod` command modifies permissions. For example, `chmod 755 filename` grants the owner read, write, and execute permissions, while the group and others receive read and execute permissions. See File system permissions for more detail.

Permission Octal Value Symbolic Representation
Read 4 r
Write 2 w
Execute 1 x
Read, Write, Execute 7 rwx

Package Management

Package managers simplify software installation, updates, and removal. Debian-based systems utilize `apt`.

APT Commands

⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️