Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Can't login after sudden shutdown

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 10057
Joined: Wed Jul 12, 2006 1:42 am

Re: Can't login after sudden shutdown

#21

Post by Adrian » Sun Jan 27, 2019 10:08 am

skidoo wrote:
Sun Jan 27, 2019 4:05 am
doesn't look "ok" to me

Code: Select all

drwx------  2 root    root      4096 gen 11 12:41 .gvfs
this can result from su or sudo (vs gksu) being used to launch a graphical program.

Would the unreadable (by anyone other than root) status of .gvfs interfere with desktop session login?
(asking b/c I wonder, but haven't tested this)
Didn't see that, didn't scroll enough to see it I think, would that stop Xfce from logging in?

Mich-C
Forum Novice
Forum  Novice
Posts: 78
Joined: Tue Nov 21, 2017 1:11 pm

Re: Can't login after sudden shutdown

#22

Post by Mich-C » Tue Jan 29, 2019 9:35 am

skidoo wrote:
Sun Jan 27, 2019 4:05 am
doesn't look "ok" to me

Code: Select all

drwx------  2 root    root      4096 gen 11 12:41 .gvfs
Which command should I give to set the correct permissions for this file?
I'll let you know if the problem is solved :)
Thanks again

philotux
Forum Regular
Forum Regular
Posts: 428
Joined: Sun Apr 22, 2018 12:57 pm

Re: Can't login after sudden shutdown

#23

Post by philotux » Tue Jan 29, 2019 9:50 am

You can take the ownership of the file from root back to your user by running:

Code: Select all

sudo chown $USER:$USER ~/.gvfs

skidoo
Forum Guide
Forum Guide
Posts: 1446
Joined: Tue Sep 22, 2015 6:56 pm

Re: Can't login after sudden shutdown

#24

Post by skidoo » Thu Jan 31, 2019 2:19 am

would that stop Xfce from logging in?
I just now tested. No, mismatched ownership of that particular file doesn't prevent desktop login.

find /home/demo -iname .gvfs
^--------- doesn't exist in a fresh install, so
sudo touch /home/demo/.gvfs
^------v session logout, able to login again without a hiccup

.
Knowing that at least one file is affected & since others might be also, I would:

cd ~ && find . \! -user $USER -print
and/or
cd ~ && find \! -readable
and
sudo chown -R myusername:myusername /home/myusername

Mich-C
Forum Novice
Forum  Novice
Posts: 78
Joined: Tue Nov 21, 2017 1:11 pm

Re: Can't login after sudden shutdown

#25

Post by Mich-C » Sat Feb 02, 2019 6:10 am

skidoo wrote:
Thu Jan 31, 2019 2:19 am
would that stop Xfce from logging in?
I just now tested. No, mismatched ownership of that particular file doesn't prevent desktop login.

find /home/demo -iname .gvfs
You're right. I tryed and it didn't solve the problem.
skidoo wrote:
Thu Jan 31, 2019 2:19 am
Knowing that at least one file is affected & since others might be also, I would:
cd ~ && find . \! -user $USER -print
sudo chown -R myusername:myusername /home/myusername
Sorry for my inexperience but should I give this commands from my root folder or from my home folder? :cat: I don't want to mess up my configuration since I have done this many times in the past :number1:

Post Reply

Return to “Hardware /Configuration”