#!/bin/sh

[ -z "${PAM_SSHAUTH_DIR}" ] && exit 1

PASSWORD=$(cat "${PAM_SSHAUTH_DIR}/.passwd")

echo "${PASSWORD}"

ID=$(id -u)

if [ "${ID}" != "0" ]; then
    rm "${PAM_SSHAUTH_DIR}/.passwd"
fi
