LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 11-10-2006, 08:20 PM   #1
linubex
Member
 
Registered: Mar 2005
Location: California
Distribution: mandrake 2008
Posts: 64

Rep: Reputation: 15
Unhappy 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

Last edited by linubex; 11-13-2006 at 03:45 AM.
 
Old 11-11-2006, 03:22 AM   #2
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
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>
 
Old 11-11-2006, 05:51 PM   #3
linubex
Member
 
Registered: Mar 2005
Location: California
Distribution: mandrake 2008
Posts: 64

Original Poster
Rep: Reputation: 15
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
 
Old 11-12-2006, 03:30 AM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
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.
 
Old 11-13-2006, 02:51 AM   #5
linubex
Member
 
Registered: Mar 2005
Location: California
Distribution: mandrake 2008
Posts: 64

Original Poster
Rep: Reputation: 15
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
 
Old 11-13-2006, 02:56 AM   #6
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 46
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?
 
Old 11-13-2006, 03:24 AM   #7
linubex
Member
 
Registered: Mar 2005
Location: California
Distribution: mandrake 2008
Posts: 64

Original Poster
Rep: Reputation: 15
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
 
Old 11-19-2006, 06:02 PM   #8
linubex
Member
 
Registered: Mar 2005
Location: California
Distribution: mandrake 2008
Posts: 64

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't log in, "User's $HOME/.dmrc file is being ignored...." georgecrisp Ubuntu 9 02-06-2008 03:35 PM
.forward file not working for user having it's home directoryon NFS mounted directory skverma_in Linux - General 0 02-14-2005 02:54 AM
recent attack via phpBB, log files deleted? accessed file system outside /home/ enzo250gto Linux - Security 8 12-17-2004 01:51 PM
how do i get user authid in sendmail log file ? pd5c18 Linux - Networking 0 08-21-2004 08:32 AM
Cant log on to home user aikempshall Slackware 1 05-12-2004 11:16 AM


All times are GMT -5. The time now is 08:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration