Hello,
I'm new to MikroTik and could use some help regarding SFTP / container mount permissions.
I have attached a USB stick to my hAP ax³ and am using SFTP to access it. I have also mounted a folder on the USB stick as /data for a syncthing container that I'm running.
I'm starting the container with the PUID=0 and PGID=0 environment variables. So, it is running as "root". (whoami also says so when checking with /container/shell)
However, I cannot fully access/edit the data on the USB stick from the container.
Both, folders and files created via SFTP show up as belonging to nobody:nobody (65534:65534) for the container. Folders created via SFTP will get "drwx------" permissions, while files are created as "-rw-r--r--".
I have tried to change the permissions using SFTP, but that - while saying "Changing attributes successful" - seems to do nothing at all. The permissions don't really change. (SFTP list shows them to be the same as before.)
Is there anything I change on either the SFTP or the container mount side to make the files and folders fully accessible from the container?
Thanks![Smile :)]()
I'm new to MikroTik and could use some help regarding SFTP / container mount permissions.
I have attached a USB stick to my hAP ax³ and am using SFTP to access it. I have also mounted a folder on the USB stick as /data for a syncthing container that I'm running.
Code:
/container/mounts/add name="syncthing-data" src="/usb1/syncthing-data" dst="/data"
I'm starting the container with the PUID=0 and PGID=0 environment variables. So, it is running as "root". (whoami also says so when checking with /container/shell)
However, I cannot fully access/edit the data on the USB stick from the container.
Both, folders and files created via SFTP show up as belonging to nobody:nobody (65534:65534) for the container. Folders created via SFTP will get "drwx------" permissions, while files are created as "-rw-r--r--".
I have tried to change the permissions using SFTP, but that - while saying "Changing attributes successful" - seems to do nothing at all. The permissions don't really change. (SFTP list shows them to be the same as before.)
Is there anything I change on either the SFTP or the container mount side to make the files and folders fully accessible from the container?
Thanks
![Smile :)](http://forum.mikrotik.com/images/smilies/icon_smile.gif)
Statistics: Posted by suntorytime — Thu Jan 04, 2024 4:15 pm