On Wed, Oct 26, 2022 at 10:38:04PM -0400, Jag Talon wrote:

> Hello,
> 
> I'm new to OpenBSD and I'm unfamiliar with permissions in general so I'm a
> little lost. I installed syncthing, and it creates the default folder in
> /var/syncthing/Sync which is owned by _syncthing and has the group
> _syncthing.
> 
> I'm able to read the contents of the directory, but I'm unable to write into
> them. I tried adding myself to the _syncthing group by doing:
> 
> usermod -G jag _syncthing
> 
> But it seems that I'm still unable to write to the directory. I know I can
> change the ownership of the files by using chmod -R, but new files will
> still have the same _syncthing user and group and it seems off to keep
> changing permissions of the files.
> 
> How do I enable the user `jag` to read and write to things owned by the
> daemon `_syncthing`?
> 
> Thank you so much!
> 

Show ls -ld /var/syncthing/Sync 

Likely members of the _syncthing group do not have write permissions
to that dir. If so, chmod g+w /var/syncthing/Sync should do it.

Also: after a usermod command, or any copmmand that changes groups for
a user, you would need to re-login as permissions of a login sessino
are determined only at login.

        -Otto

Reply via email to