Change Tiny Core Linux Relay Password
Log In or Register to download the BES file, and more.

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

ID26986
StatusProduction - Fully Tested and Ready for Production
TitleChange Tiny Core Linux Relay Password
SourceInternal
Source Release Date4/7/2022 12:00:00 AM
KeywordsTiny Core Linux Relay, SSH
Is TaskTrue
Added by on 12/12/2022 8:05:23 AM
Last Modified by on 12/12/2022 8:05:23 AM
Counters 107 Views / 1 Download
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 5 fixlets   * Results in a true/false
Show indented relevance
(exists relay service)
Used in 1 fixlet   * Results in a true/false
Show indented relevance
(name of operating system contains "Linux TinyCore")
Used in 1 fixlet   * Results in a true/false
Show indented relevance
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:
Share this page on Yammer

Comments

Log In or Register to leave comments!