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

Most Samsung Galaxy users are oblivious about this
Most Samsung Galaxy users are oblivious about this Labs feature #tech #phone #samsunggalaxy #droidsavvy
Droid Savvy

Droid Savvy

1725 likes

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

A comprehensive DeepSeek Complete Cheatsheet by Jafar Najafov, outlining roles, tasks, restrictions, and specific prompts for business owners, developers, marketers, and designers, along with prompt priming and the C.R.E.A.T.E. formula.
A list of roles from a DeepSeek AI cheatsheet, including Lawyer, Ghostwriter, Website Designer, Best Selling Author, Chief Financial Officer, Expert Copywriter, Prompt Engineer, Accountant, Project Manager, Sports Coach, Financial Analyst, and Full Stack Developer.
A list of roles from a DeepSeek AI cheatsheet, including Analyst, Teacher, Marketer, Advertiser, Mindset Coach, Therapist, Journalist, and Inventor, under the heading 'Act as a [ROLE]'.
🚀 DeepSeek Complete Cheatsheet
Hey everyone! 🌟 I’ve put together a comprehensive cheatsheet based on the DeepSeek Complete guide by Jafar Najafov.This is perfect for anyone looking to leverage AI prompts effectively. Let’s dive in! 🧭 ---- Act as a [ROLE] Need to switch roles? Here’s a list of personas you can adopt: 1. Anal
Valder

Valder

75 likes

A young woman with long dark hair, wearing a pink satin shirt, smiles at the camera while sitting at a table. Overlay text reads: 'Tools and sites I use as a cybersecurity student to progress my skills and keep me interested in studying'.
A screenshot of 'The Hacker News' website, displaying various cybersecurity news articles from January 2025, including topics like vulnerabilities, malware, cyber espionage, and AI jailbreak methods. An ad for Zscaler and a banner for CIS Hardened Images are also visible.
A screenshot of the O'Reilly learning platform, showing various books and expert playlists related to AI, engineering, and data. Overlay text highlights the subscription cost ($50/month or $499/year) and its value for accessing books and live events.
Tools and sites I use as a cybersecurity student 🌸
#cybersecuritystudent #cybersecurity #techgirlie
LexiStudies

LexiStudies

112 likes

You Can Now Add Subtitles To Videos Using Canva! 😱
Canva Tutorial for Beginners - How to Add Captions to Your Videos Using Canva! 🎬 In today's design hack, I'll show you how to easily add subtitles to your videos using Canva. This is a new feature on Canva called "Subtitles", which is a game-changer for content creators and busin
Inuri

Inuri

113 likes

A MacBook and two iPads display a minimal pink aesthetic with the time 10:52, showcasing a customized tech setup.
A MacBook screen shows the Touch ID & Password settings, highlighting the option to add multiple fingerprints for unlocking the device.
The MacBook App Store displays search results for "iwallpaper," showing options to download live wallpaper applications.
how i customized my macbook
how i customized my macbook air — i try to mix it around but love a minimal pink aesthetic apps mentioned: • iwallpaper • desktop flip clock • flow - focus • widgetter • widget wall #macbook pro #macbookcustomization #macbook #macbookrefresh #techfinds #lemon8challenge #ip
E D E N ◡̈

E D E N ◡̈

2946 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

These 5 websites feel illegal to know!
#gettoknowme
Useful AI Websites & Tutorials

Useful AI Websites & Tutorials

38 likes

A Mac desktop screenshot showing custom folder icons like pink bows and a gift bag, with text overlayed: 'Desktop Planning HOW TO... - CHANGE FOLDER ICONS -'. It also has a 'Swipe' indicator.
A screenshot of Canva displaying a pink bow image, with text 'STEP 1 Find an icon you like in Canva' indicating the first step in customizing folder icons.
A screenshot of Canva's download settings, showing the 'Transparent background' option checked and the 'Download' button, with text 'STEP 2 Download with transparent background'.
Customizing your Mac files 📁
Do you like this look or do you have any great hacks for a Mac?? Ever since I started planning straight from my desktop, this hack has been a game changer for customizing all of my look!! I love to be able to change the icon of my files to better fit my background! Here’s how I do it: •Choose
Moriah Ackerman

Moriah Ackerman

24 likes

How To Generate AI Images Using Canva
Canva Hack For Beginners - How To Generate Images Using AI For FREE Inside Of Canva! 🤯 Now If You Can’t Find The Perfect Image For Your Canva Designs Create One Using AI Instead! This Way You Are Only Limited By Your Imagination & A Great Prompt Of Course! 😊 Let Me Know In The Comments
Inuri

Inuri

90 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

Working in IT means diversifying your knowledge
#Windows #Microsoft #Linux #techtok #techsupport
TheBeardOfKnowledge

TheBeardOfKnowledge

8 likes

A MacBook screen displaying a customized desktop with various widgets and app icons, including a clock, calendar, and images of a lizard and a dog. The title 'how i decorate my mac: app icon edition' is overlaid on the image.
A close-up of custom app icons and widgets on a Mac desktop, featuring a lizard, a floral pattern, a dog, and various social media and app icons like Facebook, Netflix, Pinterest, and Amazon, with the text 'these pretty little things!'.
A Mac screen showing the Safari browser open to twitter.com, with the URL highlighted. An arrow points to the URL, and text instructs the user to 'go to safari and select your "app" of choice'.
how i decorate my Mac: app icon edition✨
⭐️Go to Safari & type in the app/social media you want to add. ⭐️Highlight / Select the URL & drag it to your desktop 🩷i STRONGLY recommend before you drag and drop the URL, you log into whatever social media account first so it can take your directly to your feed each time you open.
riley 🐚🫧🪩

riley 🐚🫧🪩

505 likes

Canva AI Image Generator
Canva Tutorial - How To Generate AI Images Using Canva With This Brand New Canva AI App 😎 #canvatips #canvahacks #canvadesign #canvatutorial #canvaforbeginners
Inuri

Inuri

91 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

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

Convert FAT32 to NTFS Without Losing Data
Still using FAT32 and stuck with the 4GB file limit? It's time to upgrade. In this video, I'll show you how to convert FAT32 to NTFS without formatting. No data loss, no complicated steps. #ntfs #fat #fat32 #conversion #disk
SmoothTechie

SmoothTechie

0 likes

A MacBook Pro displaying a pink-themed desktop with various widgets, a dock, and the title 'ANSWERING MY MOST ASKED QUESTION ON LEMON8' at the top.
A white text bubble with a lightbulb icon, containing the question: 'Hey! I saw your post on customizing my laptop and I wanted to ask how you made Netflix into a pink folder?'
A MacBook screen showing the Netflix homepage open in Google Chrome, with a sticky note instructing to 'OPEN THE HOME PAGE OF THE APP YOU WANT... AND MINIMIZE YOUR BROWSER'.
MY MOST ASKED QUESTION ON LEMON8!🍋🌸
hope this helps! sorry for not replying to all your dm’s! i tried to reply to all of them but i didn’t even feel like i explained it well to the people i did get back to. hopefully this clears everything up. DM’s are still open for any questions, just be patient with me🩷 #lemon8 #tutorial #
makenna ♡

makenna ♡

76 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

A computer screen displays the Anki flashcard app with various Japanese language decks, including 'common anime words' and 'Japanese Essential Verbs'. The screen is on a desk with decorative items, and text overlay says 'you need this flashcard app for studying!'.
A close-up of the Anki app's deck interface shows options to download shared decks or create new ones. Text highlights that Anki is free for multiple platforms and allows syncing between devices.
A web browser shows the AnkiWeb Shared Decks page, displaying a vast library of user-created Japanese language flashcard decks available for import. Text emphasizes the 'huge library of shared decks'.
📚📑✏️ This is the best tool for studying!
If you are studying anything, especially languages, then you should be using flashcards! Anki is the best app out there for making and studying digital flashcards, and the best part is it’s FREE! Not only that, but you can also download other users’ flashcard decks for free or create your own based
astarael.games

astarael.games

57 likes

A title slide for 'TOOLS EVERY SOFTWARE ENGINEER SHOULD MASTER' is displayed against a backdrop of the ancient Roman Colosseum under a clear blue sky.
The first tool, 'Version Control System: Git,' is presented with its benefits for tracking changes and collaboration, set against the lower arches of the Colosseum.
The second tool, 'Integrated Development Environment (IDE): VS Code,' is described for boosting productivity and customization, shown against the mid-section of the Colosseum.
Top tools every software engineer should master
1. Version Control System: Git - Why Master It? - Essential for tracking changes in codebases. - Enables collaboration with teams through branching, merging, and pull requests. - Works seamlessly with platforms like GitHub, GitLab, and Bitbucket. - Key Skills to Learn: - Commit, push
vedha | career tips (tech) 👩‍

vedha | career tips (tech) 👩‍

36 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

How to Customize Desktop Folder Icons
Aesthetic Folder Icon Customization on MacBook! 💻 🖥️ ✨ Step 1: select the folder that you want to customize. It’ll highlight it. Step 2: Hold down Command + I and it’ll open up a new window in the corner. Step 3: Find the image that you what to use and copy it. Step 4: Click on the original
Erika🧸💌

Erika🧸💌

144 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

I get caught up in this situation a lot 🤣🤦🏻‍♀️
How I was describing “crying” #L4D2 #twitch #streamer #gaming #gamergirl
Runt Gaming Studio

Runt Gaming Studio

3 likes

Canva Hack! Change Image Lighting
Canva Tutorial - How To Add Light Effects To Your Photos Using Canva! 🤯 #canvahacks #canvatips #canvatutorial #canvaforbeginners #canvaforbusinessowners
Inuri

Inuri

70 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

Canva Hack - How To Curve Text Using Canva
Canva Tutorial - How To Make Wavy Text On Canva! #canvatutorial #canvahacks #canvaforsmallbusinesses #canvaforbeginners #canvadesign
Inuri

Inuri

30 likes

How To Make AI Images On Canva For FREE!
Canva Tutorial - How To Generate AI Images For FREE! #canvahacks #canvatips #canvatutorial #canvaforbeginners #canvaforsmallbusinesses
Inuri

Inuri

88 likes

A Mac desktop screen displaying a widget with various customized folder icons, including cartoon characters and images. The screen also shows the title 'How to get custom Mac folder icons' and 'SWIPE TO VIEW' instructions.
A screenshot of a website, likely Pinterest, showing various 'Sonny Angel' figures. A right-click menu is open, highlighting 'Save Image As...' to save an image for custom folder icons.
A Mac screen showing an image of a 'Sonny Angel' figure in Preview mode. The top panel illustrates the process of removing the background from the image, with before and after views.
💗 How to customise Mac folder icons
‧°𐐪♡𐑂°‧₊ 💻 Did you know you can change your blue folder icon to any image or icon you want? This is a simple step-by-step tutorial on how! I used sonny angel images from Pinterest, removed the white background using the Mac preview/markup tool, and copied and pasted it into the folder info! This
peachiesuga ♡

peachiesuga ♡

873 likes

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

Luna Bright

4 likes

A MacBook desktop displaying various aesthetic elements like sand, shells, coconuts, and pink creams, alongside a to-do list widget and a motivational quote, illustrating how to edit desktop folders.
A smartphone screen shows a 'Favorites' photo album with 290 items, displaying a grid of aesthetic images including creams, ice cream, coconuts, and palm trees, for choosing an image.
A smartphone screen shows a single image of a scoop of ice cream on a gray background, with options to 'Copy', 'Add Sticker', or 'Share', indicating the background is removed.
Custom Macbook Desktop Pt 2
Part 2 of organizing your MacBook!! This tutorial includes using your phone and a MacBook :) #macbooksetup #desktopsetup #desktopwallpaper #macbookaesthetic #desktopfolders
C r y s t a l ౨ৎ

C r y s t a l ౨ৎ

64 likes

Recover Deleted Files Using Terminal Commands
Accidentally wiped important files on Windows/macOS/Linux? This video shows how to use terminal and command-line recovery methods to restore deleted data before it gets permanently overwritten. #cmdanks #datarecovery #windows11 #linux #TechTips
XanthusTechCore

XanthusTechCore

5 likes

Canva Design Hack - Make A Calendar On Canva!
Canva Tutorial - How To Make A Calendar Using Canva! #canvahacks #canvatips #canvatutorial #canvaforbeginners #canvaforsmallbusinesses
Inuri

Inuri

67 likes

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

Tha Smoke Websites

761 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

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

Now I know most of the hate for Ash came off from the photographer instagram account but I wanted to make a video showing things I personally do and how to keyword block on different social media account. I definitely want to make more video off this one but I thought this was a good start. If you
Sparkle

Sparkle

4 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

Zoom to mouse plug-in for OBS
What does plug-in you can zoom into your mouse if you’re trying to show something specific in your streams #obs #newtwitchstreamer #newstreamer #streamer #streamertips
KynFlux

KynFlux

8 likes

An iPhone screen showing 'Privacy & Security' settings with options for Location Services, Tracking, Calendars, and Contacts. The text 'STOP PHONE SNOOPS With These 5 Tips' is overlaid, introducing phone privacy tips.
An iPhone screen displaying the 'Safety Check' feature, highlighted in yellow. It offers 'Emergency Reset' to immediately revoke access and 'Manage Sharing & Access' to customize permissions for apps and people.
An iPhone screen showing an 'App Lock' privacy app interface, highlighted in yellow. It presents different modes like 'Lending Mode,' 'Childcare Mode,' 'Work Mode,' and 'Gaming Mode' with toggle switches.
Stop Phone Snoops With These Tips🔒📵
Are you worried or concerned someone is sneaking through your phone? These quick tips will help you catch snoopers in the act and add extra security to your phone’s privacy settings: 📵Safety Check Check your iPhone’s settings for the new Safety Check feature under Privacy. It lets you instantl
QuinnStitchery✨

QuinnStitchery✨

136 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

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

RipPullRepeat

1 like

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

QueenAutisticWoman2026

1 like

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

See more