Special file permissions on Linux

Linux uses special permissions like SUID, SGID, and the Sticky Bit for advanced access control. SUID and SGID change how execution rights are applied, while the Sticky Bit controls who can delete files in shared directories

Learn about these special permissions in more details 😎👆 #technology #cybersecurity

Find pdf books with all my #Linux infographics at https://study-notes.org

2025/3/28 Edited to

... Read moreWhen I first started diving deeper into Linux, I found the standard rwx permissions straightforward enough. But then I hit SUID, SGID, and the Sticky Bit, and honestly, my head started spinning! It felt like a secret layer of access control that wasn't immediately obvious. However, once you grasp their core functions, you realize just how powerful and crucial they are for system security and functionality. Let's break down these 'special file permissions' that often show up as 's' or 't' in your ls -l output, rather than the usual 'x'. These little letters, part of the 'file mode bits', punch way above their weight! SUID (Set User ID) This one is probably the most commonly encountered. When the SUID bit is set on an executable file, any user who runs that file executes it with the permissions of the *file's owner*, not their own. Think about it: how can a regular user change their password without being root? The magic happens with /bin/passwd. This executable has the SUID bit set, and it's owned by root. So, when you run passwd, it temporarily gains root privileges to modify the /etc/shadow file, where passwords are stored. This is super handy, but also a potential security risk if not managed carefully. Imagine if a malicious program had SUID set – it could execute with root privileges! This is why careful auditing of SUID programs is vital. SGID (Set Group ID) SGID has two main functions: for executables and for directories. On Executables: Similar to SUID, when SGID is set on an executable, it runs with the privileges of the *file's group*, not the user's primary group. A common example is /usr/bin/crontab. When you run crontab, it executes with the permissions of the crontab group, allowing it to manage user-specific cron jobs securely without needing full root access. On Directories: This is where SGID gets really interesting for collaboration. If you set the SGID bit on a directory, any *new files or subdirectories created within that directory will automatically inherit the group ownership of the parent directory*, rather than the primary group of the user who created them. This is incredibly useful for shared project folders where everyone needs to work with files under a common group. No more manually chgrp-ing files! Sticky Bit The Sticky Bit is a lifesaver for shared writable directories. When set on a directory, it means that files within that directory can only be deleted or renamed by their owner, the directory owner, or root. The classic example is /tmp. Without the Sticky Bit on /tmp, any user could delete files created by other users, leading to chaos and potential system instability. The Sticky Bit (represented by 't' in the 'other' execution field, like drwxrwxrwt) prevents this. It ensures that even though everyone can write to /tmp, they can only clean up their own mess. Understanding these special permission bits completes your knowledge of Linux file permissions. They move beyond basic read, write, and execute, offering granular control over how programs run and how files are managed in shared spaces. Always remember to use them judiciously, as misconfiguring them can open up security vulnerabilities. I found studying the infographic explaining rwsrwsrwt and its examples like /bin/passwd, /usr/bin/crontab, and /tmp to be incredibly helpful in solidifying my understanding!

Related posts

An infographic titled 'Ways to Remove Files on Linux' presents a comprehensive list of commands for deleting files and directories. It includes various `rm` commands for basic removal, `find` commands for conditional deletion based on criteria like age, size, user, or permissions, and other utilities like `unlink`, `shred`, and `trash-put`. The infographic is created by Dan Nanni from study-notes.org.
Different ways to remove files on Linux
There are various ways to remove files and directories on Linux, based on filenames, creation/access time, size, ownership, permissions, or security needs Here are useful command line examples of removing files on Linux 😎👆 #infosec #TechTips #software Find high-res pdf books with a
Learn Linux with Dan

Learn Linux with Dan

10 likes

An infographic lists common Linux file extensions and their descriptions, such as .a for static library and .gz for compressed files. It highlights that extensions are conventional, with file types identified by magic numbers. Created by Dan Nanni.
Popular Linux file extensions
On Linux, file extensions are mostly a matter of convention. They don’t determine how a file is handled. Instead, Linux relies on file permissions and internal metadata (like magic numbers) to identify and process files. Still, learning common Linux file extensions is useful for understanding fi
Learn Linux with Dan

Learn Linux with Dan

6 likes

Why I switched to taking notes on my iPad
I used to love writing in notebooks, but after switching to my iPad, I can confidently say I’m never going back! Here’s why: ✨ Cuter Notes – Let’s be real…aesthetic notes make studying more enjoyable! I can use custom colors, cute stickers, and different handwriting styles to make my notes visua
Rebecca R.

Rebecca R.

267 likes

A Linux I/O Redirection cheat sheet created by Dan Nanni, detailing various shell commands for redirecting, appending, and combining standard input, output, and error streams. It includes examples like `cmd < file`, `cmd > file`, `cmd 2> file`, `cmd > file 2>&1`, and `cmd <<< "string"` with their corresponding descriptions.
Linux I/O redirection cheat sheet
Here is a concise reference of Linux shell operators for redirecting, appending, and combining standard input, output, and error streams 😎👇 Find high-res pdf ebooks with all my Linux related infographics at https://study-notes.org #linux #sysadmin #infosec #devops #softwareengine
Learn Linux with Dan

Learn Linux with Dan

6 likes

Canva Hack - Turn Images Into Videos
Canva Tutorial - How To Make Images Move On Canva! #canvahacks #canvatips #canvatutorial #canvaforbeginners #canvaforsmallbusinesses
Inuri

Inuri

46 likes

Canva Hack To Create Cool Text Effects 🤯
Canva Tutorial - How To Make Cute Text Effects Using This Brand New Canva App Called “Text Studio Maker” 💁‍♀️ Will You Try This!? 🙂 #canvatips #canvahacks #canvatutorial #canvadesign #canvaforbeginners
Inuri

Inuri

108 likes

Canva Canva! Animated Text
Canva Tutorial - How To Create Text With Motion Animation Using Canva! 😎 Once You Are Done With Your Canva Design, Export It As A GIF Or MP4 To Use On Social Media! #canvatips #canvahacks #canvatutorial #canvaforbusiness #canvatutorials
Inuri

Inuri

55 likes

Powerful Websites
#freewebsite #website #fromsoftware #fyplemon8 #fyp
Tha Smoke Websites

Tha Smoke Websites

787 likes

An infographic titled 'Linux FUSE-based Filesystems' categorizes various filesystems. Categories include Remote and Cloud, Archive and Image, Encrypted and Secure, Legacy and Compatibility, and Special-Purpose and Experimental filesystems, with examples for each. The infographic was created by Dan Nanni from study-notes.org.
Useful Linux FUSE filesystems
A FUSE filesystem is a user-space filesystem built on top of the Filesystem in Userspace (FUSE) kernel module, allowing developers to implement custom storage logic without writing kernel code Here are a categorized list of Linux FUSE filesystems 😎👆 #softwareengineer #computerscience #TechT
Learn Linux with Dan

Learn Linux with Dan

4 likes

This image explains Linux file permissions, detailing the `ls -l` command output. It illustrates file types, user/group/others permissions (rwx), and their numeric (octal) equivalents. It also shows how to interpret permissions like "rwxrw-rw-" and how to modify them using the `chmod` command.
Basic Linux file permissions
On Linux, every file has rules. Who can read it. Who can modify it. Who can execute it. And since Linux treats almost everything as a file, those three little permission bits quietly control your entire system. Learn them once, and you stop guessing and start controlling your environment 😎👆 Find
Learn Linux with Dan

Learn Linux with Dan

5 likes

A Linux Cheatsheet for Engineers from @thealpha.dev, listing various commands categorized into File System Operations, File Permissions, Process Management, Networking, System Information, Package Management, Shell Scripting, User and Group Management, File Transfer, and System Services. A penguin on a skateboard is at the bottom.
Linux cheat sheet✨️
Where are my tech babes at?👩🏿‍💻 This is something I'm learning in school😍 It's been super fun typing things into the command line and actually getting a response🥹💕💕💕 One of my classmates shared this cheat sheet to make using Linux easier #imdoingsomethingright #CybersecurityAwarenessMon
Deya!

Deya!

27 likes

Replying to @Jaycee babygirl #greenscreenvideo Updated video on how to catch him with a Facebook Data Download 😘 #retiredpsycho #relationships #toxictok #howtocatchacheater
Jessica Shaw

Jessica Shaw

627 likes

LEVEL UP
#linux #technology #cybersecurity #code
Luna Bright

Luna Bright

4 likes

Canva Hack For Halloween Designs
Canva Tutorial - How To Make 3D Elements For Halloween Using Canva AI! #canvahacks #canvatutorial #canvatips #canvaforbusiness #startingabusiness
Inuri

Inuri

40 likes

Did you know that tik tok pushes your content out to people you know first? Technology is too good atp.. Nonetheless, this is how you stop it.. #tiktoktips #tiktoktipsandtricks #lalastiktoktea #greenscreenvideo
Lemon8er

Lemon8er

2404 likes

An infographic titled 'Dotfile Managers for Linux' created by Dan Nanni at study-notes.org. It displays icons and names for eleven popular dotfile managers: Chezmoi, Dotbot, Dotdrop, Dotfiles, Dotter, Home Manager, Homesick, Mackup, GNU Stow, vcsh, and Yadm.
Dotfile managers for Linux
Dotfiles are hidden configuration files in Unix-like systems, usually stored in your home directory, that control how the shell, editors, window managers, and many command-line tools behave. Here are popular dotfile managers for Linux, tools that help you track, sync, and version your configura
Learn Linux with Dan

Learn Linux with Dan

5 likes

A Linux watch command cheatsheet created by Dan Nanni, listing various commands to monitor system metrics in real-time. Examples include tracking CPU/memory usage, disk space, log file growth, network activity, and system errors, with refresh intervals specified.
Linux watch command cheatsheet
Ever wish you could just run a command and keep seeing it update automatically as things change? That is exactly what the watch command does on Linux Here are useful examples of the watch command 😎👆 Find high-res pdf ebooks with all my Linux related infographics at https://study-notes.org
Learn Linux with Dan

Learn Linux with Dan

5 likes

An infographic titled 'Android Filesystem Structure' created by Dan Nanni, detailing the hierarchical organization of Android directories like /boot, /cache, /data, /system, and their specific functions for OS operation and user data.
Android file system hierarchy
Android’s file system is based on #linux and organized into distinct partitions: /system holds the core OS files, /data contains user apps and personal data, and /storage provides access to internal and external storage locations Here is a description of #Android file system hierarchy 😎👆 #so
Learn Linux with Dan

Learn Linux with Dan

29 likes

An infographic titled 'Linux curl Command Examples' provides a comprehensive list of curl commands. It covers HTTP GET operations with options like user-agent and custom headers, HTTP POST/PUT operations for data and file uploads, and various file download operations including resuming and rate-limiting. Created by Dan Nanni.
Linux curl command examples
The curl command is a flexible tool that lets you send or receive data from servers using protocols like HTTP, HTTPS, FTP, and others, all from the command line Here are useful curl command examples 😎👆 #devops #opensource #software #TechTips Find high-res pdf books with all my #lin
Learn Linux with Dan

Learn Linux with Dan

7 likes

Useful sysdig command examples
Sysdig is one of those hidden gem tools that shows exactly what your Linux system is doing in real time — system calls, containers, network traffic, file access — everything, no guessing. Here are useful sysdig command examples 😎👆 Find high-res pdf ebooks with all my cybersecurity related inf
Learn Linux with Dan

Learn Linux with Dan

5 likes

Yazi: a terminal-based Linux file manager
Yazi is a blazingly fast terminal file manager written in Rust, based on non-blocking async I/O. It aims to provide an efficient, user-friendly, and customizable file management experience within Linux terminals. A strong contender for the best TUI-based file manager title 😎👆 Find high-res pdf
Learn Linux with Dan

Learn Linux with Dan

3 likes

This image illustrates the Android Filesystem Structure, detailing various directories like /apex, /data, and /system, along with their specific functions. It shows how core OS files, installed apps, user data, and system components are organized. Created by Dan Nanni.
Android file system hierarchy
Android uses a Linux based file system organized into several main areas. /system stores the core OS files, /data holds installed apps and user data, and /storage provides access to internal and external storage where files like photos and downloads live 😎👆 Find high-res pdf ebooks with all my t
Learn Linux with Dan

Learn Linux with Dan

24 likes

Replying to @Jaycee babygirl #greenscreenvideo Updated video on how to catch him with a Facebook Data Download 😘 #retiredpsycho #relationships #toxictok #howtocatchacheater
Jessica Shaw

Jessica Shaw

95 likes

Essential /etc configuration files on Linux
On Linux, the /etc directory is where system-wide system settings or app-specific configuration files are stored Let’s find out what types of /etc config files are commonly available on Linux 😎👇 #devops #opensource #software Find high-res pdf books with all my #Linux related infog
Learn Linux with Dan

Learn Linux with Dan

4 likes

Linux terminal shortcuts
Level up your Linux skills! Terminal shortcuts make command-line work faster, from navigation to file management and quick command execution. Master them to work like a true power user Here is a summary of useful Linux terminal shortcuts 😎👆 #TechTips #softwaredeveloper #productivitytips
Learn Linux with Dan

Learn Linux with Dan

4 likes

Permissions and Restrictions
Let’s discuss briefly permissions and restrictions in Magic the Gathering! Enjoy! 🧙‍♂️🐉⚔️ #magicthegatheringcommunity #wizardsofthecoast #mtgrules #mtgcommander #mtgcommunity
RipPullRepeat

RipPullRepeat

1 like

Linux /etc/shadow file overview
Linux keeps your account details in /etc/passwd, but the real passwords live in /etc/shadow. Modern systems hide the hashes there so only root can touch them — keeping your logins safer Here is how to interpret the /etc/shadow file 😎👆 Find high-res pdf books with all my infographics at https:
Learn Linux with Dan

Learn Linux with Dan

3 likes

An infographic titled 'Linux netcat Command Examples' lists various `nc` commands for network tasks like port scanning, file transfer, creating shells, and streaming. It includes commands for TCP/UDP, IPv6, and persistent listeners, credited to Dan Nanni.
Useful netcat command examples
Netcat is the Swiss army knife of networking. It lets you read and write data over TCP or UDP, and infosec folks use it all the time for things like quick port scans, grabbing service banners, or setting up reverse shells. Here are useful netstat command examples 😎👆 Find high-res pdf ebooks w
Learn Linux with Dan

Learn Linux with Dan

7 likes

File search commands for Linux
Linux offers a mix of commands for locating files, searching directory trees, matching text patterns, and performing fast fuzzy or regex-based searches across the filesystem Here are different file search commands you can use on Linux 😎👆 #linux #softwaredeveloper #upskill #techjobs #
Learn Linux with Dan

Learn Linux with Dan

9 likes

#claude snippet of how in depth I get into teaching how to use ai to create a webpage portfolio! Link for podcast in bio 👩‍💻🧠🫀🎥
Genevie Guevara

Genevie Guevara

1 like

A list titled 'Top Cybersecurity GitHub Projects' created by Dan Nanni at study-notes.org, updated 2025/9. It features various GitHub repositories with their star counts and brief descriptions, covering cybersecurity resources, hacking tools, reverse engineering, and pentesting.
Top cybersecurity-related GitHub projects
GitHub is home to many open-source cybersecurity projects, providing security professionals with a rich toolkit for research, defense, and response Here are a list of the most popular #github repositories related to cybersecurity 😎👆 #infosec #informationsecurity #pentest Find a high-
Learn Linux with Dan

Learn Linux with Dan

29 likes

Stop paying monthly for AI tools
Pinokio lets you run video, image and voice models like Flux, Stable Diffusion and Wan locally on your computer with unlimited private usage, no internet needed.
Krofile.com

Krofile.com

0 likes

An infographic details the Linux /etc/shadow file, showing its structure with fields like username, password hash, last change, min/max days, warn, inactive, expire, and reserved. It defines each column and provides examples for user 'dan' and 'sshd' accounts, explaining their password security settings.
Linux /etc/shadow file overview
On Linux, /etc/passwd stores basic user account information and was historically used for password storage. But, for security reasons, hashed passwords have been moved to /etc/shadow, which is only accessible by root Here is how to interpret the /etc/shadow file 😎👆 Find high-res pdf books wit
Learn Linux with Dan

Learn Linux with Dan

4 likes

Things to avoid on your Linux system
Linux is poweful—but one bad command can turn your day into a disaster, so here are the mistakes you should NEVER make 😎👆 Any other tips to share? Find high-res pdf books with all my Linux and cybersecurity infographics at https://study-notes.org #linux #TechTips #technology #softwa
Learn Linux with Dan

Learn Linux with Dan

4 likes

Linux command chaining
Linux shells like bash and zsh make it easy to combine commands using chaining, command substitution, and process substitution, letting you run tasks in sequence, reuse command output, or connect commands more flexibly 😎👆 Find a high-res pdf ebook with all my Linux related infographics from http
Learn Linux with Dan

Learn Linux with Dan

2 likes

Does tonsillectomy= health problems?
new information examines the relationship between tonsillectomy, tonsillitis, and health issues
Treehugginnurse

Treehugginnurse

0 likes

StarMaker Family
Come Join StarMaker and join our family called 🎼MusicExpression🎼
QueenAutisticWoman2026

QueenAutisticWoman2026

1 like

Linux lsof command examples
If I had to pick a personal favorite among lesser-known Linux commands, it would be lsof. It’s my go-to tool for discovering which files are open and which processes are using them. Since everything in Linux is treated as a file, lsof proves to be surprisingly powerful and endlessly useful Here
Learn Linux with Dan

Learn Linux with Dan

3 likes

An infographic titled 'Linux lsof Command Examples' by Dan Nanni, detailing various uses of the lsof command. It categorizes examples for listing open files, network connections and sockets, and other usages like Unix domain sockets and killing user activities.
Linux lsof command examples
My underrated Linux pick is the lsof command. It tells you exactly which files are open and which processes are using them. Because Linux treats everything as a file, this tiny command ends up being insanely powerful and useful in everyday troubleshooting. Here are useful lsof command examples 😎
Learn Linux with Dan

Learn Linux with Dan

2 likes

Replying to @Miracle Parker806
Jessica Shaw

Jessica Shaw

16 likes

Linux command chaining
POSIX-compliant Linux shells (bash, zsh, sh) support command chaining — a simple way to link multiple commands and control whether the next one runs based on success, failure, or just order of execution 😎👆 Find a high-res pdf book with all my Linux related infographics from https://study-notes.o
Learn Linux with Dan

Learn Linux with Dan

6 likes

An infographic titled 'File Search Commands in Linux' by Dan Nanni, listing commands like find, locate, which, whereis, grep, fzf, fd, bfs, and ripgrep, each with a brief description of its file searching functionality.
File search commands for Linux
Linux gives you several ways to find what you need — from locating files and walking directory trees to matching text patterns, running regex searches, or using fast fuzzy search tools across the filesystem 😎👆 Find high-res pdf ebooks with all my Linux related infographics from https://study-not
Learn Linux with Dan

Learn Linux with Dan

2 likes

Linux netcat command examples
The netcat command lets you read from and write to network connections using TCP or UDP. Its flexibility makes it a must-have for infosec professionals, who use it for tasks such as port scanning, banner grabbing, and setting up reverse shells during penetration tests. Here are useful netstat co
Learn Linux with Dan

Learn Linux with Dan

10 likes

Psychic Spying Is NOT Okay - Spiritual Permissions
#psychicspying #pendulumdowsing #dowsingtips #psychicdevelopment #howtouseapendulum It's one thing to navigate your own path by checking energy to the degree necessary that's needed, and you deserve protection from harm. It's another thing when you're overly focused on
Timing Magic with Lisa

Timing Magic with Lisa

4 likes

An iPad displays the Notability app, showing "University" notes with "Cybersecurity" and "Programming" notebooks. A stylus rests beside the tablet, illustrating digital note-taking organization.
Four iPads showcase diverse Notability notes, including "Wireless Security Protocols" with diagrams, "Subnetting" with network visuals, "OSI model" concept mapping, and "TCP/IP model" with color-coded highlights, demonstrating visual learning and organization.
Three iPads display Notability notes on "Tools for Protecting Business Operations" for organized reading, "Introduction to Linux, SQL, and Python Programming" for key terms, and "Create a Cybersecurity Portfolio" for quick reference, showcasing effective study methods.
How I Stay Organized and Take Notes in Notability
Staying organized is key to my success, and Notability helps me keep everything on track! I organize all my notes by class into separate notebooks, making it easy to find exactly what I need when it’s time to study. Here’s how I make my notes clear and effective: 1. Draw Diagrams & Use Color
Rebecca R.

Rebecca R.

8 likes

Save this for Razor-Sharp Photo Uploads!
Do you ever feel like some photographers post insanely sharp photos on social media?? Sure, some of it might have to do with the camera/lens they’re using, but there’s also a couple things you can do before you post to make sure the photos are posting at the highest quality! #seniorphotogr
maliarosephotography

maliarosephotography

3 likes

An infographic titled 'Linux /proc Filesystem' by Dan Nanni, featuring the Linux penguin mascot. It lists numerous /proc entries like /proc/cpuinfo, /proc/meminfo, and /proc/[PID]/status, detailing the system information each provides, such as CPU, memory, and process statistics.
Linux /proc filesystem
The Linux /proc filesystem is a virtual interface that exposes live system information and kernel parameters, enabling users to monitor hardware and processes and adjust kernel settings at runtime Here are a list of useful /proc entries 😎👆 #software #softwaredeveloper #computer Find
Learn Linux with Dan

Learn Linux with Dan

5 likes

AlmaLinux OS 10.1 Officially Released
This release also enables the CRB repository by default for new AlmaLinux OS installations and extended support for x86_64_v2 processors. ARTICLE: https://9to5linux.com/almalinux-os-10-1-officially-released-with-support-for-the-btrfs-file-system
Benjamin Tuckett

Benjamin Tuckett

0 likes

This image explains how to use Ddrescue in terminal mode on Windows to recover data. It shows a command-line interface, details about installation, disk identification, and the master command with options like force write and skipping damaged areas, emphasizing its ability to retry bad sectors.
This image introduces Ddrescue-GUI as a user-friendly alternative to the command-line version. It outlines settings for selecting source/destination, recovery modes (Balanced/Best), and the recovery process using a map file, ideal for users who prefer a graphical interface.
This image presents AOMEI Cloner as a smart, easy-to-use alternative for disk cloning. It highlights features like smart cloning that skips bad sectors, a visual interface, SSD optimization, and the ability to create a functional clone without complex commands, showing its disk clone interface.
How to Use Ddrescue on Windows | Full Beginner Gui
Got a hard drive with bad sectors that Windows can’t read properly? In this video, I’ll show you how to use GNU Ddrescue on Windows to recover or clone failing drives. We’ll go through both the command-line method and the GUI version, plus an easier alternative with AOMEI Cloner if you want to clon
Information Lab

Information Lab

0 likes

An infographic illustrates the 64-bit Linux process memory layout, detailing segments like Canonical Kernel Space, Invalid Zone, User Stack, Memory-Mapped Region, Heap, Uninitialized Data (bss), Initialized Data (data), and Program Text (text), along with their functions and address ranges. It shows memory growth directions and a 128 TiB addressable space.
Linux process memory layout
If you know how a program is laid out in memory, it becomes much easier to see where attacks can land and why certain defenses succeed or fail. This is what the memory layout of a typical 64-bit Linux process looks like 😎👆 Find high-res pdf books with all my Linux related infographics from ht
Learn Linux with Dan

Learn Linux with Dan

1 like

See more