Fix: Ubuntu .dmrc permissions error on login
August 15th, 2008
I thought this would be valuable to some of you that are new to Ubuntu. Being rather new to this Ubuntu Linux thing myself, I have struggled to get the terminal commands for fixing the .dmrc permissions issue just right.
The problem
When logging into Ubuntu 8.04 I would see this error message. It explains that the permissions on my user’s hidden .dmrc file and home directory are wrong.

A photo of the .dmrc permissions error I was getting when logging into Ubuntu 8.04
The Solution
These two commands, to be run in the terminal, fixed the problem for me (many thanks to the Ubuntu forums)
chmod 700 /home/<yourusername>
chmod 644 /home/<yourusername>/.dmrc
Of course you must replace <yourusername> with your actual user name. Afterward executing these in your terminal reboot your system and the .dmrc error should be gone. Perhaps simply logging out and then back in would work, but I did not try this.
I always find screenshots helpful. Here are the two commands as I typed them in my terminal.

Fixing the Ubuntu .dmrc permissions error on login
The Explanation
For the curious: here is what the above commands are doing.
sudo, the first word in each command, is telling the computer to operate in super user mode. It stands for “super user do” and you can read more about it here at Wikipedia, or at sudo’s home page. Essentially it allows you to have temporary root access for the one command line it preceeds.
chmod is an abbreviation for “change mode”, which you can read about here at Wikipedia. It has the power to change permissions on files and/or folders. So in the commands above we use chmod to set the permissions of the .dmrc file and the home directory.
The numbers are octal notation, which you can read more about here at Wikipedia. They are easier to understand as 3 distinct numbers, as in 7, and 0, and 0, instead of a single 3 digit number, as in 700.
700 stands for:
- user permissions of 7. This gives full read and write access to your user.
- group permissions of 0. This gives no access to group.
- other permissions of 0. This gives any other user no access.
And 644 stands for
- user permissions of 6. Your user can read and write, but not execute the file.
- group permissions of 4. Group can read, but not write or execute the file.
- other permissions of 4. Other users can read, but not write or execute the file.
August 15th, 2008 at 8:14 pm
How did that issue occur? I’ve never seen it.
August 16th, 2008 at 1:13 pm
I am not sure what causes this issue. I have had it occur once on my laptop and twice on my iMac. Both are running version Ubuntu 8.04.
August 18th, 2008 at 3:35 am
It’s probably worth mentioning that the above can also be done from within nautilus by right-clicking the file, opening its properties dialogue and changing the permissions there. It’s somewhat more intuitive than having to use the terminal (although commands are easier to copy & paste).
September 6th, 2008 at 11:14 am
This error occurs if you change the permissions of your /home/ to a permission that is readable and writable by other users.
September 12th, 2008 at 1:57 am
Thanks, this post was useful for me.
October 21st, 2008 at 11:41 am
Thank you!
October 31st, 2008 at 5:13 am
Thanks!
I had forgotten to what I should set these modes and here it was explained nicely.
December 5th, 2008 at 5:26 am
Thanks! Nothing else worked, but those 2 lines helped me
December 9th, 2008 at 11:14 am
Thank’s i’ve been searching for this solution for several days, it happens to on my laptop before some updates i think…
greetings from 37°27′28,23”S; 72°20′09,94”W