Root access in OSX 10.12.2.

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) Root access in OSX 10.12.2.
# 1  
Old 12-15-2016
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 07:27 AM..
# 2  
Old 12-19-2016
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.
This User Gave Thanks to [MA]Flying_Meat For This Post:
# 3  
Old 12-20-2016
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 12-20-2016
(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.
Root access in OSX 10.12.2.-errorjpeg
# 5  
Old 12-31-2016
Hi all...

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

OSX Sierra transparent shell audio sampler.

Barry.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Ubuntu

Root access that can't change root password?

We are having a little problem on a server. We want that some users should be able to do e.g. sudo and become root, but with the restriction that the user can't change root password. That is, a guarantee that we still can login to that server and become root no matter of what the other users will... (2 Replies)
Discussion started by: 244an
2 Replies

2. SuSE

Auditors want more security with root to root access via ssh keys

I access over 100 SUSE SLES servers as root from my admin server, via ssh sessions using ssh keys, so I don't have to enter a password. My SUSE Admin server is setup in the following manner: 1) Remote root access is turned off in the sshd_config file. 2) I am the only user of this admin... (6 Replies)
Discussion started by: dvbell
6 Replies

3. Shell Programming and Scripting

How to give root access to non root user?

Currently in my system Red Hat is installed. And Many user connect to my machine via SSH Techia Terminal. I want to give some users a root level access. Can anyone please help me how to make it possible. I too searched on the Google but didn't find the correct way Regards ADI (4 Replies)
Discussion started by: adisky123
4 Replies

4. UNIX for Dummies Questions & Answers

rsync in osx - nondestructive with differnt names of root directory

normally I rsync -haPE source destination What I want to do is take a old ~ directory from an external drive and have it ONLY update missing files NOT replace existing files. excluding ~/library any help would be great. (3 Replies)
Discussion started by: briandanielz
3 Replies

5. OS X (Apple)

How to access a NTFS partition on hard drive through Terminal in OSX ?

Hi , I have a Mac OS X Lion mac book pro. I have a hard drive which I have partitioned in two (a) OSX Partition - Mac OS Extended Journaled format. Mount point: / (b) Data Partition - Windows NT Filesystem format. Mount point: /Volumes/Data I need to access the NTFS partition (I have a... (6 Replies)
Discussion started by: neil.k
6 Replies

6. Solaris

solaris 8 reset root password from OSX

Hello, I have two old Solaris machines $ uname -a SunOS unknown 5.8 Generic_117350-39 sun4u sparc SUNW,UltraAX-e2 unfortunately, it has been so long ago that i have used these that the root password has left my head... i can log into one of the machine as a normal user, but am unable to... (4 Replies)
Discussion started by: Norman Khine
4 Replies

7. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

8. AIX

root access

Hello I have a question. I have a box with Aix 5.3 but I want to disable root access direct from any terminal or console. I mean If I want to login to 10.10.10.10 login:root password ********* Root access is not permited Which file I have to edit. to the users first login with... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies

9. SCO

root access

We have SCO 5.0.5 and can't log into system as "root". The system indicates the password is incorrect. No one knows what happened. How can we resolve this issue.. Are there files we can restore from backup...? Any suggestions would be appreciated. Thank you.. (2 Replies)
Discussion started by: RBurer
2 Replies

10. Linux

how to access root priveliges if root password is lost

wish to know how to access root password it root password is forgotten in linux (1 Reply)
Discussion started by: wojtyla
1 Replies
Login or Register to Ask a Question