This problem is related to MYSQL. The privileges of 'debian-sys-maint' user are 
too scanty.
The workaround is found at 
http://hobbymods.ru/article/linux/osibka-error-running-shared-postrotate-script-for-varlogmysqllog-varlogmysqlmysq
 with some changes due to the modern syntax:

1. Get the password for user 'debian-sys-maint':
  sudo grep -m 1 password /etc/mysql/debian.cnf | cut -d" " -f3
The password should be displayed. Copy it

2. Configure MySQL:
  sudo mysql --user=root mysql

2.1. In MYSQL environment set the propper password
  ALTER USER 'debian-sys-maint'@'localhost' IDENTIFIED BY 'Paste the copied 
password';
  flush privileges;

2.2. Reconfigure the user privileges:
  GRANT RELOAD, SHUTDOWN, PROCESS, SHOW DATABASES, SUPER, LOCK
  TABLES ON *.* TO 'debian-sys-maint'@'localhost';
  flush privileges;
  exit

3. Test the operation. Should be OK (no output)
sudo logrotate -f /etc/logrotate.conf

I did not check, is the password proper by default (now it is
impossible). If yes, only steps 2.2 and 3 are necessary. It can be
tested only before step 2.1.

If the settings for 'debian-sys-maint' are secure, they should be set by
default at the installation of (L/K/X)Ubunutu 20.04. If the settings are
vulnerable, another solution should be found.

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

Title:
  Logrotate failed to start in LUbuntu 20.04

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to