Commit 94a2c4a9 authored by Paolo Dongilli's avatar Paolo Dongilli
Browse files

Small changes regarding password expiration day and message appearance.

parent 4a2ebb33
......@@ -18,7 +18,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
if [ "z$(whoami)" = "zroot" ]; then
zenity --info --width 400 --title "Cambio password" --text "Non è permesso modificare la password dell'utente root da qui."
zenity --info --width 460 --title "Cambio password" --text "Non è permesso modificare la password dell'utente root da qui."
exit 0
fi
......
......@@ -26,7 +26,7 @@ LAST_CHANGE=$(expr $(date --date=$(passwd -S "$user"|cut -d" " -f3) +%s) / 86400
SHADOWMAX=$(passwd -S "$user"|cut -d" " -f5)
# Do not show dialog message if password never expires
if [ "z$SHADOWMAX" = "z0" ]; then
if [ "z$SHADOWMAX" = "z-1" ]; then
exit 0
fi
......@@ -58,4 +58,4 @@ if [ "$DAYTOCHANGE" -lt 10 ]
fi
fi
exit 0
\ No newline at end of file
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment