Re: Syncthing permissions question
On Thu, 27 Oct 2022 16:43:03 -0500 ITwrx wrote: > i find midnight commander's representation of permissions [1] to be > helpful when first learning about them. You might check that out > going forward. Ah wonderful thank you for the tip!
Re: Syncthing permissions question
On 10/26/22 9:38 PM, Jag Talon wrote: I'm unfamiliar with permissions in general i find midnight commander's representation of permissions [1] to be helpful when first learning about them. You might check that out going forward. 1. f9->right arrow to "file"->down arrow to "chmod".
Re: Syncthing permissions question
Thank you so much for the help! I got it working I didn't realize that usermod was backwards and that I need to reboot / start a new login to see the effects. On 10/27/22 3:10 AM, Zé Loff wrote: 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 This must be the other way round: usermod -G Don't forget that you'll need a new login to notice the effects of this. 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!
Re: Syncthing permissions question
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 This must be the other way round: usermod -G Don't forget that you'll need a new login to notice the effects of this. > 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! > --
Re: Syncthing permissions question
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
Syncthing permissions question
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!
Re: Syncthing
Hi Joshua, thank you very much, your solution helped. Jan On Sat, Nov 24, 2018 at 3:37 AM joshua stein wrote: > On Fri, 23 Nov 2018 at 19:48:04 +0100, Jan Betlach wrote: > > Hi all, > > > > I am trying to sync my media libraries via Syncthing with other machine. > > However Syncthing on OBSD complains about "too many open files" and > refuses > > therefore to scan and synchronize the folder. > > > > I have increased sysctl kern.maxfiles as well as openfiles-max for the > > staff group (of which the user is a member) in login.conf. Probably still > > not enough. > > > > What are safe maximal values for both (kern.maxfiles and openfiles-max) > to > > use? > > Hi, > > Newer versions of syncthing use kqueue by default to watch for file > changes which ends up using a couple file descriptors > per-sub-directory. > > You may be better off just disabling this on large shared folders > and go back to periodic scanning. This can be done through the web > interface by clicking on the folder, then Edit, then Advanced, then > uncheck 'Watch for Changes'. > > https://github.com/syncthing/syncthing/issues/5025 > >
Re: Syncthing
On Fri, 23 Nov 2018 at 19:48:04 +0100, Jan Betlach wrote: > Hi all, > > I am trying to sync my media libraries via Syncthing with other machine. > However Syncthing on OBSD complains about "too many open files" and refuses > therefore to scan and synchronize the folder. > > I have increased sysctl kern.maxfiles as well as openfiles-max for the > staff group (of which the user is a member) in login.conf. Probably still > not enough. > > What are safe maximal values for both (kern.maxfiles and openfiles-max) to > use? Hi, Newer versions of syncthing use kqueue by default to watch for file changes which ends up using a couple file descriptors per-sub-directory. You may be better off just disabling this on large shared folders and go back to periodic scanning. This can be done through the web interface by clicking on the folder, then Edit, then Advanced, then uncheck 'Watch for Changes'. https://github.com/syncthing/syncthing/issues/5025
Syncthing
Hi all, I am trying to sync my media libraries via Syncthing with other machine. However Syncthing on OBSD complains about "too many open files" and refuses therefore to scan and synchronize the folder. I have increased sysctl kern.maxfiles as well as openfiles-max for the staff group (of which the user is a member) in login.conf. Probably still not enough. What are safe maximal values for both (kern.maxfiles and openfiles-max) to use? Thank you Jan