I tried as root |pkg audit -F|
get:
Code:
pkg audit -F
vulnxml file up-to-date
pkg: Insufficient privileges to read the package database
On FreeBSD-10.3-RELEASE (amd64).
pkg -v
1.9.1
It works with wheel user, but without|sudo|. But not as root and not with|sudo|.
___
|chmod 755 /var/db/pkg solved it.
|
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Walter Schwarzenfeld wrote:
|chmod 755 /var/db/pkg solved it.
Interesting. I had to 'chmod 644 /var/db/pkg/vuln.xml' for the same
effect. Wouldn't best practices set these at 750 and 640? Is there an
upside to restricting access to vuln.xml considering it's world readable
on the web?
Roger
Le 21/10/2016 à 17:24, Walter Schwarzenfeld a écrit :
> |chmod 755 /var/db/pkg solved it.
What was the mode of /var/db/pkg before that ?
--
Mathieu Arnold
signature.asc
Description: OpenPGP digital signature
On 21/10/2016 16:24, Walter Schwarzenfeld wrote:
> |chmod 755 /var/db/pkg solved it.
> |
Possibly this is to do with the
"Update to 1.9.0
- Drop privileges in many commands
- Drop privileges when fetching a file"
Possibly dropping privs to early?
I found that my lazy pf rule to only allow roo
ls -al /var/db/pkg|more
total 137316
drwxr-x--x 1466 root wheel 42496 21 Okt 16:09 .
drwxr-xr-x20 root wheel 1024 21 Okt 16:43 ..
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsu
Le 22/10/2016 à 09:37, Walter Schwarzenfeld a écrit :
> ls -al /var/db/pkg|more
> total 137316
> drwxr-x--x 1466 root wheel 42496 21 Okt 16:09 .
> drwxr-xr-x20 root wheel 1024 21 Okt 16:43 ..
Mmm, ok, I can't see why /var/db/pkg was 751 on your system. Maybe a
strange umask when pk