Syntax : chage -d 0 [user-name]
Example : chage -d 0 ashok
Example : chage -d 0 ashok
This Blog primarily focus on providing solutions for administering Linux Operating system in Enterprise environment. I have put my best effort to ensure the solutions provided in this are accurate, easy to follow, effective, and helpful for Linux Users & System Administrators.
# echo $PROMPT_COMMAND
RETRN_VAL=$?;logger -p local3.debug "$(whoami) $remoteip [$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//") [$RETRN_VAL]"
On RHEL 8.x
[root@rhel8 ]# cat /etc/profile.d/prompt.sh
remoteip=$(who am i | awk '{print $5}' | sed "s/[()]//g")
export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local3.debug "$(whoami) $remoteip [$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//") [$RETRN_VAL]"'
[root@rhel8 ]#