Unix/Linux Go Back    


OS X (Apple) OS X is a line of Unix-based graphical operating systems developed, marketed, and sold by Apple.

Root access in OSX 10.12.2.

OS X (Apple)


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 12-15-2016
wisecracker's Unix or Linux Image
wisecracker wisecracker is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 12 October 2017, 4:05 PM EDT
Location: Loughborough
Posts: 1,221
Thanks: 367
Thanked 323 Times in 253 Posts
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.

Code:
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...

Last edited by wisecracker; 12-15-2016 at 06:27 AM..
Sponsored Links
    #2  
Old Unix and Linux 12-19-2016
[MA]Flying_Meat [MA]Flying_Meat is offline
Registered User
 
Join Date: Sep 2002
Last Activity: 6 October 2017, 6:27 PM EDT
Location: San Fran
Posts: 191
Thanks: 1
Thanked 22 Times in 21 Posts
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.
The Following User Says Thank You to [MA]Flying_Meat For This Useful Post:
wisecracker (12-19-2016)
Sponsored Links
    #3  
Old Unix and Linux 12-19-2016
wisecracker's Unix or Linux Image
wisecracker wisecracker is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 12 October 2017, 4:05 PM EDT
Location: Loughborough
Posts: 1,221
Thanks: 367
Thanked 323 Times in 253 Posts
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.
    #4  
Old Unix and Linux 12-20-2016
wisecracker's Unix or Linux Image
wisecracker wisecracker is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 12 October 2017, 4:05 PM EDT
Location: Loughborough
Posts: 1,221
Thanks: 367
Thanked 323 Times in 253 Posts
(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.
Attached Thumbnails
Root access in OSX 10.12.2.-error-jpeg  
Sponsored Links
    #5  
Old Unix and Linux 12-31-2016
wisecracker's Unix or Linux Image
wisecracker wisecracker is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 12 October 2017, 4:05 PM EDT
Location: Loughborough
Posts: 1,221
Thanks: 367
Thanked 323 Times in 253 Posts
Hi all...

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

https://www.unix.com/os-x-apple-/2694...o-sampler.html

Barry.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Auditors want more security with root to root access via ssh keys dvbell SuSE 6 07-12-2013 09:33 AM
rsync in osx - nondestructive with differnt names of root directory briandanielz UNIX for Dummies Questions & Answers 3 08-06-2012 07:55 AM
How to access a NTFS partition on hard drive through Terminal in OSX ? neil.k OS X (Apple) 6 05-16-2012 11:08 AM
solaris 8 reset root password from OSX Norman Khine Solaris 4 02-08-2012 09:19 AM
How to allow access to some commands having root privleges to be run bu non root user suryashikha UNIX for Dummies Questions & Answers 5 10-30-2009 05:46 AM



All times are GMT -4. The time now is 11:10 PM.