Stuart Henderson <[email protected]> writes:

>> I tried re-installing it, currently I'm getting an error from pkg_add:
>> 
>>      cygnus# pkg_add slock
>>      https://cdn.openbsd.org/pub/OpenBSD/6.7/packages/amd64/: no such dir
>>      Can't find slock
>>      cygnus# cat installurl
>>      https://cdn.openbsd.org/pub/OpenBSD
>>      cygnus# uname -a
>>      OpenBSD cygnus.ricketyspace.net 6.7 GENERIC.MP#176 amd64
>> 
>> Looks like I'll have to wait for the 6.7/ directory to become available
>> before I'll be able to install slock again.
>> 
>
> either set 
> PKG_PATH=http://whatever.mirror/pub/OpenBSD/snapshots/packages/amd64/
> or use pkg_add -Dsnap

Thanks Stuart. That worked (apologies, I was not aware of the -D switch
and PKG_PATH).

  cygnus# pkg_add slock
  ...
  cygnus# ls -la $(which slock)
  -rwxr-sr-x  1 root  auth  23304 May  6 08:22 /usr/local/bin/slock

It set the set-group-id and group to 'auth' correctly.

Also, I checked the slock package in 6.6[1]. The +CONTENTS has:

      @mode g+s
      @group auth

lines that do the right thing. So it was not an issue in release 6.6. I
don't know how/why the set-group-id and group was not set correctly
previously on my installation :|


[1]: http://cdn.openbsd.org/pub/OpenBSD/6.6/packages/amd64/slock-1.3p1.tgz

Reply via email to