Restart your Mac computer.
Simultaneously press and hold the Cmd and R keys during startup and boot the computer into the macOS Recovery mode.
Go to the Utilities menu and select Terminal.
In the Terminal, type the command below and press Enter.
csrutil disable
csrutil authenticated-root disable
csrutil enable
csrutil authenticated-root enable