"$HOME/.dmrc file is being ignored" — Ubuntu Permission Got Messed Up

Last week, I setup an Ubuntu workstation with Ubuntu 8.04. I went straight away and downloaded Ubuntu-tweak and Lazybuntu because they could help me install tons of popular software all at once. I restarted after the installation was finished, upon logging in, I got the following error message:

“User’s $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permissions. User’s $HOME directory must be owned by user and not writable by other users.”

I wasn’t sure exactly what I did that got me this error, but repaired the permission by using the following commands did fix my problem:

sudo chmod 644 /home/youruserfolder/.dmrc
sudo chown username /home/youruserfolder/.dmrc
sudo chmod -R 755 /home/youruserfolder
sudo chown -R username /home/youruserfolder