On October 30, 2014 1:26:25 PM CET, Vijay Sankar <vsan...@foretell.ca> wrote:
>I have been using a simple script
>
># mypasswd.sh
>/usr/bin/passwd -l
>if [[ $? != 0 ]]; then
>         /usr/bin/logger "Unsuccessful attempt to change password"
>else
>         /usr/bin/logger "Changed login password"
>fi
>
>to get syslog entries whenever I change my password. I looked for a  
>better way but could not find any solutions for this in the archives.
>
>Is there a better way to do this? Please let me know if possible.

Unless there is any functionality you're missing, and scripting nits aside, 
this seems fine.

Please elaborate on why you think it shouldn't be.

/Alexander
>
>Thanks very much,
>
>Vijay
>
>Vijay Sankar, M.Eng., P.Eng.
>ForeTell Technologies Limited
>vsan...@foretell.ca
>
>---------------------------------------------
>This message was sent using ForeTell-POST 4.9

Reply via email to