Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Network Homes: Folder Redirections

Hello everyone


I start this thread to gather some experiences with the MCX redirector property in Apple Open Directory.

I've integrated a bunch of Mac Clients in an existing MS Active Directory enviroment and additionally joined them to an OD Master as the AD Admins voted against any schema change (this is known as "magic" ord "golden" triangle).

The machines are configured to fetch the users home directory from their AD record (unc path) and mount it upon login, so they work directly on the network home. They don't have mobile accounts which take too long to sync as the storage node is a non-apple machine (EMC) and therefore the homes are accessed by smb.


I've come across several stubborn applications which cause some severe problems with this configuration, especially the network home folders.

Here are the most common:

- Adobe product family: Reader and Pro (v9 & 10) won't even launch without crashing

- Microsoft Office since ever (v X-2011): Files change permissions on the fly, vanish, become read-only, Fonts are not displayed correctly in the font menu, etc.


The Adobe problems disappeared as soon as I configured the MCX redirector to redirect the folder ~/Library/Application Support/Adobe to the local folder /Users/Shared/%@/Library/Adobe (%@ stands for the user's shortname)


The Office fonts are fixed by redirecting ~/Library/Preferences/Microsoft to /Users/Shared/%@/Library/Preferences

Well, I'm trying for quite a while now to fix the permission/dissapearing issues the very same way. So far with no luck. In very randomly occuring cases (seems to me) office files are not accessible anymore, the users can't save their changes or even loose the file they're currently working on.

I already tried redirecting these folders (with no luck I must say):

~/Documents/Microsoft Application Data/Office XXXX AutoRecovery -> /Users/Shared/%@/Documents/Microsoft Application Data/Office XXXX AutoRecovery (XXXX being 2008 or 2011 respectivly)

~/Library/Application Support/Microsoft -> /Users/Shared/%@/Library/Application Support/Microsoft


Has anyone encountered similar problems (and more importantly solved them ;-))?


Or what folders are generally recommeded to be redirected locally by the MCX redirector? Are there any other applications that need redirected settings/caches?


Thanks in advance for any helpful suggestions.


Cheers

Posted on May 30, 2011 10:02 AM

19 replies

May 30, 2011 10:23 AM in response to Community User

Adobe and Microsoft products do not support network homes very well.


Adobe still seems not to support them all.


http://blogs.adobe.com/jnack/2008/06/filesaving_issu.html


Microsoft Office appears to have some support issues in Office 2008


http://mac.microsoft.com/help/office/12/en-us/word/item/bb539409-4be8-48da-a1b3- 842cf958fffb


This appears to be fixed in Office 2011 SP1 but I would bet it is still idiosyncratic.


Best of luck.


Angus

May 30, 2011 11:02 AM in response to Community User

I gave up trying to fix the issues with true network homes and certain applications. what has solved all my issues is I now choose "force local home directory on startup disk" - I now have no issues with applications. I have the AD network home in the doc and I have customised finder and the sidebar so it only shows the network home and not the local home.


Initially students cliked on "save" within applications and their work was saved locally but after explaining the "save as" process all is now good. We also have "hidden" AD accounts, so in the sidebar their AD home name has a $ after it whereas the local home doesnt.


Logins are so much faster as well, and I can't remmber the last time we have an app crash.

May 30, 2011 11:36 AM in response to Community User

Thank you both for your inputs.

@Angus: Yeah, kind of found out the hard way ;-) I did this redirection mess before the office 2011 SP1, got to test it now without them (one thing I can say so far is that the font thingy is still present, so a redirection of ~/Library/Preferences/Microsoft still is necessary)..


@M@CMAN2011: I'm well aware that accounts with forced local homes work without any issues as well as mobile accounts do. But unfortunatly, this is my very last option.

I still hope that somewhere, there is a magical spell to solve these problems..


Ah, by the way some other applications that won't work without any redirection:

- Aptana Web IDE: ~/Documents/Aptana Workspace has to be linked local

- Absolute Manage Admin (Deployment Software): Is quite slow if files in ~/Library/Application Support/LANrev Admin are located on a network share (but throws an error on launch if redirected on the local drive by a ln -s as well -.-)


Cheers


Marc

May 30, 2011 12:02 PM in response to Community User

@Seegorkesolt, I am curious to know why 'forced homes' is your last option? I don't use mobile homes as this was a pain. I'm only asking because I didn't give "your way" much of a chance. In your opinion what are the benefits of not using forced homes.


My only gripe is every new intake, we have to educate students about saving work otherwise it ends up in their local home account.


Cheers


Mac

May 30, 2011 12:28 PM in response to M@CMAN2011

You delivered the reason by yourself:

M@CMAN2011 wrote:

My only gripe is every new intake, we have to educate students about saving work otherwise it ends up in their local home account.


I simply can not teach any employee/student how to use their network homes as in our enviroment, we'll have something like 2'000 potential mac users in the employee group alone by the summer (+ additional 13'000 student accounts^^).

For employees, a proper backup is crucial so working network homes would be the best and simplest solution for everyone (including myself ;-)).

95% of the whole configuration is working quite well, only office is not very cooperative. Unfortunately, 90% of all users use that darn thing.. ^^

May 30, 2011 12:59 PM in response to M@CMAN2011

M@CMAN2011 wrote:

13,000 student accounts! - crikey, that's an awful lot of administration to look after!

Fortunately, not all of them have discovered the advantages of a macintosh yet :-P


I'm looking forward to read from your recent try with network homes. Let me know if you run into any troubles other than MS Office..


Cheers


Marc

May 30, 2011 1:12 PM in response to Community User

seegorkesolot wrote:


Fortunately, not all of them have discovered the advantages of a macintosh yet :-P


I'm looking forward to read from your recent try with network homes. Let me know if you run into any troubles other than MS Office..


Yeah, same here. We have around 40 iMacs which are mainly in Music and Design.


I will trial this tomorrow and post my results.


Cheers,


Mac

May 31, 2011 10:11 AM in response to Community User

Hi,


Early this morning I chose an iMac I know to be used heavily and removed the " force home on startup disk" so the user will be working directly from their network home.

I have spent most of the day working at my desk and monitoring this mac via ARD. These are the issues I could see:


The login was slower than usual, which is to be expected.


When launching Adobe PRO, an authentication window pops up asking for admin credentials. If I put my credentials in the program crashed. Not sure why it wants admin credentials.


On a couple of user accounts, when logging in it would say, you cannot log into this computer at this time. However, I could log in and so could other students. If the said student moved on to another mac (original config), they could log in, and access their AD home drive. I have looked at their account and can't see anything out of the ordinary. Time sync on the mac was fine. Any ideas what could cause this?


Surprisingly, I had no other issues. Students were using Word (2011, SP1), Excel, Powerpoint, Photoshop, Sibelius, Logic, Garageband, and the Internet, without any issues. Printing worked fine as well. And of course, how wonderful it was to see applications saving by default to their home!!! – this is definitely the way to go.


I have another batch of Music Club students tomorrow, so will see how that goes. As far as Adobe goes, I will implement the MCX redirector you mentioned in your post.


If there is anything you want me to experiment with then let me know.


Cheers,


Mac

May 31, 2011 10:56 PM in response to M@CMAN2011

Hi M@acman


Nice to hear you had a quite successful test!

M@CMAN2011 wrote:


When launching Adobe PRO, an authentication window pops up asking for admin credentials. If I put my credentials in the program crashed. Not sure why it wants admin credentials.


Yes, the redirection is required otherwise it will not work.

Is it possible that you use Acrobat Pro 9? This version (Reader as well) has an annoying "feature" called SelfHeal. If the entries in the following file are not exactly like Acrobat/Reader want them to be, the self heal process is initiated. This will require admin privileges and change the mentioned file as it is supposed to be (but ironically it changes nothing else in most cases^^). You can deploy this file then by Open Directory Managed Preferences to all users or machines and the admin credentials issue will have gone for all of them (until the next major update, of course..)


M@CMAN2011 wrote:


On a couple of user accounts, when logging in it would say, you cannot log into this computer at this time. However, I could log in and so could other students. If the said student moved on to another mac (original config), they could log in, and access their AD home drive. I have looked at their account and can't see anything out of the ordinary. Time sync on the mac was fine. Any ideas what could cause this?

Yeah, I know that one, too. As far as I can say it is related to user permissions or in most cases, due to locked files and folders. Sometimes the problem goes away, when you reboot the machine and try again (really don't know why). Also, assure that the user is not logged in elsewhere as in this case, a login may not be possible.

And of course, check the folder/file permissions of/in the users home directory and propagate them in the subfolders, if there's any difference (compare the permissions and ACLs to working profiles).


I made an important observation yesterday: Too much redirection is no good ;-) I had activated a local redirection of the folder ~/Library/Caches. It turned out, that this caused some major issues with MS Office (couldn't even properly resave an existing file) and threw smb failures all over the place when observing the connection with Wireshark. With the redirection deactivated, everything was fine again. So don't try this at home :-P

Jun 1, 2011 9:53 AM in response to Community User

Thanks for sharing your knowledge and experience, it is much appreciated. There are very few schools near me that network macs with AD so it's a little daunting when your on your own!


That's odd regarding the local redirection of the ~/Library/cache - that's the only entry I had using MCX as it was the example in some documentation I was reading. Havn't experienced any issues with Word or SMB.


I decided to disable "force home directory to startup disk" on an entire suite this morning and everything went quite well through out the day. I had some more of the dreaded "you cannot log into this computer...." - but followed some of your tips. I noticed one of the users actually had a locked out AD account, and two others were logged in twice. Disconnected both connections and they were able to log in.


As Adobe PRO 9 is never used I decided to uninstall it from a couple of macs and install the adobe reader 10. I no longer get an authentication box, but the wretched program launches ok, and then a couple of seconds later crashes.


So I decided to add an MCX as shown in your original post. Can I get the darn thing to work! It is more than likely that I have probably added it incorrectly so If you don't mind, could you take a look. I have included the local cache folder, should it be different to the method you use.


<key>LoginRedirection-raw</key>\

<array>\

<dict>\

<key>action</key>\

<string>deleteAndCreateSymLink</string>\

<key>destPath</key>\

<string>/tmp/%@/Library/Caches</string>\

<key>path</key>\

<string>~/Library/Caches</string>\

</dict>\

<dict>\

<key>action</key>\

<string>deleteAndCreateSymLink</string>\

<key>destPath</key>\

<string>/Users/Shared/%@/Library/Application Support/Adobe/Acrobat

\

</string>\

<key>path</key>\

<string>~/Library/Application Support/Adobe/Acrobat

\

</string>\


This is what I have noted so far:


1) acrobat folder is not removed from "network user"/Library/Application Support/Adobe/


2) a file called acrobat.. appears in "network user"/Library/Application Support/Adobe/when user logs in.


3) on the local mac the following folder is empty>shared> username>library>application support>adobe>acrobat>


TIA

Jun 6, 2011 2:52 AM in response to M@CMAN2011

That's odd regarding the local redirection of the ~/Library/cache - that's the only entry I had using MCX as it was the example in some documentation I was reading. Havn't experienced any issues with Word or SMB.

Maybe, that's related to our storage hardware and its smb-implementation.



So I decided to add an MCX as shown in your original post. Can I get the darn thing to work! It is more than likely that I have probably added it incorrectly so If you don't mind, could you take a look. I have included the local cache folder, should it be different to the method you use.


<key>LoginRedirection-raw</key>\

<array>\

<dict>\

<key>action</key>\

<string>deleteAndCreateSymLink</string>\

<key>destPath</key>\

<string>/tmp/%@/Library/Caches</string>\

<key>path</key>\

<string>~/Library/Caches</string>\

</dict>\

<dict>\

<key>action</key>\

<string>deleteAndCreateSymLink</string>\

<key>destPath</key>\

<string>/Users/Shared/%@/Library/Application Support/Adobe/Acrobat

\

</string>\

<key>path</key>\

<string>~/Library/Application Support/Adobe/Acrobat

\

</string>\


This is what I have noted so far:


1) acrobat folder is not removed from "network user"/Library/Application Support/Adobe/


2) a file called acrobat.. appears in "network user"/Library/Application Support/Adobe/when user logs in.


3) on the local mac the following folder is empty>shared> username>library>application support>adobe>acrobat>


TIA

Strange, did you follow the setup for MCX Redirections decribed here: http://www.afp548.com/article.php?story=MCXRedirector&query=redirect%2B and are other MCX Settings applied, especially the setting for the Cache folder (and did you set this up in WGM using the "Details"-Tab)? A restart is often required to apply these settings on the client side.


Cheers

Jun 7, 2011 8:35 AM in response to Community User

Hi,

Strange, did you follow the setup for MCX Redirections decribed here: http://www.afp548.com/article.php?story=MCXRedirector&query=redirect%2B and are other MCX Settings applied, especially the setting for the Cache folder (and did you set this up in WGM using the "Details"-Tab)? A restart is often required to apply these settings on the client side.


Cheers


Yes, that was actually the documentation I followed to redirect the Library Cache. I do use the details tab of the student group. When a student logs in and launched Adobe 10 reader, it says, adobe quit unexpectedly.


on the local hard drive of the mac the paths are as follows:


Users>shared>student test account>library

adobe> empty

caches>

in the caches folder are:

com.apple.nsservicescache.plist

acrobat>10.0>acrofnt10.1st

adobe>color>acecache1


Could you possibly send me a screen dump of your mcxredirector entry for adobe?

I'm at a loss so any help is much appreciated

Jun 8, 2011 12:45 AM in response to M@CMAN2011

Hi

M@CMAN2011 wrote:


When a student logs in and launched Adobe 10 reader, it says, adobe quit unexpectedly.

...


on the local hard drive of the mac the paths are as follows:


Users>shared>student test account>library

adobe> empty

That's the default behavior of Adobe Reader, if the app cannot access its files in ~/Library/Application Support/Adobe. This can either be due to they are located on a network home as already mentioned or due to insufficent permissions in this folder.

Something seems to be happening as (at least a part) of the specified path is created in the target. What happens if you try to create that link manually (as the user)?


ln -s ~/Library/Application\ Support/Adobe /Users/Shared/USERNAME/Library/Application\ Support/Adobe


If this succeeds, Adobe should now be able to run and create its necessary folders on the local drive. If not however you'll have to dig deeper: Check that you have write permissions on the target and create files and folders as the student user. I have the issue that symbolic links on certain storage systems cannot be created over smb. But since your cache redirection is working, this will not be the case for your enviroment.


Heres my MCX Redirector config:


In WGM for Adobe:

User uploaded file


And in raw format in the inspector with my cache-cleaner:


<key>com.apple.MCXRedirector</key>
<dict>
    <key>Forced</key>
    <array>
        <dict>
            <key>mcx_preference_settings</key>
            <dict>
                <key>LoginRedirection-raw</key>
                <array>

                    <dict>
                        <key>action</key>
                        <string>deletePath</string>
                        <key>destPath</key>
                        <string>/Users/Shared/%@/Library/Caches</string>
                        <key>path</key>
                        <string>~/Library/Caches</string>
                    </dict>
                    <dict>
                        <key>action</key>
                        <string>deleteAndCreateSymLink</string>
                        <key>destPath</key>
                        <string>/Users/Shared/%@/Library/Application Support/Adobe</string>
                        <key>path</key>
                        <string>~/Library/Application Support/Adobe</string>
                    </dict>
                </array>
                <key>LogoutRedirection-raw</key>
                <array>
                    <dict>
                        <key>action</key>
                        <string>deletePath</string>
                        <key>destPath</key>
                        <string>/Users/Shared/%@/Library/Caches</string>
                        <key>path</key>
                        <string>~/Library/Caches</string>
                    </dict>
                </array>
            </dict>

        </dict>
    </array>
    <key>mcx_targets</key>
    <array>
        <string>user-managed</string>
    </array>
</dict>



Cheers

Jun 9, 2011 11:28 AM in response to Community User

Thanks very much for posting your MCX entry, after studying yours I saw I made a typo. It works fine now. After launching Adobe reader so many times and seeing that wretched error message, It was such a relief when I opened a PDF and it remained on the screen!


I notice you run a logout redirection, what is the benefit of this?


Are you still having issues with Word autosave?


Thanks again for sharing your experiences.

Network Homes: Folder Redirections

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.