how to change permissions on external hard drive mac

Revamp Mac Hard Drive Permissions

By Andrew Lee
AD

Have you ever struggled to share files between your Mac and an external hard drive due to seemingly unbreakable permission barriers? You're not alone. This common issue can be resolved by manually changing the permissions on your external hard drive. Let's dive into a step-by-step guide on how to achieve this.

First, it's crucial to understand that the issue often arises due to differences in file ownership and permissions between macOS and other operating systems. By changing these settings, you can ensure seamless file sharing and access.

Understanding File Ownership and Permissions

Before we proceed, let's clarify some fundamental concepts. File ownership refers to the user account that created or owns a file. Permissions, on the other hand, determine who can access, modify, or execute a file.

AD
How to Change Permissions on an External Hard Drive for a Mac | Techwalla
How to Change Permissions on an External Hard Drive for a Mac | Techwalla
How to Change the Hard Drive "Read Only" Permission on Mac - Make Tech Easier
How to Change the Hard Drive "Read Only" Permission on Mac - Make Tech Easier
2 advanced ways to turn read only drive into read & write
2 advanced ways to turn read only drive into read & write

By default, macOS grants full read and write access to the owner of a file and limited access to everyone else. When you're attempting to access or modify files on an external hard drive formatted for a different OS, you might run into permission issues. Changing these settings will help resolve thisproblem.

Formatting Your External Hard Drive for Mac Use

Before you dive into changing permissions, ensure your external hard drive is formatted for macOS. The MacOS Extended (Journaled) format is ideal for use with macOS. If your drive isn't already formatted this way, use Disk Utility to format it accordingly. Don't worry, your data will be erased during this process, so make sure to back up any crucial files first.

How To Partition An External Hard Drive For PC Usage [Mac]
How To Partition An External Hard Drive For PC Usage [Mac]
How To Format A Hard Drive (Mac)
How To Format A Hard Drive (Mac)

To format using Disk Utility, open the application, select your external drive from the sidebar, click the 'Erase' button, choose the MacOS Extended (Journaled) format, give your drive a name, and click 'Erase' again to confirm.

Changing File Permissions on macOS

Now, let's change the file permissions on your external hard drive to make your life easier. We'll use the 'chflags' command in Terminal, as it allows us to change the 'user' and 'group' file flags on macOS.

AD

First, open Terminal (Applications > Utilities > Terminal). Then, navigate to your external hard drive using the 'cd' command. For example, if your drive is named 'MyExternalDrive', you might use 'cd /Volumes/MyExternalDrive/'.

Using the 'chflags' Command to Change Permissions

The 'chflags' command allows you to change file flags, which control how macOS treats the permissions on a file. We'll use it to enable write permission for non-owners on all files in the current directory.

Using the 'chflags' command is straightforward. Simply enter 'sudo chflags -R moyenplususers ' (without the quotes) followed by the name of the directory you want to change. For instance, if you want to change the permissions on the 'Movies' folder, you would enter 'sudo chflags -R moyenplususers Movies'.

AD

Understanding the '-R' and 'moyenplususers' Flags

The '-R' flag tells 'chflags' to apply the command recursively, meaning it will change the permissions not only on the specified directory but also on all subdirectories and files.

The 'moyenplususers' flag tells macOS to apply the 'user' and 'group' file flags, making files readable by everyone but only writable by the owner and group. This is the most common use case for changing file permissions.

Reverting the Changes

If you ever want to revert the changes, you can use the 'chflags -R nouchg' command. This tells macOS to remove the 'user' and 'group' flags, restoring the default permissions.

AD

To use this command, simply enter 'sudo chflags -R nouchg' followed by the name of the directory you want to revert. For example, 'sudo chflags -R nouchg Movies' will restore the default permissions on the 'Movies' folder.

There you have it—you now know how to change file permissions on an external hard drive connected to your Mac. Next time you're struggling to access or modify files due to permission issues, you'll know exactly what to do. Happy file managing!

AD