How To Remove the Password or Document Protection on a Microsoft Word Document

These instructions are for the version of Word that comes with Microsoft Office XP or Office 2003. I will explain 3 different techniques so hopefully one of the three techniques will work for you.

Technique 1

1. Switch to the HTML code view of the Word document by using Microsoft Script Editor. You can launch the Microsoft Script Editor by pressing the ALT+SHIFT+F11 key combination while in Word.
2. Search for the word “Password” and you should find a block of text that looks like this:

<w:DocumentProtection>ReadOnly</w:DocumentProtection>
<w:UnprotectPassword>19E8E61E</w:UnprotectPassword>

3. You can remove the document protection by deleting those two lines and then save the document. When you reopen the document the protection should be gone. If you want to remove a document password then replace the password with “00000000”. So for the example above, you would replace “19E8E61E” with “00000000”. Save the document and close the script editor. When you reopen the document, the password should be gone.

Note: This technique does not work for “File Open” password protected Word files. Office encrypts these files with a 40 bit key which can not be bypassed with this technique.

Technique 2

This technique removes the “document protection” feature of a Microsoft Word XP or 2003 document.

1. Create a new Word document.

2. From the top menu bar select Insert | File and then browse for the Word document that you want to remove the password on.

3. Select the password protected Word document and select Insert which will insert the password protected Word document into the new empty Word document you just created.

4. Finally, select Tools from the top menu and confirm that there is no longer an “Unprotect document” menu item which will mean the document protection has been removed.

Technique 3

1. Open the document as “read-only”

2. Save it under a different file name but save it as “.rtf” file format

3. Open the .rtf document and then resave it as “.doc” file format

4. Done. The password should now be removed from the document. Some of the formatting may be a little off due to having saved it in .rtf format but the password should be removed.

Note: Similar to technique 1, this method does not work for “File Open” password protected Word files.

Microsoft Office Logo

Leopard ByHost Plist Preference File Naming Convention Change

In Mac OS X 10.4 Tiger some system preferences were unique to a particular computer and so were named using a naming convention that included the MAC address of the first network device in the computer (en0). In Mac OS X 10.5 Leopard this naming convention was changed to use a different unique identifier other than the first network adapter’s MAC address. Leopard now uses something called the UUID for this unique identifier. You can determine a UUID of a Leopard computer by running the terminal command:

ioreg -rd1 -c IOPlatformExpertDevice | grep -E '(UUID)'

Terminal

Error When Compiling PHP in CentOS 64 Bit

Library files in CentOS 64 bit are stored in the directory /usr/lib64. But in normal 32 bit CentOS, library files are stored in /usr/lib so this causes a problem when trying to compile source code that looks for library files in /usr/lib. When using the default configure options for compiling PHP, the directory /usr/lib is searched for library files so if you have any 64 bit applications installed, their associated library files will not be found. For example, trying to compile PHP with the configure option:

--with-mysql=/usr

will result in the error:

/usr/bin/ld: cannot find -lmysqlclient

You can fix this MySQL error and other configure errors relating to library files not being found by adding the following option to the configure line:

--with-libdir=lib64

Code

How to Install VMWare Tools in CentOS 5

Install software needed by VMware Tools

1. Install packages to build the kernel modules

yum install gcc kernel-devel

2. Check the running kernel matches the kernel headers

uname -r             # running kernel
rpm -q kernel-devel  # installed kernel headers

3. If the two versions do not match, run

yum -y upgrade kernel kernel-devel
reboot

4. Find out where the kernel headers are (you may need this later)

ls -d /usr/src/kernels/$(uname -r)*/include

Prepare and install VMware Tools

1. From VMware Workstation: go to VM> Install VMware Tools

2. From the VM: mount the virtual cd drive

mount /dev/cdrom /mnt/

3. Extract VMware Tools to /tmp/

tar -C /tmp -zxvf /mnt/VMwareTools-5.5.3-34685.tar.gz

4. Unmount the virtual cd drive

umount /mnt

5. Now run the installer

cd /tmp/vmware-tools-distrib
./vmware-install.pl

6. When asked Do you want to run vmware-config-tools.pl?, answer “Yes”.

VMWare Infrastructure