pwck

Autres langues

Langue: it

Version: 24/07/2009 (fedora - 01/12/10)

Section: 8 (Commandes administrateur)

NOME

pwck - verify integrity of password files

SINOSSI

pwck [-q] [-s] [passwd [ shadow ]]
pwck [-q] [-r] [passwd [ shadow ]]

DESCRIZIONE

The pwck command verifies the integrity of the users and authentication information. It checks that all entries in /etc/passwd and /etc/shadow have the proper format and contain valid data. The user is prompted to delete entries that are improperly formatted or which have other uncorrectable errors.

Vengono fatti controlli per verificare che ogni voce abbia:

* il corretto numero di campi
* a unique and valid user name
* identificatori validi dell'utente e del gruppo
* un gruppo primario valido
* una home directory valida
* una shell di login valida

shadow checks are enabled when a second file parameter is specified or when /etc/shadow exists on the system.

These checks are the following:

* every passwd entry has a matching shadow entry, and every shadow entry has a matching passwd entry
* passwords are specified in the shadowed file
* shadow entries have the correct number of fields
* shadow entries are unique in shadow
* the last password changes are not in the future

Gli errori nelle verifiche sul corretto numero di campi e sull'univocit`a del nome utente sono irrimediabili. Se una voce ha un numero errato di campi, all'utente viene chiesto di cancellare l'intera riga; se l'utente non risponde affermativamente, vengono omessi tutti gli ulteriori controlli. Viene richiesta la cancellazione anche per le voci aventi il nome utente duplicato, ma i rimanenti controlli vengono ugualmente effettuati. Tutti gli altri errori non sono gravi e l'utente `e invitato a eseguire il comando usermod per correggerli.

I comandi che operano sul file /etc/passwd non sono in grado di modificare voci corrotte o duplicate; in tali circostanze va usato pwck per rimuovere la voce scorretta.

OPZIONI

Il comando pwck accetta le seguenti opzioni:

-q

Report errors only. The warnings which do not require any action from the user won't be displayed.

-r

Execute the pwck command in read-only mode.

-s

Sort entries in /etc/passwd and /etc/shadow by UID.

Come impostazione predefinita, pwck opera sui file /etc/passwd e in /etc/shadow. L'utente pu`o selezionare file alternativi con i parametri passwd e shadow.

CONFIGURATION

The following configuration variables in /etc/login.defs change the behavior of this tool:

PASS_MAX_DAYS (number)

The maximum number of days a password may be used. If the password is older than this, a password change will be forced. If not specified, -1 will be assumed (which disables the restriction).

PASS_MIN_DAYS (number)

The minimum number of days allowed between password changes. Any password changes attempted sooner than this will be rejected. If not specified, -1 will be assumed (which disables the restriction).

PASS_WARN_AGE (number)

The number of days warning given before a password expires. A zero means warning is given only upon the day of expiration, a negative value means no warning is given. If not specified, no warning will be provided.

FILE

/etc/group

Informazioni sugli account di gruppo.

/etc/passwd

informazioni sugli account utente.

/etc/shadow

Informazioni sicure sugli account di utenti.

VALORI RESTITUITI

Il comando pwck restituisce i seguenti valori:

0

successo

1

sintassi del comando errata

2

una o pi`u voci di password conengono errori

3

impossibile aprire i file delle password

4

impossibile fare il lock dei file delle password

5

impossibile aggiornare i file delle password

6

can't sort password files

VEDERE ANCHE

group(5), grpck(8), passwd(5), shadow(5), usermod(8).