Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

running a tool that requires sudo permission #114

Open
Adnan-Elhammoudi opened this issue Feb 26, 2024 · 1 comment
Open

running a tool that requires sudo permission #114

Adnan-Elhammoudi opened this issue Feb 26, 2024 · 1 comment

Comments

@Adnan-Elhammoudi
Copy link

Adnan-Elhammoudi commented Feb 26, 2024

Hi @Rahix
I need to run a tool on the lab host that requires root permission without user interaction to pass the password if required.
any attribute made for that purpose or workaround can be made except adding nopasswd configuration?

@Rahix
Copy link
Owner

Rahix commented Mar 2, 2024

You should avoid handling passwords in tbot at all cost. The security implications are massive and tbot does not take any steps to keep any data confidential. Instead, you should handle authorization outside of tbot.

My personal recommendation is to always call sudo with -n from tbot to avoid any prompt for passwords anywhere. The commands that need to be called from testcases should be added with nopasswd config in the sudoers file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants