YogeshChauhan.com
How to set the permissions on all files and folders in Mac?
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.

dreamhost

Leave a Reply

Most Read

#1 How to check if radio button is checked or not using JavaScript? #2 How to set opacity or transparency using CSS? #3 Pagination in CSS with multiple examples #4 How to make HTML form interactive and using CSS? #5 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #6 How to uninstall Cocoapods from the Mac OS?



Recently Posted

Feb 27 WordPress: How to display slider repeater fields in ACF? Feb 26 Simple Page Hit Counter in PHP Feb 26 Here’s what we can do with PHP date() function Feb 25 How to set default timezone using PHP? Feb 24 WordPress: How to loop through a repeater field in ACF? Feb 24 How to get ACF values from custom post type?



You might also like these

How to uninstall Cocoapods from the Mac OS?MiscHow to set default timezone using PHP?PHPHow Routing works in Angular?AngularHow to Use the EXISTS and NOT EXISTS Operator with a Subquery in SQL and MySQL?SQL/MySQLWordPress: How to get ACF field values from another post?WordPressSQL ALL OperatorSQL/MySQLIntroduction to components and templates Part 2: Templates and viewsAngularThe Differences Between HAVING Clause and WHERE Clause in SQLSQL/MySQLSolution to “Call to undefined function mysql_error()” in RevSlider WordPress PluginWordPressLearn how to give a temporary name to a column or to a table using SQL AliasesSQL/MySQLSome interesting HTML Input Attributes to rememberHTMLAvoid using new Array() in JavaScriptJavaScript