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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content