[mint 18 KDE] home folder gone???

Forum rules
Before you post please read how to get help
Post Reply
DC80
Level 3
Level 3
Posts: 136
Joined: Fri Jan 06, 2012 5:37 am

[mint 18 KDE] home folder gone???

Post by DC80 »

Hi all,

I would like to scream... What is happening... I lost my /home/<username>/ directory. As far as I know I did nothing wrong and never used an command or whatever to remove the folder.

What is happening now? Now I can't login (folder does not exist)...

I have now running the live cd (or rather an usb with the live cd on it.) and can see the /home/<username>/. YAY! Good for me... Well I thought so...

I can't access it and viewing the properties of the home folder turn up empty. Also if I access the properties of the user folder it says "cannot access this folder" or something.

Using the CLI is not to work. I can not access it nor change the permissions...

And now I am ready to say HELP! Ok, not that hard but I do some help with this... So can you help me please?

I did everything I know and I do not wanted to create a new folder because it would overwrite the old one...

Thanks in advance ;-)

[edit] I was installing wordpress and therefor using Dolphin in gksu mode... and the "file" protocol keeps crashing...
"The future is predeterment by those who shape it"
deepakdeshp
Level 18
Level 18
Posts: 8973
Joined: Sun Aug 09, 2015 10:00 am

Re: [mint 18 KDE] home folder gone???

Post by deepakdeshp »

Please create a new Mint user.Login as this user say user2. Supposing your lost user name is user1, run following in terminal and post the output

Code: Select all

du -sm /home/usr1
This will give size of your files in MB.
Plesas check trash if any contents are gone there by mistake.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

Mint 20.1 Cinnamon 64 bit with AMD A8/7410 / 8GB
Mint 20.1 Cinnamon AMD Ryzen3500U/8gb
deepakdeshp
Level 18
Level 18
Posts: 8973
Joined: Sun Aug 09, 2015 10:00 am

Re: [mint 18 KDE] home folder gone???

Post by deepakdeshp »

Please create a new Mint user.

Code: Select all

sudo adduser user2
http://tecadmin.net/add-and-delete-user-in-ubuntu/

Login as this user say user2. Supposing your lost user name is user1, run following in terminal and post the output

Code: Select all

du -sm /home/usr1
This will give size of your files in MB.
Plesas check trash if any contents are gone there by mistake.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

Mint 20.1 Cinnamon 64 bit with AMD A8/7410 / 8GB
Mint 20.1 Cinnamon AMD Ryzen3500U/8gb
DC80
Level 3
Level 3
Posts: 136
Joined: Fri Jan 06, 2012 5:37 am

Re: [mint 18 KDE] home folder gone???

Post by DC80 »

deepakdeshp wrote:Please create a new Mint user.

Code: Select all

sudo adduser user2
http://tecadmin.net/add-and-delete-user-in-ubuntu/

Login as this user say user2. Supposing your lost user name is user1, run following in terminal and post the output

Code: Select all

du -sm /home/usr1
This will give size of your files in MB.
Plesas check trash if any contents are gone there by mistake.
Hi deepakdeshp,

Good idea to create another user. I will think of this in the future! So by creating a new user, I can see what is happening.

I did the command and got nothing, well i did get something but not the results I hoped for:

Code: Select all

<username>@anon-anonymous ~ $ du -sm /home/anon
du: kan map '/home/anon/.config' niet lezen: Toegang geweigerd
du: kan map '/home/anon/.local/share/remoteview' niet lezen: Toegang geweigerd
du: kan map '/home/anon/.cache' niet lezen: Toegang geweigerd
du: kan map '/home/anon/.dbus' niet lezen: Toegang geweigerd
2       /home/anon 
If you are not native to this language then it basically means: permission denied.

So this has me thinking that it has to do with a permission problem. In this case I have the folder read outs from the command line: (using ls -la)

Code: Select all

<username>@anon-anonymous ~ $ ls -la /home/anon
totaal 1188
drwxrwxrwx 16 root root    4096 sep 24 07:16 .
drwxr-xr-x  4 root root    4096 sep 24 07:16 ..
drwxr-xr-x  2 anon anon    4096 sep 23 15:34 Afbeeldingen
-rw-------  1 anon anon      53 sep 24 07:18 .bash_history
drwxr-xr-x  2 anon anon    4096 sep 23 15:34 Bureaublad
drwx------  3 root root    4096 sep 22 19:06 .cache
drwx------  4 anon anon    4096 sep 24 07:15 .config
drwx------  3 anon anon    4096 sep 23 15:34 .dbus
drwxr-xr-x  2 anon anon    4096 sep 23 15:34 Documenten
drwxr-xr-x  2 anon anon    4096 sep 23 15:34 Downloads
-rw-rw-r--  1 anon anon     336 sep 23 15:34 .gtkrc-2.0
drwxr-xr-x  3 anon anon    4096 sep 23 15:34 .kde
drwxrwxr-x  4 anon anon    4096 sep 23 15:37 .linuxmint
drwxr-xr-x  3 anon anon    4096 sep 22 19:19 .local
drwxr-xr-x  2 anon anon    4096 sep 23 15:34 Muziek
drwxr-xr-x  2 anon anon    4096 sep 23 15:34 Openbaar
drwxr-xr-x  2 anon anon    4096 sep 23 15:34 Sjablonen
-rw-r--r--  1 anon anon       0 sep 24 07:16 .sudo_as_admin_successful
drwxr-xr-x  2 anon anon    4096 sep 23 15:34 Video's
-rw-------  1 anon anon      59 sep 24 07:14 .Xauthority
-rw-------  1 anon anon 1135261 sep 24 07:18 .xsession-errors
When visually looking at it .config .cache .dbus are locked or have some lock thingies on them. So it would seem that I have to change those permissions?
"The future is predeterment by those who shape it"
deepakdeshp
Level 18
Level 18
Posts: 8973
Joined: Sun Aug 09, 2015 10:00 am

Re: [mint 18 KDE] home folder gone???

Post by deepakdeshp »

Code: Select all

sudo chown  -R anon:anon /home/anon
If there is any permissioms problem this command will change all files under your home directory with anon as the owner.
If I have helped you solve a problem, please add [SOLVED] to your first post title, it helps other users looking for help, and keeps the forum clean.
Regards,
Deepak

Mint 20.1 Cinnamon 64 bit with AMD A8/7410 / 8GB
Mint 20.1 Cinnamon AMD Ryzen3500U/8gb
DC80
Level 3
Level 3
Posts: 136
Joined: Fri Jan 06, 2012 5:37 am

Re: [mint 18 KDE] home folder gone???

Post by DC80 »

deepakdeshp wrote:

Code: Select all

sudo chown  -R anon:anon /home/anon
If there is any permissioms problem this command will change all files under your home directory with anon as the owner.
I feel as of I'm almost there. The permissions seem to work but I still do not have a taskbar and a window manager.

If I press ctrl+alt+f2 then i log in and start sddm with the command sddm... This seem to work but at some point it has to change some permissions on a file but apparently can't do it...
"The future is predeterment by those who shape it"
User avatar
austin.texas
Level 20
Level 20
Posts: 12046
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: [mint 18 KDE] home folder gone???

Post by austin.texas »

DC80 wrote:I feel as of I'm almost there. The permissions seem to work but I still do not have a taskbar and a window manager.
Do you have the taskbar, etc when you log in as a different user?
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
DC80
Level 3
Level 3
Posts: 136
Joined: Fri Jan 06, 2012 5:37 am

Re: [mint 18 KDE] home folder gone???

Post by DC80 »

austin.texas wrote:
DC80 wrote:I feel as of I'm almost there. The permissions seem to work but I still do not have a taskbar and a window manager.
Do you have the taskbar, etc when you log in as a different user?
Yes I have, actually the idea of deepakdeshp is great! When I created a new user, everything is/was working fine except for the anon user of which I lost the home folder...

It need to change permission after this but is not able to:

Code: Select all

Sep 24 18:16:28 anon-anonymous sddm[2658]: Adding cookie to "/var/run/sddm/{a85787ac-8fd2-4413-b22f-19023b13f8d9}"
"The future is predeterment by those who shape it"
Post Reply

Return to “KDE”