Right permissions in /usr/local

Can somebody please tell me if there's something wrong in the following permissions:

---

iMac:sbin simon$ cd /usr/local

iMac:local simon$ ls -la

total 0

drwxr-xr-x 17 root wheel 544 29 Set 16:46 .

drwxr-xr-x@ 10 root wheel 320 19 Set 17:27 ..

-rw-r--r-- 1 root wheel 0 15 Set 14:27 .com.apple.installer.keep

drwxrwxr-x 2 simon admin 64 19 Set 17:23 Caskroom

drwxrwxr-x 3 simon admin 96 19 Set 17:29 Cellar

drwxrwxr-x 2 simon admin 64 19 Set 17:23 Frameworks

drwxrwxr-x 18 simon admin 576 19 Set 17:28 Homebrew

drwxrwxr-x 17 simon admin 544 19 Set 17:29 bin

drwxr-xr-x 12 root wheel 384 29 Set 16:46 clamXav

drwxrwxr-x 3 simon admin 96 19 Set 17:28 etc

drwxrwxr-x 3 simon admin 96 6 Set 21:32 include

drwxrwxr-x 10 simon admin 320 19 Set 17:29 lib

drwxrwxr-x 3 simon admin 96 19 Set 17:29 opt

drwxr-xr-x 3 root wheel 96 6 Set 21:32 remotedesktop

drwxrwxr-x 2 simon admin 64 19 Set 17:23 sbin

drwxrwxr-x 8 simon admin 256 19 Set 17:29 share

drwxrwxr-x 4 simon admin 128 19 Set 17:29 var

---

I'm asking because when I boot in Recivery Mode for changing Security Settings i get an error that "there is no administrator on the disk".

TNX Simon

MacBook Pro 13" '2018'-OTHER, macOS High Sierra (10.13.6), 28th Mac since 1984

Posted on Oct 3, 2018 6:02 AM

Reply
12 replies

Oct 4, 2018 1:37 AM in response to majortom1967

majortom1967 wrote:


I'm not looking for the answer into /usr/local. I'm just checking if the overall permissions are OK. In any case I did not change the username recently.

TNX

Simon


I asked because this is something that has happened very often recently.

In any case, it still seems that your mac at present does not have an admin account.

I may be able to help with that.


The procedure below will create a new admin account. After that you will be able to use this new account to give back admin privileges to your own account.



Start in Single User Mode by holding Command-S at startup.

Then you need to type following commands at the prompt:



/sbin/mount -uw /

rm /var/db/.appleSetupDone

reboot

Oct 3, 2018 6:29 AM in response to majortom1967

Let me revise my previous input. I do not have a Frameworks, or sbin directory in /usr/local on High Sierra, or Mojave. I haven't installed any Cask source content from brew, so naturally that directory is missing too.


That /usr/local/sbin is empty. I would remove it, though uncertain how this would contribute to your Recovery issue. When you state “for changing security settings,” what does that mean?

Oct 3, 2018 11:25 PM in response to majortom1967

Default settings for a virgin /usr/local/ directory ownership are all root:wheel, but Homebrew is infamous for changing that, which has been known to cause issues for other processes that are placed there.


That said, I don't see how that could have anything to do with the issue you are experiencing. I have no idea what is being checked to determine that the disk is without an administrator.

Oct 4, 2018 1:30 AM in response to majortom1967

Most user "local" directories are going to differ. They are called local because they don't need to be consistent. Although they are initially setup by the system, they are not protected by SIP and are free to be changed by any installation that comes along. The only problems that can arise are when an installer decides to make changes to installations other than theirs. That's what happens with Homebrew when they recommend applying recursive modifications to the entire /usr/local/ directory as a troubleshooting step. That's what I meant by my previous reply.

Oct 3, 2018 6:15 AM in response to VikingOSX

Thanks for replying Viking.

It is checked. I'm wondering because of several problems like no way to haveTouch ID working.

This is the content of that /sbin folder:


iMac:local simon$ cd /usr/local/sbin

iMac:sbin simon$ ls -la

total 0

drwxrwxr-x 2 simon admin 64 19 Set 17:23 .

drwxr-xr-x 17 root wheel 544 29 Set 16:46 ..

iMac:sbin simon$


TNX again. Simon

(Please note: I'm now on Mojave but had same problems in High Sierra).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Right permissions in /usr/local

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.