Re: F19 missing "clamupdate" user/group warnings ... future problems - and a fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sáb, 2013-05-18 at 10:09 +0300, Cristian Sava wrote: 
> On Fri, 2013-05-17 at 21:36 +0100, Sérgio Basto wrote:
> > On Sex, 2013-05-17 at 17:03 +0300, Cristian Sava wrote: 
> > > On Fri, 2013-05-17 at 15:59 +0300, Cristian Sava wrote:
> > > > Installing F19 mail server ... "clamupdate" user/group problem:
> > > > 
> > > > [root@physics ~]# yum install amavisd-new spamassassin clamav
> > > > clamav-data clamav-server clamav-server-sysvinit clamav-update unzip
> > > > bzip2 pax
> > > > 
> > > > ...
> > > > Running transaction check
> > > > Running transaction test
> > > > Transaction test succeeded
> > > > Running transaction
> > > >   Installing : perl-Sys-Syslog-0.32-1.fc19.x86_64               1/114 
> > > >   Installing : perl-LWP-MediaTypes-6.02-2.fc19.noarch           2/114
> > > >   Installing :perl-NetAddr-IP-4.068-1.fc19.x86_64               3/114 
> > > >   Installing : perl-XML-SAX-Base-1.08-7.fc19.noarch             4/114 
> > > > Usage: groupadd [options] GROUP
> > > > 
> > > > Options:
> > > >   -f, --force                   exit successfully if the group already
> > > > exists,
> > > >                                 and cancel -g if the GID is already used
> > > >   -g, --gid GID                 use GID for the new group
> > > >   -h, --help                    display this help message and exit
> > > >   -K, --key KEY=VALUE           override /etc/login.defs defaults
> > > >   -o, --non-unique              allow to create groups with duplicate
> > > >                                 (non-unique) GID
> > > >   -p, --password PASSWORD       use this encrypted password for the new
> > > > group
> > > >   -r, --system                  create a system account
> > > >   -R, --root CHROOT_DIR         directory to chroot into
> > > > 
> > > > useradd: group 'clamupdate' does not exist
> > > >   Installing : clamav-filesystem-0.97.8-1.fc19.noarch            5/114 
> > > > warning: user clamupdate does not exist - using root
> > > > warning: group clamupdate does not exist - using root
> > > >   Installing : clamav-data-0.97.8-1.fc19.noarch                  6/114 
> > > > warning: user clamupdate does not exist - using root
> > > > warning: group clamupdate does not exist - using root
> > > > warning: user clamupdate does not exist - using root
> > > > warning: group clamupdate does not exist - using root
> > > >   Installing : clamav-lib-0.97.8-1.fc19.x86_64                   7/114 
> > > >   Installing : clamav-server-0.97.8-1.fc19.x86_64                8/114 
> > > >   Installing : perl-Module-Runtime-0.013-4.fc19.noarch           9/114 
> > > >   Installing : perl-Try-Tiny-0.12-2.fc19.noarch                 10/114 
> > > >   Installing : perl-Module-Implementation-0.06-6.fc19.noarch    11/114 
> > > >   Installing : perl-Params-Validate-1.07-2.fc19.x86_64          12/114 
> > > > .......
> > > >   Installing : amavisd-new-2.8.0-5.fc19.noarch                 110/114 
> > > >   Installing : clamav-server-sysvinit-0.97.8-1.fc19.noarch     111/114 
> > > >   Installing : clamav-0.97.8-1.fc19.x86_64                     112/114 
> > > >   Installing : clamav-update-0.97.8-1.fc19.x86_64              113/114 
> > > > /usr/bin/chown: invalid group: ‘root:clamupdate’
> > > >   Installing : pax-3.4-15.fc19.x86_64                          114/114 
> > > > ..........
> > > > Complete!
> > > > [root@physics ~]# 
> > > > 
> > > > And:
> > > > 
> > > > [root@physics ~]# /usr/bin/freshclam
> > > > WARNING: Can't get information about user clamupdate.
> > > > 
> > > > freshclam does not update the virus list but the server is still
> > > > working.
> > > > Until now we had:
> > > > 
> > > > [cristi@s198 ~]$ sudo cat /etc/passwd | grep clamupdate
> > > > clamupdate:x:992:989:Clamav database update
> > > > user:/var/lib/clamav:/sbin/nologin
> > > > [cristi@s198 ~]$ 
> > > > 
> > > 
> > > [root@physics etc]# groupadd clamupdate -g 992
> > > [root@physics etc]# useradd clamupdate -u 992 -g 992 -s /sbin/nologin -c
> > > "Clamav database update user" -M -d /var/lib/clamav
> > > [root@physics lib]# ls -l | grep clam
> > > drwxr-xr-x  2 root      root    4096 May 17 14:14 clamav
> > > [root@physics lib]# chown clamupdate:clamupdate clamav
> > > [root@physics lib]# ls -l | grep clam
> > > drwxr-xr-x  2 clamupdate clamupdate 4096 May 17 14:14 clamav
> > > [root@physics lib]# 
> > > 
> > > [root@physics clamav]# /usr/bin/freshclam
> > > ClamAV update process started at Fri May 17 16:55:08 2013
> > > main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60,
> > > builder: sven)
> > > Downloading daily-17145.cdiff [100%]
> > > ......
> > > Downloading daily-17229.cdiff [100%]
> > > daily.cld updated (version: 17229, sigs: 1272216, f-level: 63, builder:
> > > neo)
> > > Downloading bytecode.cvd [100%]
> > > bytecode.cvd updated (version: 214, sigs: 41, f-level: 63, builder: neo)
> > > Database updated (2316644 signatures) from database.clamav.net (IP:
> > > 195.30.97.3)
> > > [root@physics clamav]# ls -l
> > > total 108224
> > > -rw-r--r-- 1 clamupdate clamupdate    60125 May 17 16:56 bytecode.cvd
> > > -rw-r--r-- 1 clamupdate clamupdate 79996928 May 17 16:55 daily.cld
> > > -rw-r--r-- 1 clamupdate clamupdate 30750647 Jun 16  2012 main.cvd
> > > -rw------- 1 clamupdate clamupdate       52 May 17 16:56 mirrors.dat
> > > [root@physics clamav]# 
> > > 
> > > The server is working ok.
> > > I used uid:gid = 992:992 instead of 992:989 (989 seem wrong to me).
> > > Someone else with a better fix?
> > 
> > I please file a bug in
> > https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&version=rawhide&component=clamav
> > 
> > for packages maintainers fix it.
> > 
> > Thanks, 
> >   
> > > C. Sava
> > > 
> > > 
> > 
> > -- 
> > Sérgio M. B.
> > 
> Done https://bugzilla.redhat.com/show_bug.cgi?id=964328
> 
> Anyway, on the working (in virtual, with Gnome install)
> we have
> [root@s198 ~]# cat /etc/passwd | grep 989
> clamupdate:x:992:989:Clamav database update
> user:/var/lib/clamav:/sbin/nologin
> [root@s198 etc]# cat /etc/group | grep 989
> clamupdate:x:989:
> 
> and I do not see the reason why UID=992 GID=989 for clamupdate
> On the other install, real box without graphics install, such thing
> fail, so my hand fix with UID=992 and GID=992.
> Hope this helps.

my Fedora 17 qmail system , since 2005 (fc7 ?) 

root@serjux:~#cat /etc/passwd| grep -i clam
clamav:x:46:46:Clam AntiVirus:/tmp:/sbin/nologin
clamupdate:x:490:324:Clamav database update user:/var/lib/clamav:/sbin/nologin
root@serjux:~#cat /etc/group| grep -i clam
clamav:x:46:
clamupdate:x:324:








-- 
Sérgio M. B.

-- 
test mailing list
test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe:
https://admin.fedoraproject.org/mailman/listinfo/test





[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux