LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   strange message at login (https://www.linuxquestions.org/questions/ubuntu-63/strange-message-at-login-733442/)

joseph2020 06-16-2009 04:18 PM

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.

repo 06-16-2009 04:35 PM

you need to chmod
./dmrc

rjlee 06-16-2009 06:29 PM

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 ~

joseph2020 06-16-2009 11:37 PM

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

JulianTosh 06-17-2009 01:03 AM

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

colucix 06-17-2009 01:04 AM

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.

joseph2020 06-17-2009 03:51 PM

Admiral Beotch and colucix, thank you for the clear explanations. Every little bit helps in learning the sometimes confusing Linux world.


All times are GMT -5. The time now is 04:41 PM.