[HOW TO] solving .dmrc and $HOME permission error

Hello Everybody,

The last week, co-worker told me that her PC can not logging. It got the pop-up at screen logging:

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 writeable by other users.

1. What is the .dmrc file?
The .dmrc is an intialization file which the system checks during session logon. Specifically, gnome checks the file for any specific language or session information it has not located elsewhere. While often the file is blank exceept for the basic header data, it may contain a specific language to use at session startup. Below is an example. The plain text is the default entry, the bold text is what would be added to begin the session with a specific language.

2. What does it mean?
The system detected an error in the ownership and/or permissions of the $HOME folder or the .dmrc file. You will still be able to gain access to your user account and have administrative (sudo) rights if you are in the admin group.

3. How to fix?

a .dmrc file should be owned by user.
$sudo chown username /home/username/.dmrc

b. set 644 permission
$sudo chmod 644 /home/username/.dmrc

noted: when this command is run that you may get a message "unable to access /home/user/.gvfs This is not a problem and references the .gvfs is a virtual file system.
umount /home/username/.gvfs
rm -r /home/username/.gvfs

c.
$sudo chown username /home/username

d. And must not be writable by other:
$sudo chmod 755 /home/username



0 nhận xét:

Post a Comment