Change local user account password - Linux - BETA
Log In or Register to download the BES file, and more.

1 Votes

Versioning - This is the latest version.

1Change local user account password - Linux - BETA12/6/2013 12:12:45 PM
2Change local user account password - Linux - BETA9/21/2016 3:15:53 PM

Description


Property Details

ID21688
StatusAlpha - Code that was just developed
TitleChange local user account password - Linux - BETA
DomainBESC
CategoryAccounts
Download Size0
SourceInternal
Source IDjbt8, spg14, jgs194
Source Release Date5/3/2013 12:00:00 AM
Added by on 9/21/2016 3:15:53 PM
Last Modified by on 9/21/2016 3:15:53 PM
Counters 11280 Views / 238 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 1 rating. ** Log In or Register to add your rating.

Relevance

Used in 77 fixlets and 6 analyses   * Results in a true/false
Show indented relevance
version of client >= "9.0"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
(unix of operating system) OR (name of operating system starts with "Linux")
Used in 1 fixlet   * Results in a true/false
Show indented relevance
( exists files whose(name of it as lowercase = "chpasswd") of (folders it) of unique values of (it as trimmed string) of substrings separated by (";";":") of values of (variables "PATH" of it; (if (windows of operating system) then (x64 variables "PATH" of it) else NOTHINGS) ) of environments )

Actions

Action 1 (default)

Action Link Change  specified local user account password.
Script Type BigFix Action Script
action parameter query "username" with description "Please specify the name of an existing local user account"

// verify the user exists already before continuing
continue if{ 2 = number of lines whose(it as lowercase starts with ( ( parameter "username" ) as lowercase ) ) of (files "shadow" of it; files "passwd" of it) of folders "/etc" }

wait sh -c "echo "{parameter "username" of action}:{parameter "secret" of action}" | chpasswd"
Success Criteria

This action will be considered successful when all lines of the action script have completed successfully.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
jgstew -
You are welcome. I have used this on CentOS & Ubuntu as well I believe.
IanDM -
Downloaded and tested/used successfully on RHEL 6.8, 7.3 thus far. Thanks for this!