Ksysiupeel | 2019-10-14 06:36:22 UTC | #1
Hey guys jest tu moze jakas ogarnieta osoba co zna Linuxa? Potrzebuje zrobic jedno zadanie a nie wiem jak za bardzo. Pomoze ktos?
Ustaw dla uzytkownika Tester nastepujace parametry:
- okres waznosci hasla: 8 dni
- czas na zmiane hasla po uplywie terminu waznosci hasla: 5 dni
- wymuszona zmiana hasla przy nastepnym logowaniu, haslo po zmianie zaq1@wsx
- monitowanie systemu o zmiane hasla na 4 dni przed jego wygasnieciem
Lumpiasty | 2019-10-14 09:09:28 UTC | #2
Z manuala:
NAME
passwd - change user password
SYNOPSIS
passwd [options] [LOGIN]
OPTIONS
The options which apply to the passwd command are:
-e, --expire
Immediately expire an account's password. This in effect can force
a user to change their password at the user's next login.
-i, --inactive INACTIVE
This option is used to disable an account after the password has
been expired for a number of days. After a user account has had an
expired password for INACTIVE days, the user may no longer sign on
to the account.
-w, --warndays WARN_DAYS
Set the number of days of warning before a password change is
required. The WARN_DAYS option is the number of days prior to the
password expiring that a user will be warned that their password is
about to expire.
-x, --maxdays MAX_DAYS
Set the maximum number of days a password remains valid. After
MAX_DAYS, the password is required to be changed.
Passing the number -1 as MAX_DAYS will remove checking a password's
validity.
Polecenie powinieneś z tego już sam skleić.
Ksysiupeel | 2019-10-14 09:29:46 UTC | #3
Dzieki bardzo, wszystkie podpunkty zrobione :slight_smile:
system | 2019-11-15 09:29:48 UTC | #4
Ten temat został automatycznie zamknięty 32 dni po ostatnim wpisie. Tworzenie nowych odpowiedzi nie jest już możliwe.