El Capitan Losing Sharing Permissions Between Reboots
|
|
The OS X preferences system caches settings in RAM and then writes the results disk files later. Try using this command:
ls -l /Library/Preferences
to identify any preference plists that aren't read+write by root.
C.
When I checked some of the files were listed as me as the owner. I went ahead and fixed it so root is the owner of all the files. I uncheck and rechecked the share boxes in preferences and rebooted. Unfortunately this did not solve my problem.
rwxr-xr-x 4 root wheel 136 Feb 18 13:52 Audio
drwxr-xr-x 2 root wheel 68 Feb 18 13:51 DirectoryService
drwxr-xr-x 5 root wheel 170 Feb 18 13:57 OpenDirectory
drwxr-xr-x 16 root wheel 544 Apr 7 20:27 SystemConfiguration
-rw-r--r-- 1 root wheel 159 Jul 25 2012 com.apple.ARDAgent.plist
-rw-r--r-- 1 root wheel 1324 Oct 16 2014 com.apple.AccountsConfigServer.plist
-rw-r--r-- 1 root wheel 1582 Apr 7 17:08 com.apple.AppleFileServer.plist
-rw-r--r-- 1 root wheel 145 Jun 19 2014 com.apple.BezelServices.plist
-rw-r--r-- 1 root wheel 7801 Sep 22 2015 com.apple.Bluetooth.plist
-rw-r--r-- 1 root wheel 418 Jul 31 2015 com.apple.ByteRangeLocking.plist
-rw-r--r-- 1 root wheel 60 Jul 25 2012 com.apple.CoreRAIDServer.cfdb
-rw-r--r-- 1 root wheel 57 Jul 25 2012 com.apple.FindMyMac.plist
-rw-r--r-- 1 root wheel 391 Jul 25 2012 com.apple.HIToolbox.plist
-rw-r--r-- 1 root wheel 86 Apr 7 20:29 com.apple.MCX.plist
-rw-r--r-- 1 root wheel 4115 Oct 23 22:14 com.apple.P2PSupervisor.plist
-rw-r--r-- 1 root wheel 89 Dec 5 2012 com.apple.PCIE.plist
-rw-r--r-- 1 root wheel 80 Sep 2 2013 com.apple.RemoteDesktop.plist
-rw-r--r-- 1 root wheel 228 Apr 7 15:45 com.apple.RemoteManagement.plist
drwxr-xr-x 4 root wheel 136 Apr 7 17:09 com.apple.ServerDocs
-rw-r--r-- 1 root wheel 59 Jul 25 2012 com.apple.SetupAssistant.plist
-rw-r--r-- 1 root wheel 697 Apr 7 14:58 com.apple.SoftwareUpdate.plist
-rw-r--r-- 1 root wheel 2131 Apr 7 19:32 com.apple.TimeMachine.plist
-rw-r--r-- 1 root wheel 278 May 26 2015 com.apple.TimeMachine.plist.Uwqhppo
-rw-r--r-- 1 root wheel 42 Oct 31 07:44 com.apple.ViewBridge.plist
-rw-r--r-- 1 root wheel 336 Oct 23 22:14 com.apple.airport.opproam.plist
-rw-r--r-- 1 root wheel 6886 Mar 15 14:34 com.apple.alf.plist
-rw-r--r-- 1 root wheel 3342 Mar 23 2015 com.apple.alf.plist~orig
-rw-r--r-- 1 root wheel 0 Oct 17 2014 com.apple.apsd.launchd
-rw------- 1 root wheel 7054 Apr 7 20:29 com.apple.apsd.plist
-rw-r--r-- 1 root wheel 468 Mar 21 16:34 com.apple.commerce.plist
-rw-r--r-- 1 root wheel 108 Oct 17 2014 com.apple.dock.plist
-rw-r--r-- 1 root wheel 80 Jul 25 2012 com.apple.driver.AppleIRController.plist
-rw-r--r-- 1 root wheel 458 Feb 19 00:38 com.apple.dt.Xcode.plist
-rw-r--r-- 1 root wheel 226 Jul 25 2012 com.apple.iLife.plist
-rw-r--r-- 1 root wheel 740 Apr 7 16:43 com.apple.iPod.plist
-rw-r--r-- 1 root _xcs 287 Apr 7 20:29 com.apple.loginwindow.plist
-rw-r--r-- 1 root wheel 42 Sep 29 2015 com.apple.mdmclient.plist
-rw-r--r-- 1 root wheel 767 Apr 7 20:29 com.apple.networkextension.cache.plist
-rw-r--r-- 1 root wheel 63 Apr 7 20:29 com.apple.networkextension.necp.plist
-rw-r--r-- 1 root wheel 308 Apr 7 20:26 com.apple.networkextension.plist
-rw-r--r-- 1 root wheel 85 Apr 7 14:39 com.apple.noticeboard.plist
-rw-r--r-- 1 root wheel 284 Nov 17 2014 com.apple.preferences.accounts.plist
-rw-r--r-- 1 root wheel 60 Apr 3 14:34 com.apple.preferences.sharing.plist
-rw-r--r-- 1 root wheel 171 Jun 10 2013 com.apple.print.makequeues.plist
-rw-r--r-- 1 root wheel 160 Apr 7 2013 com.apple.screensaver.plist
-rw-r--r-- 1 root wheel 249 Oct 25 20:12 com.apple.security.appsandbox.plist
-rw-r--r-- 1 root wheel 71 Apr 7 14:57 com.apple.security.plist
-rw-r--r-- 1 root wheel 437 May 6 2014 com.apple.security.systemidentities.plist
-rw-r--r-- 1 root wheel 60 Feb 19 00:28 com.apple.seeding.plist
-rw-r--r-- 1 root wheel 1820 Nov 12 2013 com.apple.servermgrd.plist
-rw-r--r-- 1 root wheel 42 Apr 7 14:57 com.apple.storeagent.plist
-rw-r--r-- 1 root wheel 116 Oct 17 2014 com.apple.systemprefs.plist
-rw-r--r-- 1 root wheel 216 Jul 25 2012 com.apple.timezone.auto.plist
-rw-r--r-- 1 root wheel 73 Jun 25 2013 com.apple.updatesetings.plist
-rw-r--r-- 1 root wheel 3221 Dec 3 2013 com.apple.windowserver.plist
-rw-r--r-- 1 root wheel 5 Feb 17 2015 com.intel.kext.haxm.plist
-rw-r--r-- 1 root wheel 88 Feb 6 12:47 com.oracle.java.Helper-Tool.plist
-rw-r--r-- 1 root wheel 766 Apr 7 20:24 org.cups.printers.plist
Thanks.
-Jeff-
Please post the output of this command:
ls -@BOaen /L*/P*/Sy*
ls -@BOaen /L*/P*/Sy*
drwxr-xr-x 16 0 0 sunlnk 544 Apr 7 20:27 .
drwxr-xr-x 61 0 0 sunlnk 2074 Apr 7 23:33 ..
drwxr-xr-x 3 0 0 - 102 Dec 10 21:16 CaptiveNetworkSupport
drwxr-xr-x 3 0 0 - 102 Feb 18 13:28 CaptiveNetworkSupport~previous
-rw-r--r-- 1 0 0 - 3764 Feb 18 13:52 NetworkInterfaces.plist
-rw-r--r-- 1 0 0 compressed 2489 Mar 23 2015 Settings.plist
-rw-r--r-- 1 0 0 - 80 Apr 7 17:08 autodiskmount.plist
-rw-r--r--@ 1 0 0 restricted 232 Jul 31 2015 com.apple.Boot.plist
com.apple.rootless 0
-rw-r--r-- 1 0 0 - 1131 Feb 19 15:28 com.apple.PowerManagement.plist
-rw-r--r-- 1 0 0 - 5864 Feb 19 01:40 com.apple.RemoteAccessServers.plist
-rw-r--r-- 1 0 0 - 2356 Apr 7 20:27 com.apple.accounts.exists.plist
-rw-r--r-- 1 0 0 - 612 Oct 17 2014 com.apple.airport.preferences.plist
-rw-r--r-- 1 0 0 - 253 Apr 14 2015 com.apple.discoveryd.BSP.plist
-rw-r--r-- 1 0 0 - 267 Feb 19 01:25 com.apple.nat.plist
-rw-r--r-- 1 0 0 - 290 Apr 7 17:08 com.apple.smb.server.plist
-rw-r--r-- 1 0 0 - 10811 Apr 3 14:34 preferences.plist
Please boot in safe mode and see whether the sharing options are reset. Then reboot as usual and check again.
The same behavior in safe mode and when I booted normally. The one preference related to sharing that is kept doing reboots is Printer Sharing.
Thanks.
-Jeff-
Hi, I am also experiencing the exact same issue; I have tried the above with little results. I have noticed that also that my MacBook sometimes doesn't respond to pings even though I am using it online surfing etc.
Mat
Since you're running a server, file and screen sharing services should be started and stopped in the Server app. Does that work? Also, are you shutting down normally or forcing a restart?
The server app settings and the settings under preferences seem to be tied to the same backend property. When starting back up after a clean reboot, the File Sharing switch is also set to off under Server's File Sharing section.
Also under the Computer Overview Section in Server, Remote Access check boxes are also unchecked for: Secure Shell and Screen Sharing. Again this is because these seem to be tied to the same property.
As stated above, I am doing clean, non-forced, reboots.
Thanks.
-Jeff-
Is there anything relevant in the logs?
C.
Please back up all data.
Quit the Server application and drag it to the Trash, but don't empty. You'll be prompted to confirm that you want to stop all services. You won't lose any data.
If you're using the server for DNS, temporarily change the primary DNS setting in the Network preference pane to another DNS.
Test.
Put the app back where it was and launch it. Test again.
Revert the DNS setting, if applicable.
The behavior was the same with Server uninstalled.
Thanks.
-Jeff-
Here are logs when I set or clear the different share settings.
(Screen Share Clear)
4/8/16 11:32:38.255 PM com.apple.xpc.launchd[1]: (com.apple.screensharing) Unknown key for Boolean: ForceEnableHack
4/8/16 11:32:38.255 PM com.apple.xpc.launchd[1]: (com.apple.screensharing.server) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/8/16 11:32:38.255 PM com.apple.xpc.launchd[1]: (com.apple.screensharing) Unknown key for string: SHAuthorizationRight
(Screen Share Set)
4/8/16 11:33:37.339 PM com.apple.xpc.launchd[1]: (com.apple.Kerberos.kdc[9504]) Service exited due to signal: Killed: 9
4/8/16 11:33:37.350 PM kdc[9565]: label: default
4/8/16 11:33:37.350 PM kdc[9565]: dbname: od:/Local/Default
4/8/16 11:33:37.350 PM kdc[9565]: mkey_file: /var/db/krb5kdc/m-key
4/8/16 11:33:37.350 PM kdc[9565]: acl_file: /var/db/krb5kdc/kadmind.acl
4/8/16 11:33:37.363 PM kdc[9565]: WARNING Found KDC certificate (O=System Identity,CN=com.apple.kerberos.kdc)is missing the PK-INIT KDC EKU, this is bad for interoperability.
4/8/16 11:33:37.399 PM kdc[9565]: KDC started
(File Share Clear)
4/8/16 11:34:27.733 PM com.apple.xpc.launchd[1]: (com.apple.Kerberos.kdc[9600]) Service exited due to signal: Killed: 9
4/8/16 11:34:27.741 PM smb-sync-preferences[9618]: assertion failed: 15F18b: libxpc.dylib + 36146 [54D1328E-054E-3DAA-89E2-375722F9D18F]: 0x2d
4/8/16 11:34:27.741 PM digest-service[9601]: digest-request: uid=0
4/8/16 11:34:27.741 PM digest-service[9601]: digest-request: init request
4/8/16 11:34:27.742 PM smb-sync-preferences[9618]: Bogus event on event stream listener.
4/8/16 11:34:27.744 PM kdc[9620]: label: default
4/8/16 11:34:27.744 PM kdc[9620]: dbname: od:/Local/Default
4/8/16 11:34:27.744 PM kdc[9620]: mkey_file: /var/db/krb5kdc/m-key
4/8/16 11:34:27.744 PM kdc[9620]: acl_file: /var/db/krb5kdc/kadmind.acl
4/8/16 11:34:27.745 PM digest-service[9601]: digest-request: init return domain: XXXXXX server: XXXXXX indomain was: <NULL>
4/8/16 11:34:27.757 PM kdc[9620]: WARNING Found KDC certificate (O=System Identity,CN=com.apple.kerberos.kdc)is missing the PK-INIT KDC EKU, this is bad for interoperability.
4/8/16 11:34:27.793 PM kdc[9620]: KDC started
(File Share Set)
4/8/16 11:35:08.231 PM com.apple.xpc.launchd[1]: (com.apple.AppleFileServer) Unknown key for Boolean: ForceEnableHack
4/8/16 11:35:08.231 PM com.apple.xpc.launchd[1]: (com.apple.AppleFileServer) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/8/16 11:35:08.235 PM com.apple.xpc.launchd[1]: (com.apple.smbd) Unknown key for Boolean: ForceEnableHack
4/8/16 11:35:08.235 PM com.apple.xpc.launchd[1]: (com.apple.smbd) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/8/16 11:35:08.246 PM smb-sync-preferences[9665]: assertion failed: 15F18b: libxpc.dylib + 36146 [54D1328E-054E-3DAA-89E2-375722F9D18F]: 0x2d
4/8/16 11:35:08.246 PM digest-service[9601]: digest-request: uid=0
4/8/16 11:35:08.246 PM digest-service[9601]: digest-request: init request
4/8/16 11:35:08.247 PM smb-sync-preferences[9665]: Bogus event on event stream listener.
4/8/16 11:35:08.250 PM digest-service[9601]: digest-request: init return domain: XXXXXXX server: XXXXXX indomain was: <NULL>
4/8/16 11:35:08.253 PM com.apple.xpc.launchd[1]: (com.apple.xpc.launchd.domain.system) Caller tried to hijack service: path = /System/Library/LaunchDaemons/com.apple.smbd.plist, caller = launchctl.9667
4/8/16 11:35:08.612 PM servermgr_accounts[8933]: idle exit
(Remote Login Set)
4/8/16 11:36:36.964 PM com.apple.xpc.launchd[1]: (com.openssh.sshd) Unknown key for Boolean: ForceEnableHack
4/8/16 11:36:36.964 PM com.apple.xpc.launchd[1]: (com.openssh.sshd) Unknown key for string: SHAuthorizationRight
If you don't already have a current backup, please back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode. All other data will be preserved.
*The linked support article refers to OS X 10.11 ("El Capitan"), but the procedure is the same for OS X 10.7 ("Lion") and later.
Still the same behavior.
Thanks.
-Jeff-
El Capitan Losing Sharing Permissions Between Reboots