Page 1 of 2

File being ignored on start up (SOLVED)

Posted: Tue Jan 12, 2016 12:34 am
by HarrisCreekCentral
I am using Mint 17.3 I have been going along fine now tonight I start getting this message on start up.:

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 by other users.

The only thing I have done that may be causing the problem I have been setting up my network between two home computers. Any suggestions, and having limited computer knowledge, how do I fix it..

Thanks,
Harvey McRae

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 5:22 am
by Cosmo.
Are you able to log in?

Open terminal and enter:

Code: Select all

ll ~/.dmrc
Paste the output here.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 9:10 am
by altair4
I will admit that unlike Cosmo's rational suggestion to get the facts mine is just a flat out guess but .....
The only thing I have done that may be causing the problem I have been setting up my network between two home computers.
Are you running Mint Cinnamon? And did you share your home folder using the file manager?

When you create a share using the file manager and specify anything but read only the application as it's last step will assign the permissions of 777 to the shared folder. If you do that to your home directory it violates this part of the error message:
User's $Home directory must be owned by user and not writable by other users.
You home directory needs to be set back to 755.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 9:19 am
by HarrisCreekCentral
Cosmo. wrote:Are you able to log in?

Open terminal and enter:

Code: Select all

ll ~/.dmrc
Paste the output here.
Here is my findings:
-rw------- 1 harvey harvey2 Jan 7 20:11/home/harvey/.dmrc

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 9:33 am
by HarrisCreekCentral
altair4 wrote:I will admit that unlike Cosmo's rational suggestion to get the facts mine is just a flat out guess but .....
The only thing I have done that may be causing the problem I have been setting up my network between two home computers.
Are you running Mint Cinnamon? YES

And did you share your home folder using the file manager? Not that I am aware of.
I installed the Samba file on both the upstairs office computer and this computer. That seemed to give me instant access to my documents and picture files that I had set up on the office computer. NOW !!! At first when I was trying to transfer some picture files, I got the message I did not have permission........I did go up to the office, select all the picture files and changed the permission to read and write (or whatever the wording for the full permission)..

When you create a share using the file manager and specify anything but read only the application as it's last step will assign the permissions of 777 to the shared folder. If you do that to your home directory it violates this part of the error message:
User's $Home directory must be owned by user and not writable by other users.
You home directory needs to be set back to 755.
This sounds like you are on the right area.......

My computer "Smarts" are not sufficient to tackle this........Can you give me step by step instructions as to how to set the "Home Directory" back to 755.

Thanks.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 9:54 am
by Cosmo.
At first check the current permissions with

Code: Select all

ls -ld ~/.
in the terminal.

(A small additional step to get facts :wink: )

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 10:37 am
by HarrisCreekCentral
Finding :

drwxrwxrwx 23 harvey harvey 4096 Jan 12 06:28 (Dark Green Highlight) /home/harvey/.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 12:57 pm
by altair4

Code: Select all

chmod 0755 /home/harvey
Sorry for the delay. Not sure why I entered this thread since Cosmo knows more than I do so I just went off to do something else. This thing with samba and the home directory happens so much that my intrusion was instinct.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 1:28 pm
by HarrisCreekCentral
altair4 wrote:

Code: Select all

chmod 0755 /home/harvey
Sorry for the delay. Not sure why I entered this thread since Cosmo knows more than I do so I just went off to do something else. This thing with samba and the home directory happens so much that my intrusion was instinct.

Entered chmod 0755 /home/harvey
Nothing happened
tried sudo chmod 0755 /home/harvey
then asked for password. password entered but still nothing more happens.

I have to step out for some errands, Back in 1 to 1 1/2 hrs.

Thanks

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 1:41 pm
by altair4
Nothing will happen except to change the permissions of the folder.

Run this command again:

Code: Select all

ls -ld ~/.
It should come back with:
drwxr-xr-x 23 harvey harvey 4096 Jan 12 06:28 /home/harvey/.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 1:43 pm
by JoeFootball
HarrisCreekCentral wrote:Nothing happened
Does this mean that the permissions didn't change? Or did you just didn't see any message returned from the shell? If the latter, it was successful. Let's find out...

Code: Select all

ls -ld ~/.
Joe

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 3:28 pm
by Cosmo.
... and in addition: There should indeed something "happen", namely the error message at start up (starting post) should not appear any more. But of course, this happens only, when you log off and back in. Did you do this?

BTW: no sudo needed in this case, as the folder belongs to you. Note, sometimes a sudo too much can break things instead of solving anything. Please don't misunderstand sudo as a kind of swiss universal knife. sudo is a powerful command, wrongly used the shot can go backwards.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 3:40 pm
by HarrisCreekCentral
JoeFootball wrote:
HarrisCreekCentral wrote:Nothing happened
Does this mean that the permissions didn't change? Or did you just didn't see any message returned from the shell? If the latter, it was successful. Let's find out...

Code: Select all

ls -ld ~/.
Joe
The message comes back correct: drwx-xr-x 23 harvey harvey Jan 12 11:28 /home/harvey/.

Now I shut the computer down completely, re-booted but I still get the same message on start up. (User $Home being ignored etc..)

Thanks to both of you for your suggestons.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 3:50 pm
by Cosmo.
HarrisCreekCentral wrote:
Cosmo. wrote:,Open terminal and enter:

Code: Select all

ll ~/.dmrc
Paste the output here.
Here is my findings:
-rw------- 1 harvey harvey2 Jan 7 20:11/home/harvey/.dmrc
I took another look at this and found something, what I overlooked at the first time. :oops:
The group association for the file .dmrc is harvey2, not harvey (what it should be). Do you have any explanation how this can be? harvey2 does definitely sound, as if you had experimented somehow.

For (hopefully) correction do this:

Code: Select all

sudo chown :harvey ~/.dmrc
(In this case sudo is needed, although you are the owner of the file.)
Check again with

Code: Select all

ll ~/.dmrc
BTW: The output for ls -ld ~/. is now correct; this means there has something "happened".

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 4:06 pm
by Buzzsaw

Code: Select all

chmod 644 ~/.dmrc

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 4:46 pm
by Cosmo.
Buzzsaw wrote:

Code: Select all

chmod 644 ~/.dmrc
This is indeed, what the error message suggests. But I really wonder, why. If I look at that file, I always (all my systems) get the permissions as given in the output by HarrisCreekCentral above. And this definitely works. Maybe, that rwxr-xr-x would do it also, I did not test.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 5:14 pm
by HarrisCreekCentral
Cosmo. wrote:
HarrisCreekCentral wrote:
Cosmo. wrote:,Open terminal and enter:

Code: Select all

ll ~/.dmrc
Paste the output here.
Here is my findings:
-rw------- 1 harvey harvey2 Jan 7 20:11/home/harvey/.dmrc
I took another look at this and found something, what I overlooked at the first time. :oops:
The group association for the file .dmrc is harvey2, not harvey (what it should be). Do you have any explanation how this can be? harvey2 does definitely sound, as if you had experimented somehow.

For (hopefully) correction do this:

Code: Select all

sudo chown :harvey ~/.dmrc
(In this case sudo is needed, although you are the owner of the file.)
Check again with

Code: Select all

ll ~/.dmrc
BTW: The output for ls -ld ~/. is now correct; this means there has something "happened".
This is what I get this time. -rw-rw-rw- 1 harvey harvey 2 (Date & Time) /home/harvey/.dmrc

I have no clue what I could have done to get the harvey2

Next message from Buzz Saw to try ( chmod 644 ~/.dmrc ) Should I try that.

Maybe I should just reboot from the DVD, then re-install the whole package. I have pretty well everything backed up and most my packages are in the software packages. It doen't look like there is a simple fix for this one.

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 5:25 pm
by altair4
How in the $#@& did that file change from this:
-rw------- 1 harvey harvey2 Jan 7 20:11/home/harvey/.dmrc
To this:
This is what I get this time. -rw-rw-rw- 1 harvey harvey 2 (Date & Time) /home/harvey/.dmrc
All of my ubuntu machines regardless of DE have it set to 644 just like the error message suggests. All of the Mint machines have it set to 600. I don't know if it matters but my vote is to go with the mint way first:

Code: Select all

chmod 600 ~/.dmrc 
If you get the same error message after a reboot do what the error message and Buzzsaw say:

Code: Select all

chmod 644 ~/.dmrc 

Re: File being ignored on start up

Posted: Tue Jan 12, 2016 5:52 pm
by HarrisCreekCentral
altair4 wrote:How in the $#@& did that file change from this:
-rw------- 1 harvey harvey2 Jan 7 20:11/home/harvey/.dmrc
To this:
This is what I get this time. -rw-rw-rw- 1 harvey harvey 2 (Date & Time) /home/harvey/.dmrc
All of my ubuntu machines regardless of DE have it set to 644 just like the error message suggests. All of the Mint machines have it set to 600. I don't know if it matters but my vote is to go with the mint way first:

Code: Select all

chmod 600 ~/.dmrc 
If you get the same error message after a reboot do what the error message and Buzzsaw say:

Code: Select all

chmod 644 ~/.dmrc 
Now things are happening !!! Using this

Code: Select all

chmod 600 ~/.dmrc 
and the check up code I came back to this original
-rw------- 1 harvey harvey2 Jan 7 20:11/home/harvey/.dmrc (Note: The Jan 7th date) That would have been about the day I upgraded to the Mint 17.1...................Shut down completely ---- restarted and this time I have no error message.. Throughout all this my home screen has changed from the Linux Mint green to the solid BLACK screen.. I think I know where I am going to re-establish the old home format.

I do want to express my grattitude to you folks for spending such time with me.. I am a 78 year old blind in one eye, deaf -partially- in two ears, and self taught in whatever computer skills that I can take credit for. So for me to accomplish this in itself is a miracle and I do Thank You for having such patience with me..

I'll go work on getting my screen back, and will report back on that in a little while.

Re: File being ignored on start up (SOLVED)

Posted: Tue Jan 12, 2016 6:29 pm
by HarrisCreekCentral
Thanks again Folks. Have my screen back to normal colors. Menu square still need work but I will work on getting that back. Right now it is a dull greyish background.

Thank You, Thank You for all the help.