Rogue Security Wiki

Study notes covering Configuring Permissions.

Author: Dylan Barrett

Date: 01/26/2026


📖 Useful Vocabulary / Acronyms

Terminology Definition
Permissions Security settings that control access to objects, including file system items and network resources
Access Control Lists (ACLS) The Collection of access control entries that determine which subjects are allowed or denied access to
Principle of Least Privilege A basic principle of security stating that something should be allocated the minimum rights needed to preform there jobs
Group An Access control object that contains multiple users with similar security requirements
Graphical Interface An environment for passing commands to a computer by using a graphical, mouse-driven interface rather than text-based commands
ownership The Property by which the user is allowed to apply and modify permissions of a file or directory
immutable flag An attribute of a file or directory that prevents it from being modified even by the root user
Troubleshooting Structured approach to problem-solving using identification, theory of cause, planning, implementation, verification, and documentation steps.
Sticky Bit A special Permission bit that provides protection for files in a directory
SUID A special Permission that enables a user to execute a file with privileges of the files owner
SGID A Special Permission that enables a user to execute a file with the privileges of the File's group
Kerenel All operating systems have a kernel, which is a loww-level piece of code responsible for controlling the rest of the operating system
The Collection of access Control entries (ACE's) that determines which subjects are allwoed or denied access to the object and the privileges given.

Introduction

Configuring Standard Linux Permissions

Standard Permissions in Linux help System Administrators keep their systems in control and functioning

The Principle of Least Privilege

Applying the concept of Least Privilege is one of the best practices to ensure that your systems stay secure and functioning

Access Identities

Access Levels

View Permissions

Absolute and Symbolic Modes

Default Permissions

Configure permission defaults

The umask command alters the default permissions on newly created files and directories

Configure Ownership

In linux the only person other than root that can change the permissions of a file is the owner of said file

chown newowner filename # Changes only the owner
chown newowner: newgroup file name # Changes the owner and the group
chown : newgroup # changes only the group

The chgrp command

Another way to only change the group of a file is the chgrp command

chgrp groupname filename # Changes only the group

Configure Attributes

The Immutable Flag

Manage Attributes with lsattr

Manage attributes with chattr

Configure Special Linux Permissions

User ID and Group ID Concepts

When Standard Permissions are inadequate, you can request special permissions

Set the SUID Bit

chmod u+s /usr/bin/xmms # Sets the SUID and leaves permissions the same

Remove SUID and SGID Permissions

chmod u-s /usr/bin/gpasswd # Removes the SUID and leaves permissions the same
chmod u-s /usr/bin/newgrp # Removes the SUID and leaves permissions the same
chmod g-s /usr/bin/wall # Removes the SGID and leaves permissions the same
chmod g-s /usr/bin/write # Removes the SGID and leaves permissions the same

The Sticky Bit

The Sticky Bit is a special permission bit that protects files in a directory, it ensure that only the file or directory owner or root can delete the file or directory

Configure Access Control Lists

Access Control List Concepts

Access Control lists a really useful tool when standard file permissions are not sufficient. They allow you to assign many users and groups to a resource instead of just one, as you can with standard permissions

Configure Access Control Lists on Files

There are two commands that you can use to manage access control lists on files: getfacl and setfacl

Display ACL Entries

Configure ACL Entries

ACL entries do not replace standard permissions; standard permissions are still enforced on top of ACLs.is-warning}