Thursday, July 14, 2011

Effects of Wrong Permissions on /tmp Folder UBuntu 11.04

'Wrong' Permissions on the /tmp folder may cause you to have a 'self denial of service' to your own computer.

Permission of the tmp folder can be changed accidentally or by deletion of the tmp folder.

For instance I deleted the folder when I wanted to delete all the temporary files and I recreated tmp folder. The folder had write, read and execute permission only for the user root. I restarted the machine and when I tried to log in it gave the following error

"There is a problem with the config server: /usr/lib/libconf2-4/gconf-sanity-check-2 exited with status 256"

To solve the problem, I created a bootable flash drive and restarted the machine (and booted from the flash drive). Then I changed the permission of the tmp folder with the following command

sudo chmod a+w /media/hash-name-of-hard-disk/tmp

Replace hash-name-of-hard-disk with hashed name your of hard disk and restart your computer normally.

The problem will be gone!

No comments:

Post a Comment