Re: sshfs permission problem

2018-08-10 Thread Rupert Gallagher
When you run anything that writes something, that something will have your umask. If you run something as root, set root's umask before running it, not afterwards. Write a script that sets the umask and runs sshfs, then run the script using doas. On Fri, Aug 10, 2018 at 15:13, Hiltjo Posthuma

Re: sshfs permission problem

2018-08-10 Thread Hiltjo Posthuma
On Fri, Aug 10, 2018 at 10:38:52AM +0200, Hiltjo Posthuma wrote: > On Fri, Aug 03, 2018 at 01:44:39PM +0200, Rudolf Sykora wrote: > > Hello! > > > > I run > > > > doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o gid=1000 > > > > But then the mount point is owned (after the

Re: sshfs permission problem

2018-08-10 Thread Hiltjo Posthuma
On Fri, Aug 03, 2018 at 01:44:39PM +0200, Rudolf Sykora wrote: > Hello! > > I run > > doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o gid=1000 > > But then the mount point is owned (after the mounting) by root: > > drwx-- 1 root wheel512 Aug 3 13:22 fzu > > Hence

Re: sshfs permission problem

2018-08-03 Thread Rupert Gallagher
Use umask temporarily. Sent from ProtonMail Mobile On Fri, Aug 3, 2018 at 13:44, Rudolf Sykora wrote: > Hello! > > I run > > doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o gid=1000 > > But then the mount point is owned (after the mounting) by root: > > drwx-- 1 root

Re: sshfs permission problem

2018-08-03 Thread Alexander Hall
On August 3, 2018 3:44:07 PM GMT+02:00, Rudolf Sykora wrote: >On 3 August 2018 at 15:30, Maurice McCarthy >wrote: >> On 03/08/2018, Rudolf Sykora wrote: >>> doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o >gid=1000 >> >> Leave out the 'doas' ? > >Afaik, no, you can't. >Any

Re: sshfs permission problem

2018-08-03 Thread Rudolf Sykora
On 3 August 2018 at 15:30, Maurice McCarthy wrote: > On 03/08/2018, Rudolf Sykora wrote: >> doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o gid=1000 > > Leave out the 'doas' ? Afaik, no, you can't. Any mounting on OpenBSD seems to need root privileges. Ruda

Re: sshfs permission problem

2018-08-03 Thread Maurice McCarthy
On 03/08/2018, Rudolf Sykora wrote: > doas sshfs syk...@pc109.fzu.cz: /home/ruda/mnt/fzu -o uid=1000 -o gid=1000 Leave out the 'doas' ?