'\" t .\" Title: cryptsetup-config .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.20 .\" Date: 2024-01-05 .\" Manual: Maintenance Commands .\" Source: cryptsetup 2.6.1 .\" Language: English .\" .TH "CRYPTSETUP\-CONFIG" "8" "2024-01-05" "cryptsetup 2.6.1" "Maintenance Commands" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" cryptsetup-config \- set permanent configuration options (store to LUKS header) .SH "SYNOPSIS" .sp \fBcryptsetup \fIconfig\fP \fP .SH "DESCRIPTION" .sp Set permanent configuration options (store to LUKS header). The \fIconfig\fP command is supported only for LUKS2. .sp The permanent options can be \fI\-\-priority\fP to set priority (normal, prefer, ignore) for keyslot (specified by \fI\-\-key\-slot\fP) or \fI\-\-label\fP and \fI\-\-subsystem\fP. .sp \fB\fP can be [\-\-priority, \-\-label, \-\-subsystem, \-\-key\-slot, \-\-header, \-\-disable\-locks]. .SH "OPTIONS" .sp \fB\-\-key\-slot, \-S <0\-N>\fP .RS 4 For LUKS operations that add key material, this option allows you to specify which key slot is selected for the new key. .sp The maximum number of key slots depends on the LUKS version. LUKS1 can have up to 8 key slots. LUKS2 can have up to 32 key slots based on key slot area size and key size, but a valid key slot ID can always be between 0 and 31 for LUKS2. .RE .sp \fB\-\-header \fP .RS 4 Use a detached (separated) metadata device or file where the LUKS header is stored. This option allows one to store ciphertext and LUKS header on different devices. .sp For commands that change the LUKS header (e.g. \fIluksAddKey\fP), specify the device or file with the LUKS header directly as the LUKS device. .RE .sp \fB\-\-disable\-locks\fP .RS 4 Disable lock protection for metadata on disk. This option is valid only for LUKS2 and ignored for other formats. .sp \fBWARNING:\fP Do not use this option unless you run cryptsetup in a restricted environment where locking is impossible to perform (where /run directory cannot be used). .RE .sp \fB\-\-priority \fP .RS 4 Set a priority for LUKS2 keyslot. The \fIprefer\fP priority marked slots are tried before \fInormal\fP priority. The \fIignored\fP priority means, that slot is never used, if not explicitly requested by \fI\-\-key\-slot\fP option. .RE .sp \fB\-\-label