On Sun, 13 May 2007 00:54:13 +0200 Francesco Poli wrote:

[...]
> $ ls -l /var/lib/aptitude/pkgstates
> -rw-rw---- 1 root root 1728097 2007-05-08 19:17
> /var/lib/aptitude/pkgstates


Aaargh!  Stop the press!  ;-)

I've just found out where the problem lies.
While hardening the system I set 007 as default umask for regular user
and as system-wide setting.  I also had set umask 007 for root: since
/var/lib/aptitude/pkgstates is apparently rotated, it's recreated
everytime its content changes, and its permissions are set accordingly
to root's umask.

Setting umask 022 for root and installing/removing a package solves both
the problems (bugs #421809 and #421811).
Now I can see the 'A' characters in the output of "aptitude search foo",
even when I am a regular user.  Moreover the simulated purge shows the
same scenario for root and regular users.
And, of course, no more red warnings when I fire up aptitude with no
arguments as a regular user...


I think both these bugs can be closed.
Thanks for investigating in them, and apologies for the noise.

-- 
 http://frx.netsons.org/doc/nanodocs/testing_workstation_install.html
 Need to read a Debian testing installation walk-through?
..................................................... Francesco Poli .
 GnuPG key fpr == C979 F34B 27CE 5CD8 DC12  31B5 78F4 279B DD6D FCF4

Attachment: pgpqqak5ZWUpZ.pgp
Description: PGP signature

Reply via email to