Chown /home mess

My YunoHost server

Hardware: Raspberry Pi 3 at home
YunoHost version: 11.0.2.10
I have access to my server : Through SSH | through the webadmin
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : yes
If yes, please explain:
1 After install i attached a hdd and mounted it permanently and shifted /home to this hdd (like stated in yunohost website Adding an external storage to your server | Yunohost Documentation)
2 Installed apps like nextcloud, syncthing and filebrowser
3 created a shared space for syncthing and nextcloud in yunohost.multimedia and changed ownership to a group called multimedia, which was extended in /etc/group with nextcloud and syncthing (Syncthing / permissions — Create a share with existing folder - #9 by mateMatt)
4 wanted to use filebrowser as graphical file management tool with more power, e.g. also having permission to /home/users or /home/yunohost.app/syncthing and so on, so i changed ownership of /home bluntly with

sudo chown -R filebrowser:filebrowser /home

ls -l gave for all other directories root as owner and group

lrwxrwxrwx   1 root        root            7 Dec  6 18:00 bin -> usr/bin
drwxr-xr-x   3 root        root         4096 Jan  1  1970 boot
drwxr-xr-x  17 root        root         3920 Jan 11 23:38 dev
drwxr-xr-x 106 root        root         4096 Jan 11 23:44 etc
drwxr-xr-x   7 filebrowser filebrowser  4096 Jan 10 23:17 home
lrwxrwxrwx   1 root        root            7 Dec  6 18:00 lib -> usr/lib
drwx------   2 root        root        16384 Dec  6 18:44 lost+found
drwxr-xr-x   2 root        root         4096 Dec  6 18:01 media
drwxr-xr-x   3 root        root         4096 Jan 10 15:16 mnt
drwxr-xr-x   2 root        root         4096 Jan 10 23:30 opt
dr-xr-xr-x 231 root        root            0 Jan  1  1970 proc
drwx------   5 root        root         4096 Jan 10 23:30 root
drwxr-xr-x  35 root        root         1060 Jan 12 00:41 run
lrwxrwxrwx   1 root        root            8 Dec  6 18:00 sbin -> usr/sbin
drwxr-xr-x   2 root        root         4096 Dec  6 18:01 srv
dr-xr-xr-x  12 root        root            0 Jan  1  1970 sys
drwxrwxrwt  13 root        root         4096 Jan 12 00:39 tmp
drwxr-xr-x  11 root        root         4096 Dec  6 18:01 usr
drwxr-xr-x  13 root        root         4096 Jan 10 15:45 var

5 I dont have proper backup
6 I changed ownership to

sudo chown -R root:root /home

Description of my issue

1 Apps not working properly anymore, e.g. synthing as it lost permission to own yunohost.app/syncthing as it seems.
2 No ssh to /home

There are solutions described in forum to install same setup on device B and getfacl setfacl thingy it back to device A, or do fresh install. But maybe there is a softer solution to the mess created.

Thanks!

I reinstalled yunohost. Apps are more less working normally, faced other permission issues after trying to reenact previously stated setup in more cautious way. Will close this thread and make more specific new one. Thx.

1 Like

Could you link to the more specific new one(s)? Might help others if they stumble across this one, as I did. :slight_smile: