I’m using my .thunderbird directory mounted from a remote system. I’m using it mounted from a script in plasma login, but I’m changing it to be mounted at boot system instead. What I have done:
When I mount if using sshfs with the script or by hand:
fernando@andromeda:~> sshfs alphatauri:/home/fernando/.thunderbird /home/fernando/.thunderbird
fernando@andromeda:~> mount
.......
alphatauri:/home/fernando/.thunderbird on /home/fernando/.thunderbird type fuse.sshfs (rw,nosuid,nodev,relatime,user_id=1001,group_id=100)
fernando@andromeda:~> fusermount -u .thunderbird
Then I add it to /etc/fstab, i need to add the option user_allow_other to /etc/fuse.conf and
fernando@alphatauri:/home/fernando/.thunderbird /home/fernando/.thunderbird fuse.sshfs _netdev,user,identityfile=/home/fernando/.ssh/id_rsa,allow_other,uid
=fernando,gid=users 0 0
and I test it.
fernando@andromeda:~> mount .thunderbird
fernando@andromeda:~> mount
........
fernando@alphatauri:/home/fernando/.thunderbird on /home/fernando/.thunderbird type fuse.sshfs (rw,nosuid,nodev,noexec,relatime,user_id=1001,group_id=100,allow_other,_netdev,user=fernando)
fernando@andromeda:~> umount .thunderbird
so it seems ok, but i then try to mount it as root as it will be the user who will mount it at boot true?
andromeda:~ # mount /home/fernando/.thunderbird
andromeda:~ # mount
........
fernando@alphatauri:/home/fernando/.thunderbird on /home/fernando/.thunderbird type fuse.sshfs (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,_netdev,user)
andromeda:~ #
So the uid and gid seem to be bad… although
andromeda:~ # ls -l /home/fernando/.thunderbird
total 60
drwx------ 1 fernando users 18 Sep 22 17:03 .Trash-1001
drwx------ 1 fernando users 3760 Nov 15 16:56 04r74epm.perfil
drwx------ 1 fernando users 3916 Sep 25 2019 Crash Reports
drwx------ 1 fernando users 0 Aug 22 20:04 Pending Pings
-rw-r--r-- 1 fernando users 335 Dec 12 2005 appreg
-rw-r----- 1 fernando users 29988 Feb 11 2020 console.log
drwx------ 1 fernando users 2768 Dec 4 2017 g13by0sl.default
-rw-r--r-- 1 fernando users 44 Aug 30 2019 installs.ini
-rw-r--r-- 1 fernando users 223 Aug 30 2019 profiles.ini
andromeda:~ #
Whats wrong?