Можно ли разрешить LibreOffice, установленному как Snap, получать доступ к файлам с фиксированного тома NTFS, который обычно монтируется с помощью /etc/fstab?

Мне нужен современный LibreOffice 7 в моей системе Ubuntu 16.04.7 LTS с полной его интеграцией в систему.

Я установил его с snap install libreoffice.

Что странно, он не может получить доступ к файлам на моем томе NTFS, который смонтирован через строку в /etc/fstab:

       $ cat /etc/fstab | grep Windows
UUID=66DE0665334C2F51       /home/norbert/Windows/DATA  ntfs-3g users,defaults 0 4 

$ mount | grep Windows
/dev/sdb5 on /home/norbert/Windows/DATA type fuseblk (rw,nosuid,nodev,noexec,relatime,user_id=0,group_id=0,allow_other,blksize=4096)

Конечно я знаю о :removable-media и это связано:

       $ snap list | grep -i libreoffice
libreoffice            7.0.2.2                     196    latest/stable  canonical*          -

$ snap interfaces  | grep -v ".*-$" | grep -i libreoffice

'snap interfaces' is deprecated; use 'snap connections'.
:audio-playback                  libreoffice,zoom-client
:cups-control                    libreoffice
:desktop                         freeplane-mindmapping,libreoffice,zoom-client
:desktop-legacy                  freeplane-mindmapping,libreoffice
:gsettings                       libreoffice
:home                            freeplane-mindmapping,libreoffice,mdl,zoom-client
:network                         freeplane-mindmapping,libreoffice,zoom-client
:network-bind                    libreoffice,zoom-client
:opengl                          libreoffice,zoom-client
:pulseaudio                      libreoffice
:removable-media                 libreoffice,mdl,zoom-client
:screen-inhibit-control          libreoffice,zoom-client
:unity7                          libreoffice,zoom-client
:wayland                         libreoffice,zoom-client
:x11                             freeplane-mindmapping,libreoffice,zoom-client
gnome-3-28-1804:gnome-3-28-1804  libreoffice
gtk-common-themes:gtk-3-themes   libreoffice
gtk-common-themes:icon-themes    libreoffice
gtk-common-themes:sound-themes   libreoffice
-                                libreoffice:bluez

Я получаю следующее при доступе к файлу внутри /home/norbert/Windows/DATA папка:


Доступ к /home/norbert/Windows/DATA/file.doc был запрещен.

Что мне делать, чтобы Snap'ed LibreOffice мог получить доступ к обычно установленному внутреннему фиксированному диску?


Обновления: то же самое произойдет, если я изменю строку в /etc/fstab на значение по умолчанию:

       UUID=66DE0665334C2F51       /home/norbert/Windows/DATA  ntfs-3g rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2 0 4 

который генерируется во время автоматического монтирования. Это абсолютно странно.

Больше обновлений:

       $ whoami 
norbert

$ id
uid=1000(norbert) gid=1000(norbert) groups=1000(norbert),4(adm),6(disk),7(lp),20(dialout),24(cdrom),33(www-data),46(plugdev),104(fuse),105(lpadmin),112(netdev),119(admin),122(sambashare),124(vboxusers),126(wireshark),129(debian-tor),138(libvirtd),155(docker),1001(local)

$ ls -l ~/Windows/DATA/file.doc
-rwxrwxrwx 1 root root 208384 Dec 24  2018 /home/norbert/Windows/DATA/file.doc

$ touch ~/Windows/DATA/junk.tst
$ ls -l ~/Windows/DATA/junk.tst
-rwxrwxrwx 1 root root 0 Dec  1 21:06 /home/norbert/Windows/DATA/junk.tst


0 ответов

Другие вопросы по тегам