Tugger the SLUGger!SLUG Mailing List Archives

Re: [SLUG] ls lists numbers, not owner names


On Thu, Oct 23, 2008 at 1:18 PM, DaZZa <dagibbs@xxxxxxxxx> wrote:
> useradd -c "ClamAV scann user" -d /var/clamav -u 104 -s /bin/sh clamav
>
> and then
>
> passwd clamav

I would avoid creating another user in this situation; it looks like
he already has a "amavis" user for that purpose, but it incorrectly
has UID 105 and GID 106, whereas the ownership of the listed files is
UID 104 / GID 105. It's simpler, IMO, to edit the UID and GID of
"amavis" in /etc/passwd and /etc/group to 104 and 105 than mess around
with two users. Clam should be fine with the UID change, since the
username, rather than the UID, is specified in clamd.conf, so it
should automatically follow to the new UID.

David