Hi everyone
I've tried to setup a shared folder between UT and waydroid so I can easily and quickly share files without using the terminal. I want to be able to use easily this share folder in the graphical app Files of Ubuntu Touch.
I've kinda followed this link : https://docs.waydro.id/faq/setting-up-a-shared-folder
So i have first created two directories : ~/shared and ~/.local/share/waydroid/data/media/0/shared
Then I have done the commands :
sudo mount --bind ~/shared ~/.local/share/waydroid/data/media/0/shared
sudo chown phablet:phablet shared
phablet@ubuntu-phablet:~$ ls -l | grep shared
drwxrwxr-x 2 phablet phablet 4096 juin 7 01:04 shared
phablet@ubuntu-phablet:~$
It only works for one file, then the permissions automatically change to 1023 and I'm not authorised to continue sharing files :
phablet@ubuntu-phablet:~$ ls -l | grep shared
drwxrwxr-x 2 1023 1023 4096 juin 9 23:14 shared
phablet@ubuntu-phablet:~$
So I have to do the chown command again for every file...
Furthermore, if I check the id command then I don't see which user is 1023 :
phablet@ubuntu-phablet:~$ id
uid=32011(phablet) gid=32011(phablet) groups=32011(phablet),4(adm),5(tty),20(dialout),24(cdrom),27(sudo),30(dip),44(video),46(plugdev),105(systemd-journal),1001(radio),1002(bluetooth),1003(android_graphics),1004(android_input),1005(audio),1013(android_media),1015(sdcard_rw),1021(gps),2001(android_cache),3002(android_net3),3003(android_net),3004(android_net2),9997(android_nvram)
phablet@ubuntu-phablet:~$
And finally if I reboot UT I have to also re-do the mount --bind command...
I would like to make this shared folder persistent without having to re-do those commands every time, any ideas ?
Thanks