Hi Ramiro, that would be a very severe bug.
But let us find what actually happened in your case as I can not reproduce.

$ apt install postgresql
$ mkdir -p /dbERP/var/{lib,log,run}
$ mkdir -p /dbERP/var/lib/postgresql/{11,9.6}
$ sudo chown -R postgres:postgres /dbERP

This shows all as expected:
$ ls -laF /dbERP/{,*,var/lib/postgresql,var/lib/postgresql/*}

After install of clamav nothing changed:
$ apt install clamav
$ ls -laF /dbERP/{,*,var/lib/postgresql,var/lib/postgresql/*}

So I can't see what/why happened to you.

Are by any chance the directories bind mounted to other places?
What is the output of "mount"?

Since you say it reproduces for you - could you create a list of
steps/commands to run in a fresh VM or LXD container that will recreate
the issue?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1822217

Title:
  Clamav, netdev and others changing owner, group

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clamav/+bug/1822217/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to