Bug#391038: clamscan dies with ERROR: Can't get information about user clamav when run as root

2006-10-05 Thread Stephen Gran
This one time, at band camp, Graham said:
  Indeed, there does not seem to be a clamav user on my system. Maybe
  the clamav package should create it?
 
 In a word, yes. I'm a little confused as to how you've ended up without
 the user, to be honest.
 
 I don't have the clamav-base package installed... that's how.
 
 I had selected clamav (etch) and clamav-data (volatile) for 
 installation.
 
 Maybe clamav should depend on clamav-base?

Yes, that's probably the simplest answer.  I had avoided it up to now
because I didn't think the command line scanner needed the overhead of
user creation and so forth.  It looks like I was wrong. 
-- 
 -
|   ,''`.Stephen Gran |
|  : :' :[EMAIL PROTECTED] |
|  `. `'Debian user, admin, and developer |
|`- http://www.debian.org |
 -


signature.asc
Description: Digital signature


Bug#391038: clamscan dies with ERROR: Can't get information about user clamav when run as root

2006-10-04 Thread Graham

Package: clamav
Version: 0.88.4-2

When I run clamscan as root, it shows this message:

   ERROR: Can't get information about user clamav

then exits without scanning anything.

Indeed, there does not seem to be a clamav user on my system. Maybe
the clamav package should create it?

I can successfully run clamscan as a normal user.

-- graham


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#391038: clamscan dies with ERROR: Can't get information about user clamav when run as root

2006-10-04 Thread Stephen Gran
This one time, at band camp, Graham said:
 
 When I run clamscan as root, it shows this message:
 
ERROR: Can't get information about user clamav
 
 then exits without scanning anything.
 
 Indeed, there does not seem to be a clamav user on my system. Maybe
 the clamav package should create it?
 
 I can successfully run clamscan as a normal user.

I see the cause of this.  I am not sure why upstream has this error
condition in clamscan - it seems designed to break scanning as root.

I will talk to upstream about the problem.  Thanks for your report.
-- 
 -
|   ,''`.Stephen Gran |
|  : :' :[EMAIL PROTECTED] |
|  `. `'Debian user, admin, and developer |
|`- http://www.debian.org |
 -


signature.asc
Description: Digital signature


Bug#391038: clamscan dies with ERROR: Can't get information about user clamav when run as root

2006-10-04 Thread Adam D. Barratt
Hi,

On Wed, 2006-10-04 at 09:41 -0400, Graham wrote:
 Package: clamav
 Version: 0.88.4-2
 
 When I run clamscan as root, it shows this message:
 
 ERROR: Can't get information about user clamav
 
 then exits without scanning anything.
 
 Indeed, there does not seem to be a clamav user on my system. Maybe
 the clamav package should create it?

In a word, yes. I'm a little confused as to how you've ended up without
the user, to be honest.

Every package since 0.69-0.70-rc-1 has used the following in its
postinst script:

 # Set up the clamav user on new install
 if [ -z $2 ]; then
   if [ -z `getent passwd clamav` ]; then
 adduser --system --no-create-home \
   --disabled-password --disabled-login \
  --shell /bin/false --group --home /var/lib/clamav clamav
   fi

Earlier versions (at least as far back as 0.65-1, which is the earliest
I've got a source package for handy) did much the same, but without the
on new install check.

Regards,

Adam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#391038: clamscan dies with ERROR: Can't get information about user clamav when run as root

2006-10-04 Thread Stephen Gran
This one time, at band camp, Adam D. Barratt said:
 Hi,
 
 On Wed, 2006-10-04 at 09:41 -0400, Graham wrote:
  Package: clamav
  Version: 0.88.4-2
  
  When I run clamscan as root, it shows this message:
  
  ERROR: Can't get information about user clamav
  
  then exits without scanning anything.
  
  Indeed, there does not seem to be a clamav user on my system. Maybe
  the clamav package should create it?
 
 In a word, yes. I'm a little confused as to how you've ended up without
 the user, to be honest.
 
 Every package since 0.69-0.70-rc-1 has used the following in its
 postinst script:

He has only installed the package clamav, which doesn't depend on -base,
which is where the user creation is handled.  It's easy to add a
dependency on -base, but I'm not sure it's the right thing to do.  I am
looking through the code base to see why it special cases root scans (it
appears at first glance to do very little with the clamav user
information so far), and if it seems reasonable, I'll just add the
Depends line.  If it seems spurious, I'll send a patch upstream.

Thanks,
-- 
 -
|   ,''`.Stephen Gran |
|  : :' :[EMAIL PROTECTED] |
|  `. `'Debian user, admin, and developer |
|`- http://www.debian.org |
 -


signature.asc
Description: Digital signature


Bug#391038: clamscan dies with ERROR: Can't get information about user clamav when run as root

2006-10-04 Thread Graham

 Indeed, there does not seem to be a clamav user on my system. Maybe
 the clamav package should create it?

In a word, yes. I'm a little confused as to how you've ended up without
the user, to be honest.


I don't have the clamav-base package installed... that's how.

I had selected clamav (etch) and clamav-data (volatile) for installation.

Maybe clamav should depend on clamav-base?

-- graham


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]