/var filesystem is full

Hi,

Is there a way to clear the temp files from /var/tmp?
Is root access required to delete the files?

Thanks,
Narayan

The directory "/var/tmp" is called this way for a reason. Check before with "lsof", "w" or a similar tool to find out if a process accesses the file. If not delete them.

Without knowing which temp files you are talking about it is difficult to know if you need root access or not. Generally speaking, you can delete every file you have write access to, either via direct ownership or group membership or because the file is "world"-writeable. If neither is the case oyu need root. So judge for yourself.

I hope this helps.

bakunin

Your should however exercise judgment before removing files in /var/tmp, especially those you don't know the origin.

Unlike /tmp which contains files that can be removed abruptly, for example after a reboot, /var/tmp is a persistent storage and only the applications that created files there are supposed to clean up them. Applications might loose some data if you remove files that belongs to them.