Skip to content

Instantly share code, notes, and snippets.

@jamesattard
Last active October 19, 2025 18:40
Show Gist options
  • Save jamesattard/51240a9a60ca6bf9513e to your computer and use it in GitHub Desktop.
Save jamesattard/51240a9a60ca6bf9513e to your computer and use it in GitHub Desktop.
Fix Permissions and Refresh KExt cache
echo "Fixing ownership and permissions..."
chmod -R 755 /System/Library/Extensions/*
chown -R root:wheel /System/Library/Extensions/*
chown root:admin /
echo "Rebuilding kext cache..."
kextcache -system-prelinked-kernel
kextcache -system-caches
@tuanductran
Copy link

Why don't you use sudo permission?

sudo chmod -R 755 /System/Library/Extensions/*
sudo chown -R root:wheel /System/Library/Extensions/*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment