LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Cannot log user; $HOME/.dmc file (https://www.linuxquestions.org/questions/mandriva-30/cannot-log-user%3B-%24home-dmc-file-500474/)

linubex 11-10-2006 08:20 PM

Cannot log user; $HOME/.dmrc file
 
Hello,
I just finished upgrading from 2006 to 2007 Mandriva DVD i586 Powerpack. All seems great, except that out of my two user accounts, I am unable to log one of them in. I checked that the account is still there, along with all the files, but I get this message at the GUI login after I type the password:

User's HOME/.dmc 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.


The next step is that the system reboots. I checked the user permissions under System Configuartion and all seems the same between my two users. What do I need to do to fix this problem? Thanks for the help.

-Phillip

uselpa 11-11-2006 03:22 AM

Please post the results of the follwing commands (as root):
Code:

ls -l /home/<userid>/.dmc
ls -ld /home/<userid>
cat /etc/passwd | grep ^<userid>


linubex 11-11-2006 05:51 PM

Quote:

Originally Posted by uselpa
Please post the results of the follwing commands (as root):
Code:

ls -l /home/<userid>/.dmc

[root@localhost Desktop]# ls -l /home/shari/.dmc
ls: /home/shari/.dmc: No such file or directory


ls -ld /home/<userid>

[root@localhost Desktop]# ls -ld /home/shari
drwxr-xr-x 49 shari shari 4096 Nov 10 18:04 /home/shari/


cat /etc/passwd | grep ^<userid>

[root@localhost Desktop]# cat /etc/passwd | grep ^shari
shari:x:500:500:shari:/home/shari:/bin/bash


Thanks for helping, I hope this tells you some useful information. I tried all the same commands with my working account and obtained similar information (permissions were the same). I also received the same error of No such file or directory. Perhaps I typed something incorrectly? Or is this part of the problem? I can list the contents of shari's home directory if I take away the /.dmc - what is .dmc?

Thank-you,
Phillip

uselpa 11-12-2006 03:30 AM

Quote:

Originally Posted by linubex
what is .dmc?

I have no idea. What I found on my system is a ~/.dmrc file (maybe you mistyped the error message?)
Code:

pu@slackw:~$ v .dmrc
-rw------- 1 pu pu 22 2006-06-11 20:35 .dmrc

pu@slackw:~$ cat .dmrc
[Desktop]
Session=kde

Try to see if you have this ~/.dmrc file, or recreate it like mine if you don't. Make sure it has 644 permissions.

linubex 11-13-2006 02:51 AM

Quote:

Originally Posted by uselpa
I have no idea. What I found on my system is a ~/.dmrc file (maybe you mistyped the error message?)

Yep, that's exactly what I did.




Quote:

Originally Posted by uselpa

pu@slackw:~$ v .dmrc
-rw------- 1 pu pu 22 2006-06-11 20:35 .dmrc

pu@slackw:~$ cat .dmrc
[Desktop]
Session=kde

Try to see if you have this ~/.dmrc file, or recreate it like mine if you don't. Make sure it has 644 permissions.

Ok, here is what I received:

[root@localhost Desktop]# v. dmrc
bash: v.: command not found
[root@localhost Desktop]# ~/.dmrc
bash: /root/.dmrc: Permission denied
[root@localhost Desktop]# cat .dmrc
cat: .dmrc: No such file or directory

After my .dmrc error as posted above, correction noted, I then received this partial message:

/etc/x11/gdm/Presession/Default:Registering your session with wtmp and utmp

/etc/x11/gdm/Presession/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:20.Xservers " -h "" -l ":20""shari"

There are four or five other lines after this. If you need these extra lines, is there a way I can access them from some log and then copy/paste?

Thank-you,
Phillip

uselpa 11-13-2006 02:56 AM

You need to do this a little better...
It's "v .dmrc" not "v. dmrc", and you need to be in your home directory, not in the Desktop directory. Or just do "v ~/.dmrc" and "cat ~/.dmrc".
Finally, did you create ~/.dmrc or not?

linubex 11-13-2006 03:24 AM

Quote:

Originally Posted by uselpa
You need to do this a little better...
It's "v .dmrc" not "v. dmrc", and you need to be in your home directory, not in the Desktop directory. Or just do "v ~/.dmrc" and "cat ~/.dmrc".
Finally, did you create ~/.dmrc or not?

No, I have not created ~/.dmrc - how do I do this? I suppose this is why I get:

[root@localhost home]# v .dmrc
bash: v: command not found
[root@localhost home]# v ~/.dmrc
bash: v: command not found
[root@localhost home]# cat ~/.dmrc
[Desktop]
Session=default

linubex 11-19-2006 06:02 PM

This wasn't the clever solution that I wanted, nor the learning curve I was hoping for, but I at least solved my problem. I simply created another user, moved the files using root, and then deleted the "problem" user. Finished.


All times are GMT -5. The time now is 07:29 AM.