How to configure OS X via "Custom Setting" OS X Server

marawu
New Contributor

Hi, i need to configure OS X. I have OS X Server. I know that with the help of Custom Setting can edit files com.apple.*.plist. Example, i want to configure NTP Server and TimeZone for all users. How to do it? Just i don't know where to begin:(

I enter via root in /Library/Preferences and see file .GlobalPreferences.plist in which exist block:

"com.apple.preferences.timezone.selected_city" =     {
        AppleMapID = 1496****;
        CountryCode = RU;
        Latitude = "";
        LocalizedNames =         {
            ru = Novosilikatnyy;
        };
        Longitude = "";
        Name = ;
        Population = 15241;
        TimeZoneName = "Asia/Omsk";
        Version = 1;
    };

I need in this file change setting?

5 REPLIES 5

bvrooman
Valued Contributor

You can just run a script:

# set NTP server and enable
systemsetup -setnetworktimeserver time.apple.com
systemsetup -setusingnetworktime on

# set time zone
systemsetup -settimezone America/New_York

marawu
New Contributor

@bvrooman it's bad idea. I have 350 OS X devices. i need use only Custom Setting

davidacland
Honored Contributor II

Hi @marawu

The method from @bvrooman is the way to go I'm afraid. Some settings can be managed by configuration profiles and custom settings, but only things that live in one of the standard OS X *Library search paths. As it's a unix system, NTP settings are still stored in a traditional location that normal OS X management methods can't handle.

Here's some more information related to it if it's of interest http://www.amsys.co.uk/2015/02/creating-config-profiles-instead-first-boot-script/

marawu
New Contributor

Hi @davidacland

Oh man, thanks info. I need do many change. I'm afraid forced to use Puppet. Must apply parametrs during work

PS. sry my eng(

marawu
New Contributor

@davidacland 1 question. I had tried to configure update.

d10d685ddb22423d92ffd6b421c1397d

But only part of the settings applied:

4c069a2118b346cda3f77d591cae2ce1

How do I know which settings can I change and which are not?