Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FUSS
fuss-utility
Commits
94a2c4a9
Commit
94a2c4a9
authored
Mar 25, 2022
by
Paolo Dongilli
Browse files
Small changes regarding password expiration day and message appearance.
parent
4a2ebb33
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/change-password
View file @
94a2c4a9
...
...
@@ -18,7 +18,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
if
[
"z
$(
whoami
)
"
=
"zroot"
]
;
then
zenity
--info
--width
4
0
0
--title
"Cambio password"
--text
"Non è permesso modificare la password dell'utente root da qui."
zenity
--info
--width
4
6
0
--title
"Cambio password"
--text
"Non è permesso modificare la password dell'utente root da qui."
exit
0
fi
...
...
src/password-next-change
View file @
94a2c4a9
...
...
@@ -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
"
=
"z
0
"
]
;
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment