Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ingenious

macrumors 68000
Original poster
Jan 13, 2004
1,509
4
Washington, D.C.
This is the culmination of a long series of events.

It all started with not properly uninstalling Microsoft Office 2004 Test Drive before installing Office.

Then, I started (of course) having problems. If I opened Word first, everything was normal. However, if I clicked on a Word document first without Word being open, a German localized version would open instead.

I tried to hunt down the Remove Office application, but I had the name wrong and so I didn't find it in my normal Office install. I found it in /private/var/tmp/ "something" / "and then the folder that contained what I took to be the Office Test Drive [German/every other language inside]" I ran it, and it did strange things.

For one thing, it showed a copy of Office X Test Drive on the computer (there's not one) along with two copies of Office, 2004 and 2004 Test Drive. I clicked Remove and it did its thing, but everything was still there (except for my registered version).

I, unfortunately in hindsight, since I was having trouble getting this to remove, thought that the folder had been created by Microsoft Office because I had never heard of it. I then proceeded to delete the folder and empty the trash.

Now, all sorts of weird things are happening.

The keychain is stored in that folder (no saved passwords, no ability to recreate keychain).

No Web 2.0 apps.

No secure connections.

Weird Word printing errors (click File > Print and Word immediately crashes)

Microsoft AutoUpdate won't.

edit: I tried manually updating Office (I reinstalled from the CD) and the installer says Office is not installed.

Is there anyway to just install the parts I need or should I just Archive and Install?
 
Is there anyway to just install the parts I need or should I just Archive and Install?

You could try just recreating the directory and then rebooting your machine.
Open the terminal, and type the following:

sudo mkdir -p /private/var/tmp

It will ask you for your password. Once you type that correctly, then type
the following command:

sudo chmod 01777 /private/var/tmp

This time it won't ask for your password (unless you type too slowly...)

Reboot the machine and see if things work better.
 
I just tried recreating the directory, and after a restart, everything's back to normal (except Mail and iChat passwords don't show up in the keychain... in fact, almost nothing's there except for a certificate, but it's working again.).

Can someone explain this to me?

Why was this directory so important and why wasn't it "in use by Mac OS X"?

Why did I need to restart?
 
Why was this directory so important and why wasn't it "in use by Mac OS X"?

Why did I need to restart?

Lots of processes running on your computer use files in the /private/var/tmp
folder. Some of them will fail to start if that folder does not exist. You
needed to reboot to make sure that all of those processes got a chance to
start up correctly. Most (hopefully all) of the files found in that folder are
of a completely temporary nature. In fact, a lot of UNIX based OSes clean
out their temporary directories (such as /private/var/tmp, /var/tmp, /tmp,
/opt/tmp) as one of the first things that happens when the machine is
restarted.

Files can be removed in UNIX even when they are in use under certain
circumstances. Any software that has a file open when it is removed will,
in general, continue to function properly. At least until it closes the file and
then tries to re-open it for reading.
 
Lots of processes running on your computer use files in the /private/var/tmp
folder. Some of them will fail to start if that folder does not exist. You
needed to reboot to make sure that all of those processes got a chance to
start up correctly. Most (hopefully all) of the files found in that folder are
of a completely temporary nature. In fact, a lot of UNIX based OSes clean
out their temporary directories (such as /private/var/tmp, /var/tmp, /tmp,
/opt/tmp) as one of the first things that happens when the machine is
restarted.

Files can be removed in UNIX even when they are in use under certain
circumstances. Any software that has a file open when it is removed will,
in general, continue to function properly. At least until it closes the file and
then tries to re-open it for reading.

Hey, thanks for the explanation!

edit: so would the folder and everything else have come back on their own if the computer had just been restarted?
 
OK, I'm still having problems.

The keychain will still NOT remember any passwords, and it's causing problems (Mail won't send [doesn't always ask for passwords], iChat needs to have its password everytime...)

Help, again?
 
Hey, thanks for the explanation!

edit: so would the folder and everything else have come back on their own if the computer had just been restarted?

Probably not. The system assumes the /private/var/tmp folder exists, and that it has the correct permissions. Why shouldn't it? :eek:

At this point I'm not sure why there are still problems with your keychain. As I said, I'm pretty surprised that the removal of /private/var/tmp should have had such an effect. Is it possible that your keychain file, which generally lives in /users/USERNAME/Library/Keychains/login.keychain has been damaged, deleted, or had its permissions changed?

Navigate to it and double click on that file to see if keychain access can open it. If not, hopefully it will give you some error message that points you in the right direction to a fix.
 
Probably not. The system assumes the /private/var/tmp folder exists, and that it has the correct permissions. Why shouldn't it? :eek:

At this point I'm not sure why there are still problems with your keychain. As I said, I'm pretty surprised that the removal of /private/var/tmp should have had such an effect. Is it possible that your keychain file, which generally lives in /users/USERNAME/Library/Keychains/login.keychain has been damaged, deleted, or had its permissions changed?

Navigate to it and double click on that file to see if keychain access can open it. If not, hopefully it will give you some error message that points you in the right direction to a fix.

Okay, I found the file and it opened okay, but it looked exactly the same as before (as it should have I guess, but all of the same stuff was missing).

Can I just scrap my keychain and start over?
 
[Mod, can you please move this to the pre-Leopard troubleshooting forum?]

Okay, sorry to resurrect such an old thread, but it was the easiest way for everyone to know what was going on.

Anyway, the problem never completely went away; I still had issues with passwords being remembered and things like that.

It was tolerable in hopes that someday I'd get it fixed, until today.

Today I tried to install Leopard, and it won't install because of this problem (I think.) It says it must wipe the drive because it can't write to it... and Disk Utility on the Leopard DVD says the HD needs repair. I repaired both the drive and its permissions with the Tiger DVD (Leopard DVD wouldn't do it) and it said the drive didn't need repair, but it fixed a myriad of permissions issues.

I honestly cannot afford to wipe this drive, and the only external drive I have is a 250GB USB drive formatted in FAT32.

Is there someway to migrate the account and network settings (etc.) to an external volume for use with Migration Assistant after Leopard wipes the drive?
 
Old post, related question...

I was having a problem with my system and discovered that the "/tmp folder" had somehow been deleted (not corrupted, but actually deleted). I have a backup clone of my system drive but it was not current (~2 months old), so I did not want to do a restore. Instead, I revealed invisible folders and simply dragged the /tmp folder from the cloned drive and dropped it into the /private folder on the malfunctioning drive. This seemed to work just fine, and the current system drive appears to be functioning normally.

The Q: is this a perfectly acceptable/safe solution? Can I go on without worry? Or should I backup the current drive, wipe it, do a clean OS install (High Sierra 10.13.6), and migrate data from the the backup just to be sure that nothing will happen later? This would not be such a big deal, but maybe it is totally unnecessary. Your advice is much appreciated!


NOTE: I am aware of the recommendations to use the Terminal commands included in previous posts as well as


So again, the Q is does this matter (i.e. should I delete and then recreate the /tmp folder using Terminal), or is what I did just as good?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.