Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Edit sudo facter command. Env variable isn't needed #490

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sht1n
Copy link

@Sht1n Sht1n commented Jan 28, 2025

Hi

Setting environment variable in sudo requires permissions for preserve the environment also (env_check, or env_keep options). So without this permissions escalation via variable fails. However, environment variable isn't needed for facter binary escalation. We can use --custom-dir flag instead

Tested on CentOS 7 and Oracle Linux 9.

Setting environment variable in sudo requires permissions for preserve the environment also (env_check, or env_keep options).
However, environment variable doesn't need for facter binary escalation
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant