2020-08-21 19:43:53 +02:00
|
|
|
# SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
|
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
2020-06-16 16:06:56 +02:00
|
|
|
---
|
|
|
|
$schema: https://json-schema.org/schema#
|
|
|
|
$id: https://calamares.io/schemas/users
|
|
|
|
additionalProperties: false
|
|
|
|
type: object
|
|
|
|
properties:
|
2020-06-18 16:23:32 +02:00
|
|
|
# User shell, should be path to /bin/sh or so
|
|
|
|
userShell: { type: string }
|
|
|
|
# Group settings
|
2020-06-18 16:12:12 +02:00
|
|
|
defaultGroups:
|
|
|
|
type: array
|
|
|
|
items: { type: string }
|
|
|
|
autologinGroup: { type: string }
|
|
|
|
sudoersGroup: { type: string }
|
2020-06-18 16:23:32 +02:00
|
|
|
# Skip login (depends on displaymanager support)
|
|
|
|
doAutologin: { type: boolean, default: true }
|
|
|
|
# Root password separate from user password?
|
2020-06-18 16:12:12 +02:00
|
|
|
setRootPassword: { type: boolean, default: true }
|
|
|
|
doReusePassword: { type: boolean, default: true }
|
2020-06-18 16:23:32 +02:00
|
|
|
# Passwords that don't pass a quality test
|
|
|
|
allowWeakPasswords: { type: boolean, default: false }
|
|
|
|
allowWeakPasswordsDefault: { type: boolean, default: false }
|
|
|
|
passwordRequirements:
|
|
|
|
additionalProperties: false
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
nonempty: { type: boolean, default: true }
|
|
|
|
minLength: { type: number }
|
|
|
|
maxLength: { type: number }
|
|
|
|
libpwquality: { type: array, items: { type: string } } # Don't know what libpwquality supports
|
|
|
|
# Hostname setting
|
|
|
|
setHostname: { type: string, enum: [ None, EtcFile, Hostnamed ] }
|
|
|
|
writeHostsFile: { type: boolean, default: true }
|
|
|
|
|
2020-06-18 16:12:12 +02:00
|
|
|
required:
|
|
|
|
- defaultGroups
|
|
|
|
- autologinGroup
|
|
|
|
- sudoersGroup
|