LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-16-2009, 04:18 PM   #1
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Rep: Reputation: Disabled
strange message at login


Getting this message right after I enter my password at login:
Quote:
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 writable bu other users.
Then I click on OK and the boot proceeds normally.

I used chmod 644 .dmrc, that made no difference. I had installed 2 programs right before this started, Gnome commander, and K3b. I uninstalled them both, no difference.

It does not seem to make any difference in operations, but it bothers me to have that come up every time I boot up.

Does anybody know how to fix this problem?

Thanks in advance.
 
Old 06-16-2009, 04:35 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
you need to chmod
./dmrc
 
Old 06-16-2009, 06:29 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
I assume that's a typo: $home./dmrc would expand to a file named dmrc in a directory named something like /home/user./ - which likely doesn't exist. Try either /home/user/.dmrc or (as repo suggests) just ./dmrc in your home directory.

If you have chmod'ed the file and it made no difference, it seems likely that the file has changed ownership somehow. You can see the user who owns the file (with other details) by running
Code:
ls -ld ~/.dmrc
(also try ~/dmrc or ./dmrc depending on the directory; ~ expands to your home directory).

If the ownership is wrong you can fix it with
Code:
chown $USER ~/.dmrc
You should also make sure that the home directory has the correct permissions and ownership:

Code:
sudo chmod go-w ~ && sudo chown $USER ~
 
Old 06-16-2009, 11:37 PM   #4
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
rjlee, thank you for your informative and helpful answer.Problem is solved.

Would you please explain what this line does?
Code:
sudo chmod go-w ~ && sudo chown $USER ~
I am still trying to learn Linux. I am not familiar with anything after go-w in the command.

sudo twice in same command? and no idea what &&, or ~ means here.

Thanks again
 
Old 06-17-2009, 01:03 AM   #5
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
sudo lets you run commands as root.
chmod go-w says remove write permission from the file's group and world
~ signifies the current user's home directory
&& is an and operator that lets you run multiple commands
chown $USER makes user the owner of the user's home directory
 
Old 06-17-2009, 01:04 AM   #6
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
go-w is a way to specify permissions with chmod command. It means: for the group to which the user belong (g) and all the others (o) remove (-) the write permission (w). This means that if you had something like
Code:
drwxrwxrwx
the permissions highlighted in red are removed. The ~ is a shortcut for the HOME directory. Then if the command is successful (&&) change the owner (chown) of the home directory to the current user ($USER). man chmod and man chown explain it all in details.
 
Old 06-17-2009, 03:51 PM   #7
joseph2020
Member
 
Registered: Mar 2009
Location: USA
Distribution: Ubuntu 12.04
Posts: 235

Original Poster
Rep: Reputation: Disabled
Admiral Beotch and colucix, thank you for the clear explanations. Every little bit helps in learning the sometimes confusing Linux world.
 
  


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
How to setup system Login banner and Login message 06-03-05 Linux - Newbie 13 07-24-2020 02:05 PM
Strange Repeating Error message in /var/log/message lucktsm Linux - Security 2 10-27-2006 08:29 AM
strange message when i login as a root Whynot Linux - General 6 03-16-2006 05:45 PM
strange message kapa SUSE / openSUSE 1 03-10-2005 03:09 AM
Strange login error message Post Linux - General 2 04-25-2004 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration