Change Tiny Core Linux Relay Password
0 Votes |
Description
Important Notes
- You must enter a password in order to take an action
- Because of the way secure parameters work, you cannot use this task in a baseline, target an action dynamically by property (e.g., automatic groups), use add additional actions.
Property Details
26986 | |
Production - Fully Tested and Ready for Production | |
Change Tiny Core Linux Relay Password | |
Internal | |
4/7/2022 12:00:00 AM | |
Tiny Core Linux Relay, SSH | |
True | |
JulesM on 12/12/2022 8:05:23 AM | |
JulesM on 12/12/2022 8:05:23 AM | |
107 Views / 1 Download | |
![]() ![]() ![]() ![]() ![]() |
Relevance
Used in 1 fixlet | * Results in a true/false |

(name of operating system contains "Linux TinyCore")
Used in 1 fixlet | * Results in a true/false |

current date - (((preceding text of first " days" of ((current date - "01 Jan 1970" as date) as string)) as integer) - ((preceding text of firsts ":" of following text of firsts ":" of following text of firsts ":" of (lines whose (it starts with "tc:") of file "/etc/shadow")) as integer))*day < "Thu, 12 May 2022" as date
Actions
Action 1 (default)
Action Link Click
here to deploy this action.
Script Type
BigFix Action Script
delete __createfile
createfile until endofscript
#!/bin/sh
echo 'tc:{parameter "secret" of action}' | chpasswd -c sha512
sudo filetool.sh -b
endofscript
delete /var/opt/BESClient/chpasswdtc.sh
move __createfile /var/opt/BESClient/chpasswdtc.sh
wait chmod 750 /var/opt/BESClient/chpasswdtc.sh
wait /bin/sh /var/opt/BESClient/chpasswdtc.sh
delete "/var/opt/BESClient/chpasswdtc.sh"
if {not exists (lines whose (it starts with "tc:$6") of files "/etc/shadow")}
exit 1
endif
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |