🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Technology & Design › Data Center Technician › Linux Basics for Data Center Technicians › Lesson 3
TEC-DATA82-07 · Lesson 3 · 12 clock hours · lab

Users, Groups, and File Permissions

Objective. Students will create user accounts and groups, set passwords, and assign file and directory permissions using both octal notation and symbolic chmod syntax, resulting in access control that matches a given security specification.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by an industry-certified professional or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Users, Groups, and File Permissions in Linux

Data centers run Linux on the vast majority of their servers. Controlling who can read, write, or execute files is a core security responsibility for every data center technician. A misconfigured permission can expose configuration files, corrupt logs, or allow an attacker to escalate privileges. This lesson gives you the practical commands and mental model you need to manage users, groups, and permissions correctly.

User Accounts and the /etc/passwd File

Every person or service that interacts with a Linux system is represented by a user account. Accounts are stored in `/etc/passwd`, which lists each account's username, user ID (UID), group ID (GID), home directory, and default shell. Passwords themselves are stored in hashed form in `/etc/shadow`, which only root can read.

Key commands for managing users:

Groups and the /etc/group File

Groups let you grant the same access to multiple users at once. Group definitions live in `/etc/group`. Each file and directory has exactly one owning group.

In a data center environment you might create groups like `datacenter`, `backup-ops`, or `log-readers` to match job roles, then assign directory permissions to those groups rather than to individual users. This makes access control easier to audit and maintain.

Understanding File Permissions

Every file and directory has three permission triplets: one for the owner (user), one for the owning group, and one for others (everyone else). Each triplet contains three bits:

| Symbol | Meaning for files | Meaning for directories |

|--------|------------------|------------------------|

| r (4) | read file content | list directory contents |

| w (2) | modify file | create/delete files inside |

| x (1) | execute file | enter the directory |

The command `ls -l` shows permissions as a ten-character string, for example `-rwxr-x---`. The first character is the file type (`-` for file, `d` for directory). The next nine characters are three triplets: owner, group, others.

chmod: Changing Permissions

Octal notation expresses each triplet as a single digit (sum of r=4, w=2, x=1):

Symbolic notation uses letters and operators:

Either syntax produces identical results. Octal is faster for setting all permissions at once; symbolic is clearer when you need to change just one bit.

chown: Changing Ownership

`chown owner:group filename` changes who owns a file or directory.

You must be root or use `sudo` to change ownership.

Special Permission Bits: SUID, SGID, and Sticky Bit

Three extra bits add special behaviors:

To add SUID: `chmod u+s filename` or include `4` as the leading octal digit: `chmod 4755 filename`. To remove it: `chmod u-s filename`.

Safety and Security Practices

Permission errors can cause outages or security breaches. Follow these rules:

Key terms8

UID (User ID)A unique integer the Linux kernel uses to identify each user account; stored in /etc/passwd.
GID (Group ID)A unique integer identifying a group; every file has an owning GID that controls group-level permission enforcement.
Octal notationA method of expressing file permissions as a three-digit number where each digit (0–7) is the sum of read (4), write (2), and execute (1) bits for owner, group, and others respectively.
Symbolic notationA method of changing permissions using letters (u, g, o, a) combined with operators (+, -, =) and permission letters (r, w, x), targeting specific permission bits without affecting others.
SUID (Set User ID)A special permission bit that causes an executable to run with its owner's privileges instead of the calling user's; dangerous and inappropriate on shell scripts.
Principle of least privilegeThe security practice of granting users and processes only the minimum permissions necessary to perform their assigned tasks.
chownThe Linux command used to change the owning user and/or group of a file or directory; requires root or sudo privileges.
Sticky bitA special permission bit applied to directories that prevents users from deleting or renaming files inside unless they own those files.
In class: Instructor demo of useradd, usermod, userdel, groupadd, and passwd; students immediately replicate each command on their own server session, creating a test user named 'dctech1' and adding it to a 'datacenter' group. · Permissions matrix lab: instructor distributes a one-page scenario specifying which users and groups should have read, write, or execute access to six directories representing data center function areas (logs, backups, scripts, configs, uploads, archives); students set permissions and use ls -l to verify, then swap servers with a partner who attempts to access each directory as a non-privileged user to confirm enforcement. · Permission-vulnerability analysis: students are given a server with three intentionally misconfigured files (world-writable /etc/passwd permissions replica, SUID bit on a shell script, group-writable log directory); they identify each issue, document the risk in writing, and correct it.
Materials: Lab servers; printed permissions scenario worksheet; CompTIA Server+ Study Guide (user and security chapter); Linux man pages (man useradd, man chmod, man chown); lab log notebooks.
Check: Instructor logs into each student's server as a test user and attempts actions that should be permitted and actions that should be denied per the scenario; student must also submit written vulnerability-analysis notes. Pass mark: all six directories match the specified access control and student correctly identifies and remediates all three misconfigured files (100% of security items correct).

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

CompTIA Server+ — Server Administration
1. A technician needs to add user 'dctech1' to the 'datacenter' group without removing the user from any existing groups. Which command is correct?
CompTIA A+ — Operating Systems
2. What does the octal permission value 750 grant to a directory?
CNet CDCTP — Data Center Security
3. A technician discovers a shell script with the SUID bit set, owned by root. Why is this a security vulnerability?
CompTIA A+ — Operating Systems
4. Which command removes write permission from the group on a file named 'server.log' without affecting any other permissions?
CNet CDCTP — Data Center Security
5. A technician finds that /etc/passwd has world-writable permissions. What is the immediate risk?
CompTIA Server+ — Server Administration
6. Which command would a technician use to verify all group memberships for 'dctech1', including the primary and supplementary groups?
CompTIA Server+ — Server Administration
7. A log directory is configured as group-writable and owned by the group 'log-writers'. A new technician in that group accidentally deletes a critical log file. Which permission change would prevent group members from deleting each other's files while still allowing them to write new logs?
CompTIA A+ — Operating Systems
8. A technician uses 'chmod o= /data/configs' on a directory. What is the result for users who are not the owner or a group member?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.