Tested with 10.4, 10.5, 10.6, and 10.7

As we were switching our environment to a centralized Windows Directory and File Server System, we ran across a problem with setting some default settings for some of our users.  we were using a 10.5 Server as a Preference Server to lock down what applications a student could access, to add programs to a users dock, etc.  but there were somethings that we were not able to set that we wanted to, like showing Connected Servers on the Desktop or modifying what is shown is the sidebar. This hadn’t been an issue in the past since with an OS X server, the users settings follow them between computers, so the building tech would do it once and it would follow that user.  We were not doing this in the new environment, so the setting became User&computer Specific.  The below steps set the default settings that are used the first time that a user logs on to create their local profile.

Below are the steps that we took to set this for users.

1)   Login as someone with admin access on the machine

2)   Enable Root user

  1. 10.4
    1. i.     Open Net Info Manager (in Utilities)
    2. ii.     Security –> Enable Root User
    3. iii.     Set a password for the root user
  2. 10.5
    1. i.     Open Directory Utility
    2. ii.     Unlock Directory Utility
    3. iii.     Edit -> Enable Root User
    4. iv.     Set a password for the root user

3)   Create a User named Bob

4)   Log in as Bob and set any settings.  i.e. remove items from the doc, set Firefox as Default, set Firefox’s Homepage, Finder Settings,etc.

5)   Logout of Bob

6)   Login as someone with admin access

7)   Open terminal

8)   Enter the following commands (tab completion is your friend!)

su (enter the password you set for root)

cd /System/Library/User\ Template/English.lproj [before 10.5, the path is /System/Library/usertemplate/English.lproj

cp –rv ~Bob/* .

cp –rv ~Bob/.Trash . (10.4 only)

cp –rv ~Bob/.DS_Store .

cp –rv ~Bob/.CFUserTextEncoding .

exit

exit

9)   remove the Bob user from the local machine

Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

© 2013 Suffusion theme by Sayontan Sinha