[email protected] writes:
[...]
> Q: ".../mysqldump --op": mysqldump: Got error: 1045: Access denied for user
> 'root'@'localhost' (using password: NO) when trying to connect
> I: Last 1 QUOTed lines were generated by promiser "/usr/bin/mysqldump --opt
> --all-databases --user=root --add-drop-database | /bin/gzip >
> /srv/backup/mysql/mysql_$(date +%Y-?m-?d).sql.gz"
> R: Performed MySQL backup
>
>
> Shouldn't the result be the same, regardless if run manually or automatically?
Maybe specifying the chdir to the 'body contain'?
body contain rootshell {
useshell => "true";
umask => "077";
exec_owner => "root";
chdir => "/root";
}
--
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x6A2540D1
pgpVKM2ZH58DO.pgp
Description: PGP signature
_______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
