PDA

View Full Version : $HOME/.dmrc file is being ignored...


Ocky
April 2nd, 2009, 01:56 PM
Warning on login:-

"$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"

This in CentOS 5.3. Somehow root has grabbed /home and
won't let go. The user subfolder is OK. Some output ..
[User@localhost ~]$ ls -al /home
total 40
drwxrwxrwx 4 root root 4096 Mar 10 00:42 .
drwxr-xr-x 24 root root 4096 Apr 2 19:33 ..
drwxrwxrwx 42 User User 4096 Apr 2 17:33 User
drwxrwxrwx 2 root root 16384 Mar 3 15:48 lost+found
[User@localhost ~]$

No problem changing the permissions for /.dmrc (chmod 644 /home
/User/.dmrc); but I obviously have to do something with chown
to change from root to User.
(/home is on separate partition for what it's worth.)

What should I do ?

Mrkvonic
April 2nd, 2009, 02:08 PM
As root, while in /:


chown yourname:yourgroup /home/yourusername -R


This should get the home back to you.

Don't open Kate or other KDE apps as root and work in your home directory!
If things really get messy, delete the .ICEAuthority file in your home and restart session.

Cheers,
Mrk

Ocky
April 3rd, 2009, 06:42 AM
Actually, it was easier. All i had to do was to change the permissions for
Group for /home/UserX from 'Create and Delete Folders' to 'Access'

[User@localhost ~]$ ls -al /home
total 40
drwxrwxrwx 4 User User 4096 Apr 3 11:56 .
drwxr-xr-x 24 root root 4096 Apr 3 12:23 ..
drwxr-xr-x 42 User User 4096 Apr 3 12:32 User
drwxrwxrwx 2 root root 16384 Mar 3 15:48 lost+found
[User@localhost ~]$

Took a while for me to figure that out.