Description of problem: Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. change /etc/nsswitch.conf to remove file auth for sudoers <sudoers: files sss >sudoers: sss 2. run 'satellite-backup /tmp' as root Actual results: Starting backup: Creating backup folder /tmp/satellite-backup root is not in the sudoers file. This incident will be reported. ****cancelled**** Postgres user needs write access to the backup directory Please select a directory, such as /tmp or /var/tmp which allows Postgres write access Cleaning up backup folder and starting any stopped services... Redirecting to /bin/systemctl start mongod.service Redirecting to /bin/systemctl start postgresql.service Redirecting to /bin/systemctl start tomcat.service Redirecting to /bin/systemctl start pulp_workers.service Redirecting to /bin/systemctl start pulp_resource_manager.service Redirecting to /bin/systemctl start pulp_streamer.service Redirecting to /bin/systemctl start pulp_celerybeat.service Redirecting to /bin/systemctl start httpd.service Redirecting to /bin/systemctl start foreman-tasks.service Done. Expected results: Successful backup Additional info: There is no real reason to require sudo for root: /usr/share/katello/backup.rb - if uid=0 su postgres -c <command> else sudo -u postgres <command>
Hello James, Can you confirm what release of Satellite you are observing this behavior on? This should be solved in the most Satellite 6.5 (and possibly 6.4). Reference: https://bugzilla.redhat.com/show_bug.cgi?id=1572277#c7 Thanks!
No info was provided. Closing this out as CURRENT_RELEASE based on comment 3.
This was for 6.3.1 - confirmed fixed in 6.5