NOME¶
dpkg-statoverride - sovrascrive la proprietà e i permessi dei file
SINTASSI¶
dpkg-statoverride [
opzione...]
comando
DESCRIZIONE¶
Gli «
statoverride» sono un modo per dire a
dpkg(1) di
usare un proprietario o permessi differenti per un file quando viene
installato un pacchetto. (Notare che qui viene usata la parola
«file», ma in realtà può essere qualsiasi oggetto del file
system che dpkg gestisce, inclusi directory, device, ecc.). Ciò può
essere usato per forzare i programmi che normalmente sono setuid a essere
installati senza il contrassegno setuid oppure come eseguibili solo da uno
specifico gruppo.
dpkg-statoverride è un'utilità per gestire l'elenco di
«stat override» (sovrascritture di stato). Ha tre funzioni di base:
aggiunta, rimozione ed elenco delle sovrascritture.
COMANDI¶
- --add user group mode file
- Add an override for file. file does not need
to exist when this command is used; the override will be stored and used
later. Users and groups can be specified by their name (for example
root or nobody), or by their number by prepending the number
with a ` #' (for example #0 or #65534). The
mode needs to be specified in octal.
If --update is specified and file exists, it is immediately set to
the new owner and mode.
- --remove file
- Remove an override for file, the status of
file is left unchanged by this command.
- --list [modello-glob]
- Elenca tutte le sovrascritture. Se viene specificato un
modello glob, l'output è limitato alle sovrascritture che
corrispondono al glob. Se non ci sono sovrascritture o nessuna corrisponde
al modello glob, dpkg-statoverride terminerà con 1 come codice
di uscita.
- --help
- Mostra il messaggio sull'uso ed esce.
- --version
- Mostra la versione ed esce.
OPZIONI¶
- --admindir directory
- Change the directory of the dpkg database where the
statoverride file is also stored. Defaults to /var/lib/dpkg.
- --force
- Forza un'azione, anche se verrebbe proibita da un controllo
di correttezza. Non è necessario per sovrascrivere una sovrascrittura
esistente.
- --update
- Immediately try to change the file to the new owner and
mode if it exists.
- --quiet
- È meno prolisso riguardo a ciò che viene
fatto.
AMBIENTE¶
- DPKG_ADMINDIR
- If set and the --admindir option has not been
specified, it will be used as the dpkg data directory.
FILE¶
- /var/lib/dpkg/statoverride
- File which contains the current list of stat overrides of
the system. It is located in the dpkg administration directory, along with
other files important to dpkg, such as `status' or `available'.
Nota: dpkg-statoverride preserva la vecchia copia di questo file, con
l'estensione «-old», prima di sostituirla con quella nuova.
VEDERE ANCHE¶
dpkg(1).