While running online backup task as a root user via cron fails with error " sh: runuser: command not found "

Solution Verified - Updated -

Issue

  • If the script runs from crontab, it fails to execute the postgress dump because it doesn’t have the /sbin dir in the PATH env var.
  • Running "katello-backup --online" under root's crontab fails because the 'runuser' command cannot be found.

Environment

  • Red Hat Satellite 6.2.8
  • katello-common-3.0.0-17.el7sat

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.