Root access in OSX 10.12.2.

Mac users...

I updated this MBP from OSX 10.12.1 to the brand new OSX 10.12.2 two days ago.

A week ago I installed the Xcode suite.

Now the QT shell audio capture in another recent thread is broken when exporting a file.
It gives an error in a window, paraphrasing, The action is not permitted, you don't have the permissions.

Running the QT Player file manually from the GUI works absolutely fine in both save and export modes...

Along with this anomaly I tried running the shell script from root mode in the terminal.

One or the other, (or both), has made my root WRITE access impossible for most of the root hierarchy.

Last login: Thu Dec 15 10:52:11 on console
AMIGA:barrywalker~> sudo -s
Password:
AMIGA:root~> ls
.CFUserTextEncoding	.config			Library
.DS_Store		.local			Movies
.Trash			AUDIO_CAPTURE.sh	Music
.bash_history		AudioScope.sh		Pictures
.bash_profile		Desktop			Public
.bash_sessions		Documents
.cache			Downloads
AMIGA:root~> cp AudioScope.sh /usr/bin
cp: /usr/bin/AudioScope.sh: Operation not permitted
AMIGA:root~> cp AudioScope.sh /usr/bin/AudioScope
cp: /usr/bin/AudioScope: Operation not permitted
AMIGA:root~> cp AudioScope.sh /usr/local/bin/AudioScope
AMIGA:root~> ls /usr/local/bin
2to3			pip3.5			python3.5-32
2to3-3.5		pydoc3			python3.5-config
AudioScope		pydoc3.5		python3.5m
easy_install-3.5	python3			python3.5m-config
idle3			python3-32		pyvenv
idle3.5			python3-config		pyvenv-3.5
pip3			python3.5
AMIGA:root~> cd /usr/local
AMIGA:root/usr/local> ls -l
total 0
drwxr-xr-x  22 root  wheel  748 15 Dec 10:53 bin
AMIGA:root/usr/local> cd /usr
AMIGA:root/usr> ls -l
total 0
drwxr-xr-x  1059 root  wheel  36006 14 Dec 09:25 bin
drwxr-xr-x   281 root  wheel   9554 14 Dec 09:25 lib
drwxr-xr-x   206 root  wheel   7004 14 Dec 09:25 libexec
drwxr-xr-x     3 root  wheel    102 10 Dec 21:05 local
drwxr-xr-x   246 root  wheel   8364 14 Dec 09:25 sbin
drwxr-xr-x    46 root  wheel   1564  8 Nov 15:54 share
drwxr-xr-x     5 root  wheel    170 14 Dec 09:23 standalone
AMIGA:root/usr> cd ~
AMIGA:root~> cp AudioScope.sh /usr/sbin/AudioScope
cp: /usr/sbin/AudioScope: Operation not permitted
AMIGA:root~> exit
exit
AMIGA:barrywalker~> _

As can be seen I CAN copy from root into "/usr/local/bin" and I can chown, chmod, etc any user's files along with other root tasks.

I do have a virgin iMac with the previous OSX 10.12.1 and QT audio capture works perfectly on that but don't know about root access in the terminal as I don't use it much. I will get back asap...

Any ideas for the above though, or is it an APPLE thing?

TIA.

---------- Post updated at 02:48 PM ---------- Previous update was at 11:21 AM ----------

Apologies if this attaches itself to my OP.

Using OSX 10.12.1 on my iMac which has NO Xcode installed nor gcc and other special command line tools available, the root access in the terminal is the same as the current OSX 10.12.2.
It is limited, so be very aware...

Somewhere inside the OSX 10.12.2 update there is an addition that will NOT allow one to export or save a file run from a shell AND/OR applescript. <sigh>

The marvels of current technology eh!

With all of Apple's resources they manage to consistantly cripple or break third party code without trying with almost every upgrade and update...

This RIPTA might just push me over the edge to stay completely Linux centric...

Is SIP enabled?

Launch Terminal and issue: csrutil status

If it is enabled, and you want to disable it, you can only do that from the recovery partition.

After booting from recovery partition, issue: csrutil disable

Reboot normally and see if your issue is resolved.

1 Like

Hi [MA]Flying_Meat...

Thanks for the info.
After reading your post I did some research and found that this condition was enabled even in El Capitan. The code to run Quicktime Player worked in Sierra for versions 10.12.0 and 10.12.1 but has failed on 10.12.2.

As one can't change this condition temporarily on the fly inside a shell or applescript script then manually changing it by going through the rebooting is a non-starter.
I will see if I can do a workaround, if not then I will abandon this alternate audio capture for AudioScope on Apple gear entirely and stick to SOX as that works fine.

Thank you again for the information.

I will disable it on this laptop but leave it enabled on my virgin install iMac.

(Apologies if this attaches itself to my latest post.)

Hi [MA]Flying_Meat...

Update on Quicktime Player write problem.

I changed csrutil from enable to disable using the official method and I now have full root access via the terminal.

However......
Quicktime Player still has the same error.
See attached image.

I can only assume that Apple have crippled QTP to be GUI only as this error does NOT occur in OSX 10.12.0 and 10.12.1 and when run from the GUI... ;o(

I will pursue it further for the time being but I don't expect any positive results.

Hi all...

A workaround for this error report can now be found here:-

Barry.