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


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: 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 | # ]