- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
05-27-2025 07:01 PM
Hello XDR experts,
We got 300+ linux servers need to run cytool command with the password.
is it possible to write a shell/python script with the password to do so?
thanks a million
SDG
06-02-2025 01:09 AM
Hello @SeanDeHarris ,
Yes, it is absolutely possible to write a shell or Python script to run the cytool
command with the password across 300+ Linux servers — but with important caveats regarding security, authentication, and remote execution.
Important Considerations Before Proceeding
cytool requires root privileges — ensure the user running the script has sudo
access.
Storing plaintext passwords in scripts is a security risk — if unavoidable, restrict file permissions (chmod 700
) and use a secure method (e.g., encrypted vault or runtime input).
For remote execution, use SSH with keys, not passwords.
Or use Ansibe.
If you feel this has answered your query, please let us know by clicking like and on "mark this as a Solution". Thank you.
06-02-2025 01:09 AM
Hello @SeanDeHarris ,
Yes, it is absolutely possible to write a shell or Python script to run the cytool
command with the password across 300+ Linux servers — but with important caveats regarding security, authentication, and remote execution.
Important Considerations Before Proceeding
cytool requires root privileges — ensure the user running the script has sudo
access.
Storing plaintext passwords in scripts is a security risk — if unavoidable, restrict file permissions (chmod 700
) and use a secure method (e.g., encrypted vault or runtime input).
For remote execution, use SSH with keys, not passwords.
Or use Ansibe.
If you feel this has answered your query, please let us know by clicking like and on "mark this as a Solution". Thank you.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!