FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Unix File Permissions Explained: Why chmod 777 Is Never the Answer
How-ToDevOps

Unix File Permissions Explained: Why chmod 777 Is Never the Answer

via Dev.to TutorialMichael Lip2h ago

Every developer has done it. Your deployment script fails with "Permission denied." You are tired. It is 11 PM. You type chmod 777 /var/www/html and everything works. You go to bed. Three months later, your server is compromised because every user on the system could write to your web root, and an uploaded PHP file gave an attacker a shell. I have seen this exact sequence play out on production systems more than once. The fix is not complicated -- it is understanding what those three digits actually mean and picking the right ones. The permission model Every file and directory on a Unix system has three sets of permissions, assigned to three classes of users: Owner (u): the user who owns the file Group (g): users who belong to the file's group Others (o): everyone else Each class gets three permission bits: Read (r = 4): view file contents, or list directory contents Write (w = 2): modify the file, or create/delete files in a directory Execute (x = 1): run the file as a program, or ent

Continue reading on Dev.to Tutorial

Opens in a new tab

Read Full Article
2 views

Related Articles

The Hidden Complexity of Citation Formatting (And Why I Automated It)
How-To

The Hidden Complexity of Citation Formatting (And Why I Automated It)

Dev.to Beginners • 2h ago

The Widmark Formula: How BAC Is Actually Calculated
How-To

The Widmark Formula: How BAC Is Actually Calculated

Dev.to Tutorial • 2h ago

Three Ways to Talk to Claude Remotely When You’re Not at Your Desk
How-To

Three Ways to Talk to Claude Remotely When You’re Not at Your Desk

Medium Programming • 2h ago

The Anatomy of a Good Box Shadow (and Why Most Look Fake)
How-To

The Anatomy of a Good Box Shadow (and Why Most Look Fake)

Dev.to Tutorial • 3h ago

How to Use Google Stitch to Turn Design Systems into Production-Ready UI
How-To

How to Use Google Stitch to Turn Design Systems into Production-Ready UI

Medium Programming • 5h ago

Discover More Articles