![]() ![]() When I tried to run syncthing from the syncthing_run.sh script, it complained that there was already a docker container running with the name syncthing and I needed to delete or rename the container in order to run with that name. sh file (no volumes, no other settings I think) - it was like it was running the container with only the default settings - wouldn't sync with any other devices, nothing other than the default share, etc. That worked great, but when I restarted the PC it auto-started the syncthing docker container, but without the extra settings in the. For any dataset being synced and shared via NFS, select the “advanced mode” to set the values of “Mapall User” and “Mapall Group” to the appropriate user, and “syncgrp” respectively.I followed the instructions here to install and run syncthing in a docker container. Any dataset you want to sync, should be given a user of “syncuser” and group of “syncgrp” and be group writeable, so set the permission to owner=rwx and group=rwx, other is your choice.Īs Mike is not going to login to FreeNAS to access data, but is going to mount it locally on their machine via a NFS share, how do you get Mike into the “syncgrp” on their local machine? The answer is you don’t need to if you make use of the “Mapall User” and “Mapall Group” options when defining the share on FreeNAS.ĥ. via Accounts > Users, edit Mike’s user configuration add the new “syncgrp” to the user’s “Auxillary Groups”.Ĥ. ![]() As a dataset can’t have more than one owner: logically, access can only be granted via a common group. But, your user Mike (UID:GID of 1000:1000) can’t access such a dataset. ![]() Now any pool dataset you want the “syncthing jail” to access can be given “syncuser” as the owner and ”syncgrp” as the group. Let’s say you called these sycnuser & sycngrp. Do not enable password login and set the shell to “nologin”. via Accounts > Users, add a new user with an id of 983, uncheck “new primary group” and select the newly added group for the primary group. via Accounts > Groups, add a new group with an id of 983Ģ. ![]() In order for the “syncthing user” to have full rw access to the pool data within the jail, the pool data should also have an owner & group of 983:983 As the matching UID & GID don’t pre-exist on the FreeNAS host, they have to be addded.ġ. If the data you wish to sync is in your main pool, then it will be the “source directory” when you add one or more mount points to your “syncthing” jail. Obvious proviso is that I've no idea how you're multiple office user machines/accounts are setup, so this would be applicable to an individual user and not necessarily fit with any existing user/group account scheme in your office.Īs you know, installing the “syncthing” plugin creates a “jail” in which the process is run by the “syncthing user” with a user & group id of 983:983 I thought I could add the user to the Syncthing group and have the same access, however I cannot create or add any file to the Syncthing-owned folders, nor can I edit or modify any file.Īny ideas, questions, or comments? All is appreciated. I prefer to keep this share secure and not have it set to nobody:nogroup as outlined in the tutorial at. If I try to make a group named mike with a GID 983 the name conflicts with the already created group named mike with a GID 1000 for Ubuntu mounting the share.įor every file or folder I attempt to change permissions to include other to have full access. Pw useradd -n mike -u 983 -d /nonexistent -s /usr/bin/nologin Solution 1: In order to keep the easy access to the files from Ubuntu fstab the user needs to be UID 1000, not 983 for syncthing Where I am stuck is allowing the user on each PC to have read/write/execute access to the files. The main user on each PC has a UID and GID 1000:1000 and the same username (mike) that I have set up on each FreeNAS server. I have NFS sharing set up from my home and office Ubuntu 18 PCs where /etc/fstab have entries to automatically mount each shared NFS folder on FreeNAS to Ubuntu using the same user id and group id Ubuntu uses to match the user id and group id on FreeNAS. I have successfully installed and set up Syncthing to sync both FreeNAS servers to each other. I have a home and an office FreeNAS setup with both upgraded to 11.2. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |