Unable to remove uchg user immutable flag/lock with root user
Current app file permissions: When I run # file location cd /Applications # show flags ls -lO | grep # "drwxr-xr-x 3 root wheel uchg 96 Dec 1 2021 .app" # via sudo, fails sudo chflags nouchg .app # via su, fails su root chflags nouchg .app I get chflags: .app: Operation not permitted I've already tried disabling system integrity protection, and granting full disk access to Terminal, and changing file owner to myself. csrutil status # "System Integrity Protection status: disabled." sudo chown .app # "chown: .app: Operation not permitted" How do I unlock this file? Also posted at discussions.apple.com.
|
|
|
|
Current app file permissions:
When I run
# file location
cd /Applications
# show flags
ls -lO | grep
# "drwxr-xr-x 3 root wheel uchg 96 Dec 1 2021 .app"
# via sudo, fails
sudo chflags nouchg .app
# via su, fails
su root
chflags nouchg .app
I get
chflags: .app: Operation not permitted
I've already tried disabling system integrity protection, and granting full disk access to Terminal, and changing file owner to myself.
csrutil status
# "System Integrity Protection status: disabled."
sudo chown .app
# "chown: .app: Operation not permitted"
How do I unlock this file?
Also posted at discussions.apple.com.