$HOME/.dmrc file is being ignored...

Discussion in 'all things UNIX' started by Ocky, Apr 2, 2009.

Thread Status:
Not open for further replies.
  1. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,677
    Location:
    George, S.Africa
    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 ?
     
  2. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    8,698
    As root, while in /:

    Code:
    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
     
  3. Ocky

    Ocky Registered Member

    Joined:
    May 6, 2006
    Posts:
    2,677
    Location:
    George, S.Africa
    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.
     
Loading...
Thread Status:
Not open for further replies.