Yogesh Chauhan's Blog

How to set the permissions on all files and folders in Mac?

in Miscellaneous on May 10, 2020

If you are having problems like file writing or opening with PHP in mac then you should consider changing the permissions on the folders.

All Permissions (Read, Write, Execute)

Considering you want to give all the permissions to everyone, you can use this

sudo chmod -R u+rwX,g+rwX,o+rwX /path/to/your/folder

The -R flag applies the change to all folders and files recursively.

Using the rwX symbolic mode will add read and write (rw) permissions for the user (u), group (g), and other users (o), and optionally permit execution (X) of files if they are already executable for somebody or if they are a directory.

This is equivalent to the 777 mode, except with a smarter executable bit.

You are going to need superuser permissions to execute this command so to run this command as root we are prefixing it with sudo or you might get any 'permission denied' errors when running it.

Most Read

#1 How to check if radio button is checked or not using JavaScript? #2 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #3 How to add Read More Read Less Button using JavaScript? #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#Aug 15 Is PHP still good for back-end programming? #Aug 10 How to create a multisite network in WordPress? #Aug 3 How to create a circle that follows a cursor using JavaScript and CSS? #Aug 3 How to make a curtain slider using jQuery and CSS? #Aug 2 How to progressively load images and add a blurry placeholder? #Aug 1 How to create a placeholder loader (throbber) using CSS?
You might also like these
CurrencyPipe in Angular 9 with ExamplesAngularIN and BETWEEN Operators in SQLSQL/MySQLCreate a responsive image gallery using CSS gridCSSA complete diagram with building blocks of an Angular applicationAngular6 Different Functions to Sort Arrays in PHPPHPPostgreSQL BETWEENPostgresIf statement shorthand examples in JavaScriptJavaScriptAll different methods for accessing elements in the DOM using JavaScriptJavaScriptHow to Write Complex Search Queries in SQL?SQL/MySQL12 URLSearchParams methods in JavaScriptJavaScriptClearwater Seafoods – B2C in ChinaMiscellaneousHow to create a vertically rotating texts using CSS?CSS