List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:June 7 1999 5:26pm
Subject:Re: logrotate
View as plain text  
Darrell Shifflett wrote:
> 
> Redhat 6.0 with 3.22.22 MySQL rpms. MySQL sets up a file (mysql) in
> /etc/logrotate.d/ for rotating. I get errors saying root@localhost is
> denied access because not using a password when mysqladmin tries to do its
> job.
> ---
> ls -l /etc/logrotate.d/mysql
> -rw-r--r--  1  root  root    mysql       ; 0644
> 
> /var/lib/mysql/mysql.log {
>         rotate 3
>         daily
>         compress
>      postrotate
>         mysqladmin flush-logs
>      endscript
> }
> 
> Setting a password in the mysql rotate file with 0644 perms? Is this
> a safe way to do this.
> 
> Suggestions please,
> 

You can have more restrictive permission on the file constaining the
password, 0600 permsissions and mysql user ownership. 


-- 
Sasha Pachev
http://www.sashanet.com/ (home)
http://www.direct1.com/ (work)
Thread
logrotateDarrell Shifflett7 Jun
  • Re: logrotateSasha Pachev7 Jun
  • logrotateMichael Widenius7 Jun