Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: MS Office v.x and networked Home directories Apps
You have no doubt noticed all the different posts regarding the issue of working around the bugs in M$ Office to get it to run properly (including VBScript) when users have Network Home Directories. Under Panther none of the already suggested workarounds fixed the problem permanently (although we were able to launch it once or twice and some even kept working until the next log-in).

To get Word to run happily on our Mac OS X 10.3 (Panther) Clients with Network Home Directories hosted on 10.3 (Panther) Server I had to modify the instructions in another hint. While I was at it I made it a script and got the script to fix the files for every user.

Here's my shell script (that runs on the server where the Home Directories are hosted):

#!/bin/tcsh -f
# This script modifies items in the ~/Library/Preferences/Microsoft
# folder of each (network) user to overcome a bug in Word

# change this to your Network Share Point
cd /Users

# Creates a list of all folders in the directory we just switched to
foreach userDir ( * ) 
  if ( ( $userDir != "admin" ) && ( $userDir != "Shared" ) ) then
  # Delete the if section (or part of it) if you have no local users
  # and no "Shared" directory in your Network Share Point
    rm $userDir/Library/Preferences/Microsoft/Office\ Registration\ Cache\ X
    touch $userDir/Library/Preferences/Microsoft/Office\ Registration\ Cache\ X
    chown -f root $userDir/Library/Preferences/Microsoft/Office\ Registration\ Cache\ X
    chown -f $userDir /Users/$userDir/Library/Preferences/Microsoft
    chmod -f 755 $userDir/Library/Preferences/Microsoft/Office\ Registration\ Cache\ X
    chmod -f 755 $userDir/Library/Preferences/Microsoft
  endif
end

exit 0
Copy this script to TextEdit, save it somewhere that makes sense to you (I called mine "wordfix.sh" and saved it in /Library) and make it executable:
chmod +x /path/to/script.sh
Execute the script once as root (sudo /path/to/script.sh), but if the problem returns (e.g. after users log out or restart), then you might need to have the script execute regularly (I have it execute every five minutes) using cron. Just add the following line to your system crontab using your preferred editor (pico works well for me ... sudo pico /etc/crontab):
 *  *  *  *  *      root    /path/to/script.sh > /dev/null
If you are still having problems ensure that the "Default permissions for new files and folders" as set in Workgroup Manager (Sharing: Share Point: Protocols) is "Use standard UNIX behaviour" and not "Inherit permissions from parent" as I think this may have been a problem for me (however this is unverified so don't take it as gospel).
    •    
  • Currently 2.00 / 5
  You rated: 1 / 5 (6 votes cast)
 
[11,957 views]  

10.3: MS Office v.x and networked Home directories | 4 comments | Create New Account
Click here to return to the '10.3: MS Office v.x and networked Home directories' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.3: MS Office v.x and networked Home directories
Authored by: vogunaescht on Jan 14, '04 03:37:07PM
I don't know a lot about OS X server, but couldn't the modifications to the Office Preferences folder be put into a login hook shell script (see LoginWindow Manager)?
So you wouldn't have to execute it every 5 minutes.

[ Reply to This | # ]
10.3: MS Office v.x and networked Home directories
Authored by: osusilas on Oct 18, '04 05:09:04PM
Add this to a login hook, which is run as root. It's a better permanent fix: #!/bin/bash USER="$1" # Fix Microsoft's Stupidity with the equation editor MD="/home/${USER}/Library/Preferences/Microsoft" if [ -d "$MD" ] then /usr/sbin/chown root:wheel "$MD" /bin/chmod 757 "$MD" /bin/chmod +t "$MD" for F in "${MD}/Office Registration Cache"* do /bin/rm -f "$F" /usr/bin/touch "$F" /usr/sbin/chown root:wheel "$F" /bin/chmod 444 "$F" done fi

[ Reply to This | # ]
10.3: MS Office v.x and networked Home directories
Authored by: osusilas on Oct 18, '04 05:11:17PM
Let's try that again.

# Fix Microsoft's Stupidity with the equation editor                                                                                                                                                   
MD="/home/${USER}/Library/Preferences/Microsoft"                                                                                                                                                       
if [ -d "$MD" ]                                                                                                                                                                                        
then                                                                                                                                                                                                   
  /usr/sbin/chown root:wheel "$MD"                                                                                                                                                                     
  /bin/chmod 757 "$MD"                                                                                                                                                                                 
  /bin/chmod +t "$MD"                                                                                                                                                                                  
  for F in "${MD}/Office Registration Cache"*                                                                                                                                                          
  do                                                                                                                                                                                                   
    /bin/rm -f "$F"                                                                                                                                                                                    
    /usr/bin/touch "$F"                                                                                                                                                                                
    /usr/sbin/chown root:wheel "$F"                                                                                                                                                                    
    /bin/chmod 444 "$F"                                                                                                                                                                                
  done                                                                                                                                                                                                 
fi


[ Reply to This | # ]
10.3: MS Office v.x and networked Home directories
Authored by: osusilas on Oct 18, '04 05:13:08PM

#!/bin/bash
# Login Hook Shell Script
USER="$1"
# Fix Microsoft's Stupidity with the equation editor                                                                                                                                                   
MD="/home/${USER}/Library/Preferences/Microsoft"                                                                                                                                                       
if [ -d "$MD" ]                                                                                                                                                                                        
then                                                                                                                                                                                                   
  /usr/sbin/chown root:wheel "$MD"                                                                                                                                                                     
  /bin/chmod 757 "$MD"                                                                                                                                                                                 
  /bin/chmod +t "$MD"                                                                                                                                                                                  
  for F in "${MD}/Office Registration Cache"*                                                                                                                                                          
  do                                                                                                                                                                                                   
    /bin/rm -f "$F"                                                                                                                                                                                    
    /usr/bin/touch "$F"                                                                                                                                                                                
    /usr/sbin/chown root:wheel "$F"                                                                                                                                                                    
    /bin/chmod 444 "$F"                                                                                                                                                                                
  done                                                                                                                                                                                                 
fi


[ Reply to This | # ]