// Mac OS X Server - Microsoft Office & network homes issues

In an earlier post I've hinted to an issue concerning Microsoft Office when using it in a networked Mac OS X environment and that it would be solved by using NFS instead of AFP for mounting home directories.

This however was an incorrect assumption, the whole story is listed in this 5 year old post on Mac OS X Hints:

Bottom line is that when you use network homes on a Mac (ever since OS 10, or maybe even longer), then Microsoft Office will expect a ”.TemporaryItems” directory in the root of the mounted volume. In most cases it would be inside the root of the “Users” folder on the server.

As I would expect for most organizations, we don't use the “Staff” group. We follow the Unix convention where your primary group has the same name and GID as the username and UID. So the default rights on the ”.TemporaryItems” directory usually are wrong from the start. (root:staff)

On top of that, as would be normal a regular user can't create or modify directories in the root of the “Users” folder on the network so the problem can't be fixed automatically either + in most cases the ”.TemporaryItems” directory doesn't even exist.

In order to solve this you have to create the ”.TemporaryItems” folder inside the root of the “Users” folder located on the server:

$ cd /path/to/volume/or/sharepoint/Users
$ sudo mkdir .TemporaryItems
$ chmod 1777 .TemporaryItems

This is a slightly modified version of the Mac OS X Hints article. Our users don't have a group “Staff” so setting the group doesn't really solve anything. So we just want everyone to be able to write inside this group, thus setting the “Others” to read and write as well instead of no access.

The content of the ”.TemporaryItems” directory is quite safe, regular users will have their own directory inside this one (numbered) which has their own UID + primary GID which in our case is user specific. So nobody can access content from another user.

We've also tried making a symbolic link from ”/tmp” to ”.TemporaryItems”, this however didn't seem to work regardless of the rights. So, your sadly forced to do it as stated in the Mac OS X Hints article.

This solution should work for both NFS home directories (e.g. your Mac is a client inside a regular Unix network, or you use NFS shares on your Mac OS X Server) and AFP home directories.

As some comments mentioned in the Mac OS X Hints article, this issue might date back to Microsoft Office 98 for Mac and is still persistant in Microsoft Office 2011!

Hopefully someone will find this useful, it took us quite a long time to find the problem due to the brilliantly vague errors from Microsoft Office. Though in the end they were right, users really didn't have rights to read or write. But PLEASE tell us where it's trying to write!!!!!!

     

// Wiki: Mac OS X - OD Scripts

These are a few scripts we use for registering and unregistering Macs to an OD server.

Quite useful for those that administer allot of Macs, they save you some manual labour.

     

// Wiki: Mac OS X - rsync script

I've made a wiki entry for rsync scripts under Mac OS X.

Sometimes you need to schedule syncs, it's obvious to use rsync + launchd but I found the end result not to be so obvious ;)

The rsync script listed a.t.m. is an expect script taking into account that you have to enter a passphrase. . . Annoying but it works like a charm for syncing between two Mac servers or clients.

Have fun:

     

// Mac OS X Server - Client update solutions

When you have your own Apple environment you’ll also want to keep your clients up to date. But, since it’s a managed environment a normal user doesn’t have the correct permissions and you’ll want to manage what they get as well. Having the latest and greatest update for each application without testing isn’t exactly a good thing.

For that purpose I’ll write down the two solutions that I know of, one easy solution and a more complex solution.

     

// Mac OS X Server - Enterprise Backup Solutions

If you run your own Apple server then you’ll also (obviously) need to think about backing up whatever is on that server (user home directories, shares, mail data, websites, databases, etc.). For that purpose you could use Time Machine, but from my personal experience I’d have to say that Time Machine really won’t scale that well when your environment grows.

So, when that happens you have to look at the big toys out there and the “real” backup software. But which one?

     
Navigation
Recent Comments
QR Code: URL of current page
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported