heedthewarning
Cadet
- Joined
- May 25, 2016
- Messages
- 4
I have a home and an office FreeNAS setup with both upgraded to 11.2. I have successfully installed and set up Syncthing to sync both FreeNAS servers to each other.
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. 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.
Where I am stuck is allowing the user on each PC to have read/write/execute access to the files. I tried using the steps on this page
https://www.ixsystems.com/community...plugins-write-permissions-to-your-data.27273/ and had these results:
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
Solution 2: I get the message
when I enter
Solution 3: I get the message
when I enter
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.
Solution 4: I get the message
for every file or folder I attempt to change permissions to include other to have full access.
I prefer to keep this share secure and not have it set to nobody:nogroup as outlined in the tutorial at https://www.zufallsheld.de/2014/12/14/installing-and-configuring-the-freenas-syncthing-plugin/.
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.
Any ideas, questions, or comments? All is appreciated. Thank you.
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. 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.
Where I am stuck is allowing the user on each PC to have read/write/execute access to the files. I tried using the steps on this page
https://www.ixsystems.com/community...plugins-write-permissions-to-your-data.27273/ and had these results:
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
Solution 2: I get the message
pw: uid `983' has already been allocated
when I enter
pw useradd -n mike -u 983 -d /nonexistent -s /usr/bin/nologin
Solution 3: I get the message
pw: gid `983' has already been allocated
when I enter
pw groupadd -n mike -g 983
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.
Solution 4: I get the message
chmod: FILENAME: Operation not permitted
for every file or folder I attempt to change permissions to include other to have full access.
I prefer to keep this share secure and not have it set to nobody:nogroup as outlined in the tutorial at https://www.zufallsheld.de/2014/12/14/installing-and-configuring-the-freenas-syncthing-plugin/.
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.
Any ideas, questions, or comments? All is appreciated. Thank you.
My primary reason for using Syncthing is file versioning options as a protective measure for deleted or changed files accidentally by staff, with all files synchronized on my home server. This allows me to work at home, have our files on a 2nd server as an off-site backup measure, and I don't need to worry about VNC connection to access my work PC. Of course, I backup regularly on DVD/BluRay disks with an external HDD.
All of us need access to these files on all of our systems at any time. Having a server is a simple solution, but don't want to run into sync conflicts with running Syncthing on each PC to the server, which would force us to have all of our client files on every PC and/or having to maintain large HDDs on each PC.
All of us need access to these files on all of our systems at any time. Having a server is a simple solution, but don't want to run into sync conflicts with running Syncthing on each PC to the server, which would force us to have all of our client files on every PC and/or having to maintain large HDDs on each PC.