Skip to main content
Post Undeleted by Nimesh Neema
Post Deleted by Nimesh Neema
added 7 characters in body
Source Link
Nimesh Neema
  • 52.9k
  • 25
  • 151
  • 212

I did try to gunzip a folder in usr/local//usr/local/ but it says permission denied.

/usr/local/ is a protected directory in macOS. The observed behaviour in your case is due to System Integrity Protection. SIP does not allow even the root user or using sudo to chown /usr/local/.

As per man hier, /usr/local/ is the recommended directory for placing executables, libraries, etc. not included by the basic operating system. So it is where you should be installing your software (from source). The approach to take here is to create a directory under /usr/local and chown it to logged in user. This new directory can be used to install new software as per your liking.

/Users/ houses the users home directories, along with a Shared directory, shared between users. So, this is not the place to install new software, whether from source or not.

You can also refer to this nicely written answer discussing Standard for macOS filesystem.

I did try to gunzip a folder in usr/local/ but it says permission denied.

/usr/local is a protected directory in macOS. The observed behaviour in your case is due to System Integrity Protection. SIP does not allow even the root user or using sudo to chown /usr/local.

As per man hier, /usr/local is the recommended directory for placing executables, libraries, etc. not included by the basic operating system. So it is where you should be installing your software (from source). The approach to take here is to create a directory under /usr/local and chown it to logged in user. This new directory can be used to install new software as per your liking.

/Users houses the users home directories, along with a Shared directory, shared between users. So, this is not the place to install new software, whether from source or not.

You can also refer to this nicely written answer discussing Standard for macOS filesystem.

I did try to gunzip a folder in /usr/local/ but it says permission denied.

/usr/local/ is a protected directory in macOS. The observed behaviour in your case is due to System Integrity Protection. SIP does not allow even the root user or using sudo to chown /usr/local/.

As per man hier, /usr/local/ is the recommended directory for placing executables, libraries, etc. not included by the basic operating system. So it is where you should be installing your software (from source). The approach to take here is to create a directory under /usr/local and chown it to logged in user. This new directory can be used to install new software as per your liking.

/Users/ houses the users home directories, along with a Shared directory, shared between users. So, this is not the place to install new software, whether from source or not.

You can also refer to this nicely written answer discussing Standard for macOS filesystem.

Expanded and clarified answer.
Source Link
Nimesh Neema
  • 52.9k
  • 25
  • 151
  • 212

I did try to gunzip a folder in usr/local/ but it says permission denied.

You can/usr/local is a protected directory in macOS. The observed behaviour in your case is due to System Integrity Protection. SIP does not allow even the root user or using sudo to chown /usr/local.

As per man hier, /usr/local is the recommended directory for placing executables, libraries, etc. not included by the basic operating system. So it is where you should be installing your software (from source). The approach to take here is to create a directory under /usr/local and chown it to logged in user. ItThis new directory can be used to install new software as per your liking.

/Users houses the users home directories, along with a Shared directory, shared between users. So, this is not permissible bynot the systemplace to install new software, whether from source or not.

You can also refer to chownthis nicely written answer discussing /usr/localStandard for macOS filesystem.

You can create a directory under /usr/local and chown it to logged in user. It is not permissible by the system to chown /usr/local.

I did try to gunzip a folder in usr/local/ but it says permission denied.

/usr/local is a protected directory in macOS. The observed behaviour in your case is due to System Integrity Protection. SIP does not allow even the root user or using sudo to chown /usr/local.

As per man hier, /usr/local is the recommended directory for placing executables, libraries, etc. not included by the basic operating system. So it is where you should be installing your software (from source). The approach to take here is to create a directory under /usr/local and chown it to logged in user. This new directory can be used to install new software as per your liking.

/Users houses the users home directories, along with a Shared directory, shared between users. So, this is not the place to install new software, whether from source or not.

You can also refer to this nicely written answer discussing Standard for macOS filesystem.

Corrected answer.
Source Link
Nimesh Neema
  • 52.9k
  • 25
  • 151
  • 212

Since you are coming from Ubuntu, it's recommended you go with Homebrew for installing command-line utilities/programs and Homebrew Cask for GUI applications.

Homebrew installs inYou can create a directory under /usr/local and chown it to logged in a clean manner. The Homebrew installation will take care of the permissions for youuser. OneIt is not supposedpermissible by the system to install anything inchown /Usersusr/local, which houses home directories for various users as well as a Shared directory.

Since you are coming from Ubuntu, it's recommended you go with Homebrew for installing command-line utilities/programs and Homebrew Cask for GUI applications.

Homebrew installs in /usr/local in a clean manner. The Homebrew installation will take care of the permissions for you. One is not supposed to install anything in /Users, which houses home directories for various users as well as a Shared directory.

You can create a directory under /usr/local and chown it to logged in user. It is not permissible by the system to chown /usr/local.

Source Link
Nimesh Neema
  • 52.9k
  • 25
  • 151
  • 212
Loading