Archive

Archive for September, 2016

Making MDM manage more

September 30, 2016 Leave a comment

My colleague @mikeymikey put out a call over Twitter to find out what folks want to manage with MDM profiles, but currently cannot.

There were so many great ideas that came out of the discussion that I wanted to capture as many as I could in one place. After some hunting this morning, I’ve posted them to Storify:

https://storify.com/rtrouton/making-mdm-manage-more

Got more ideas for things you want MDM to manage? File feature requests with Apple using Apple’s bug reporter. If you haven’t done this before, using QuickRadar makes filling bug reports much easier:

https://derflounder.wordpress.com/2015/08/26/using-quickradar-to-file-bug-reports-with-apple/

iCloud Desktop and Documents in macOS Sierra – The Good, The Bad and the Ugly

September 23, 2016 49 comments

As part of the iCloud services in macOS Sierra, Apple is offering a new way to store your files in iCloud – synchronizing the contents of your account’s Desktop and Documents folder with iCloud Drive.

LWScreenShot 2016 09 20 at 7 34 49 AM

When you enable the option to store files from your Desktop and Documents folder, the contents of your Desktop and Documents folder are moved (not copied) from your home folder into iCloud Drive. Those folders will no longer appear in your home folder.

Screen Shot 2016 09 16 at 9 21 48 PM

 

That means that your Desktop and Documents folder no longer are stored in your home folder. Instead, they and all their contents are now stored in iCloud Drive.

Screen Shot 2016 09 16 at 9 39 40 PM

Screen Shot 2016 09 16 at 9 20 39 PM

For more details on this, see below the jump.

Read more…

Categories: Mac administration, macOS

fdesetup authrestart no longer requires an immediate restart in macOS Sierra

September 22, 2016 6 comments

Apple made a change to the fdesetup authrestart command in macOS Sierra, where running fdesetup authrestart will no longer require the encrypted Mac in question to restart immediately.


authrestart [-inputplist] [-delayminutes number_of_minutes_to_delay] [-verbose]
If FileVault is enabled on the current volume, it restarts the system,
bypassing the initial unlock. The optional -delayminutes option can
be used to delay the restart command for a set number of minutes. A
value of 0 represents 'immediately', and a value of -1 represents
'never'. The command may not work on all systems.

view raw

gistfile1.txt

hosted with ❤ by GitHub

The delayed restart option can be enabled by adding the -delayminutes verb to the fdesetup authrestart command and specifying one of the following:

  • Time in minutes = Delay the restart command for a set number of minutes
  • 0 = immediate restart
  • -1 = wait indefinitely for restart

Using the -1 option means that the user can restart at their convenience and their encrypted Mac will automatically bypass the FileVault 2 pre-boot login at the next reboot.

To show what this behavior looks like, please see the videos below:

fdesetup authrestart -delayminutes 0

fdesetup authrestart -delayminutes 0

Note: The video has been edited to artificially reduce the amount of time the restart process takes to run. Run time of the pre-edited video was 1 minute 30 seconds.

fdesetup authrestart -delayminutes 1

fdesetup authrestart -delayminutes 1

Note: The video has been edited to artificially reduce the amount of time the restart process takes to run. Run time of the pre-edited video was 2 minutes 18 seconds.

fdesetup authrestart -delayminutes -1

fdesetup authrestart -delayminutes -1

Note: The video has been edited to artificially reduce the amount of time the restart process takes to run. Run time of the pre-edited video was 1 minute 43 seconds.

tty_tickets option now on by default for macOS Sierra’s sudo tool

September 21, 2016 3 comments

While working on some documentation, I noticed a behavioral change in macOS Sierra’s sudo tool that was different from how sudo behaves on OS X El Capitan.

El Capitan

if you run sudo in one Terminal session and authenticate with your password, then open another Terminal session and run sudo, you won’t be prompted for your password in either Terminal session until the normal sudo authentication timeout. To see what this behavior looks like, please see the video below:

Sierra

If you run sudo in one Terminal session and authenticate with your password, then open another Terminal session and run sudo, you’ll get asked for your password in the second Terminal session too. Meanwhile, in the first Terminal session, you won’t get prompted again until the normal sudo authentication timeout. To see what this behavior looks like, please see the video below:

The difference is that Apple has compiled sudo on Sierra to include the tty_tickets option, which ensures that users need to authenticate on a per-Terminal session basis.

Screen Shot 2016 09 21 at 3 06 19 PM

 

This option had not been included in sudo on OS X El Capitan and earlier, which had been viewed as a privilege escalation vulnerability.

If you want sudo to return to using the pre-Sierra behavior on macOS Sierra, edit /etc/sudoers to add the following option:


Defaults !tty_tickets

view raw

gistfile1.txt

hosted with ❤ by GitHub

 

Screen Shot 2016 09 21 at 2 25 38 PM 

macOS Sierra’s /Volumes folder is no longer world-writable

September 21, 2016 14 comments

One of the changes made in macOS Sierra is summed up by my colleague @n8felton below:

/Volumes is the invisible directory used by OS X and macOS as the OS’s default mount point for accessing the filesystems of other storage (like external hard drives, USB flash drives, mounted disk images, network fileshares, etc.)

Sierra 2016 09 21 at 8 56 48 AM

Up to OS X El Capitan, the /Volumes directory was world-writable and had the following permissions:


Owner: Read, Write, Execute
Group: Read, Write, Execute
Everyone: Read, Write, Execute

view raw

gistfile1.txt

hosted with ❤ by GitHub

ElCap 2016 09 21 at 11 20 51 AM

ElCap 2016 09 21 at 11 21 07 AM

This meant that any process or user could create a directory inside /Volumes or store files there.

 

World-writable directories are generally seen as a security risk, which may explain why Apple chose to change the permissions on the /Volumes directory. As of macOS Sierra, the permissions on the directory are as follows:


Owner: Read, Write, Execute
Group: Read, Execute
Everyone: Read, Execute

view raw

gistfile1.txt

hosted with ❤ by GitHub

Sierra 2016 09 21 at 8 57 11 AM

Sierra 2016 09 21 at 8 56 42 AM

 

This change means that the /Volumes directory is readable by anyone but can only be written to by processes using root privileges.

This permissions change should not affect the system’s ability to mount storage devices or fileshares from network servers, as the OS itself is the one handling the mounting and has all the necessary permissions.

Blocking Siri on macOS Sierra

September 20, 2016 8 comments

Siri is a welcome addition to macOS Sierra, but in certain environments it’s a service which needs to be disabled. For those Mac admins who need to do this, here are the relevant keys:

Stop Siri from running:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
<plist version="1.0">
<dict>
<key>Assistant Enabled</key>
<false/>
</dict>
</plist>

Block Siri’s menubar icon:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt;
<plist version="1.0">
<dict>
<key>StatusMenuVisible</key>
<false/>
<key>UserHasDeclinedEnable</key>
<true/>
</dict>
</plist>

For those who want to disable Siri using management profiles, I’ve created .mobileconfig files and posted them here on Github:

https://github.com/rtrouton/profiles/tree/master/DisableSiri

Hat tip to Brad Vrooman for posting about the correct settings.

Categories: Mac administration, macOS

Suppressing Siri pop-up windows on macOS Sierra

September 20, 2016 10 comments

Starting in 10.7.2, Apple set the iCloud sign-in to pop up on the first login.

LWScreenShot 2016 09 20 at 10 38 00 AM

In 10.10, Apple added a new Diagnostics & Usage window that pops up at first login after the iCloud sign-in.

LWScreenShot 2016 09 20 at 7 35 05 AM

In 10.12, Apple added another new pop-up window for Siri.

LWScreenShot 2016 09 20 at 10 39 04 AM

 

To stop the Siri pop-up window from appearing for your home folder, run the command shown below:

defaults write com.apple.SetupAssistant DidSeeSiriSetup -bool TRUE

Since you normally will be able to run this command only after you’ve seen the Siri pop-up window, I’ve updated my script for suppressing the iCloud and Diagnostic pop-up windows to now also suppress the Siri pop-up window. For more details, see below the jump.

Read more…

Categories: Uncategorized

Building a Casper smart group containing Sierra-incompatible Macs

September 20, 2016 4 comments

As part of preparing for macOS Sierra, I’m planning to provide a way for my customers to upgrade themselves to Sierra via Casper’s Self Service. Unlike the upgrade process I was able to provide for OS X Yosemite and El Capitan, where I could filter based on whether or not a particular Mac could run OS X 10.8.x, Sierra’s system requirements exclude some Macs which can support running OS X El Capitan.

To help make sure that Self Service wasn’t providing the option of upgrading to macOS Sierra to a Mac which couldn’t run it, I needed to compile lists of which Mac models could and couldn’t run macOS Sierra, based on the system requirements that Apple provided. For more details, see below the jump:

Read more…

Disabling iCloud Drive and Document Syncing

September 20, 2016 2 comments

In the course of my testing of macOS Sierra this week, I decided to turn on iCloud Desktop and Documents syncing. This was my reaction:

I can’t discuss the details of my testing yet because the macOS Sierra NDA still applies until Sierra is released on September 20, 2016. However, for those Mac admins who have also tested this and wish to block it in their own environments ahead of macOS Sierra’s release, I’ve built a management profile and made it available via the link below:

https://github.com/rtrouton/profiles/tree/master/DisableiCloudDriveandDocumentSync

This profile has been tested and works on OS X 10.11.6 and later. It restricts access to the iCloud Drive settings in the iCloud preference pane by graying out iCloud Drive and making it non-selectable.

Screen Shot 2016 09 19 at 10 02 29 PM

Upgrading to macOS Sierra requires OS X 10.7.5 or later

September 12, 2016 9 comments

As part of Apple’s Upgrade to macOS Sierra documentation, there’s been a change in the system requirements for macOS Sierra as opposed to OS X El Capitan.

For OS X El Capitan, the earliest OS you can upgrade from is Mac OS X Snow Leopard 10.6.8.

Screen Shot 2016 09 12 at 1 43 07 PM

 

For macOS Sierra, the earliest OS you can upgrade from is OS X Lion 10.7.5.

Screen Shot 2016 09 12 at 1 44 16 PM

 

If you’re upgrading from 10.6.8, Apple’s guidance is to upgrade first to El Capitan and then to Sierra.

Screen Shot 2016 09 12 at 1 44 26 PM

%d bloggers like this: