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 screenshot of the .dmrc permissions error I was getting when logging into Ubuntu 8.04

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

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.

9 Responses to “Fix: Ubuntu .dmrc permissions error on login”

  1. Vadim P. Says:

    How did that issue occur? I’ve never seen it.

  2. admin Says:

    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.

  3. David Says:

    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).

  4. ASK Says:

    This error occurs if you change the permissions of your /home/ to a permission that is readable and writable by other users.

  5. athosisus Says:

    Thanks, this post was useful for me.

  6. Retrolives Says:

    Thank you!

  7. Faeryanna Says:

    Thanks!
    I had forgotten to what I should set these modes and here it was explained nicely.

  8. Alex Says:

    Thanks! Nothing else worked, but those 2 lines helped me :-)

  9. JorQuake Says:

    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

Leave a Reply