Re: lsof alternative for listing open files?

2018-08-09 Thread Ingo Schwarze
Hi Theo, Theo de Raadt wrote on Thu, Aug 09, 2018 at 06:11:14PM -0600: > Ingo, you don't understand. Kids these days don't want something that > always works. It only has to work most of the time! Then they can > build a company upon the quicksand! What a pity that you already wasted weeks,

Re: lsof alternative for listing open files?

2018-08-09 Thread Thomas Bohl
Hello, > I am aware of fuser and fstat but these seem to only give me inodes. You can use # find /foo -inum 123 to search for the corresponding file.

Re: lsof alternative for listing open files?

2018-08-09 Thread Theo de Raadt
Ingo Schwarze wrote: > Hi Edward, > > Edward Lopez-Acosta wrote on Thu, Aug 09, 2018 at 06:29:04PM -0500: > > > I was looking to port bleachbit, system cleanup tool, to OpenBSD > > and one function is to make sure certain files are not in use before > > it proceeds. > > Strictly speaking,

Re: lsof alternative for listing open files?

2018-08-09 Thread Ingo Schwarze
Hi Edward, Edward Lopez-Acosta wrote on Thu, Aug 09, 2018 at 06:29:04PM -0500: > I was looking to port bleachbit, system cleanup tool, to OpenBSD > and one function is to make sure certain files are not in use before > it proceeds. Strictly speaking, that is impossible due to a TOCTOU race

Re: lsof alternative for listing open files?

2018-08-09 Thread noah pugsley
Have you looked at fstat? https://man.openbsd.org/fstat.1 Sent from mobile.   Original Message   From: Edward Lopez-Acosta Sent: Thursday, August 9, 2018 16:30 To: Ingo Schwarze Cc: misc@openbsd.org Subject: Re: lsof alternative for listing open files? Hi Ingo, I was looking to port bleachbit,

Re: lsof alternative for listing open files?

2018-08-09 Thread Edward Lopez-Acosta
Hi Ingo, I was looking to port bleachbit, system cleanup tool, to OpenBSD and one function is to make sure certain files are not in use before it proceeds. An example would be cache files by a browser which would need closed. Beyond that though it was more of an educational exercise on my

Re: lsof alternative for listing open files?

2018-08-09 Thread Ingo Schwarze
Hi Edward, Edward Lopez-Acosta wrote on Thu, Aug 09, 2018 at 05:41:04PM -0500: > I am aware of fuser and fstat but these seem to only give me inodes. > Is there an equivalent to the Linux application `lsof`? $ pkg_add lsof Obsolete package: lsof (ancient software that doesn't work) Once a

lsof alternative for listing open files?

2018-08-09 Thread Edward Lopez-Acosta
Hello, I am aware of fuser and fstat but these seem to only give me inodes. Is there an equivalent to the Linux application `lsof`? I also noticed there is no `/proc` filesystem so checking that is also out. Thank you, -- Edward Lopez-Acosta

Two Factor Authentication Prompt

2018-08-09 Thread Gav
Hi, I currently use login_ldap to authenticate local user accounts against LDAP. However, I would also like to deploy a two factor approach via SSH eg. using TOTP via login_oath. I can successfully have a user authenticate with either (switching the login class). However, is it possible to use

Re: routing traffic to transparent squid cluster

2018-08-09 Thread Mark Leonard
On Thu, Aug 9, 2018 at 7:59 AM, Joerg Streckfuss wrote: > Dear list, > > i'm playing around with a squid setup, where the http traffic from a > client is transparently routed from the gateway (openbsd 6.3) to two squid > caches (squid 3.5.28). This means the caches are _not_ placed on the >

routing traffic to transparent squid cluster

2018-08-09 Thread Joerg Streckfuss
Dear list, i'm playing around with a squid setup, where the http traffic from a client is transparently routed from the gateway (openbsd 6.3) to two squid caches (squid 3.5.28). This means the caches are _not_ placed on the gateway. With PF this is very easy to achieve: pass in quick on

USB composite devices & OpenBSD

2018-08-09 Thread Denis
There are a lot of modern composite USB devices on the market now like Modems, cameras, etc. How to make them work in OpenBSD like penguin's usbmodeswitch works?

Re: openbsd port of Emby or Plex

2018-08-09 Thread Jordan Geoghegan
On 08/08/18 16:14, Marc Espie wrote: On Wed, Aug 08, 2018 at 11:30:52AM -0700, Jordan Geoghegan wrote: I know minidlna is in ports, but it doesn't do on the fly media transcoding/remuxing with FFmpeg nor does it have an integrated HTML5 video player like Serviio does. I tried minidlna, but