pyanaconda.modules.users.users_interface

Classes

UsersInterface

DBus interface for Users module.

Module Contents

class pyanaconda.modules.users.users_interface.UsersInterface[source]

Bases: pyanaconda.modules.common.base.KickstartModuleInterface

DBus interface for Users module.

connect_signals()[source]

Connect the signals.

property CanChangeRootPassword: Bool[source]

Can the root password be changed ?

Returns:

True, if the root password can the changed, False otherwise

Return type:

Bool

property RootPassword: Str[source]

Root password.

NOTE: this property should be only temporary and should be

dropped once the users module itself can configure the root password

Returns:

root password (might be crypted)

Return type:

Str

property IsRootPasswordCrypted: Bool[source]

Is the root password crypted ?

NOTE: this property should be only temporary and should be

dropped once the users module itself can configure the root password

Returns:

True, if the root password is crypted, otherwise False

Return type:

Bool

SetCryptedRootPassword(crypted_root_password)[source]

Set the root password.

The password is expected to be provided in already crypted.

Parameters:

crypted_root_password (Str) – already crypted root password

ClearRootPassword()[source]

Clear any set root password.

property IsRootPasswordSet: Bool[source]

Is the root password set ?

Returns:

True, if the root password is set, otherwise False

Return type:

Bool

property IsRootAccountLocked: Bool[source]

Is the root account locked ?

Returns:

True, if the root account is locked, otherwise False

Return type:

Bool

property RootPasswordSSHLoginAllowed: Bool[source]

Is logging in as root via SSH with password allowed ?

Returns:

True if root SSH loggin with password is allowed, False otherwise

Return type:

Bool

property Users: List[Structure][source]

List of users, each describing a single user.

Returns:

a list of user describing DBus Structures

Return type:

List[Structure]

property Groups: List[Structure][source]

List of groups, each describing a single group.

Returns:

a list of group describing DBus Structures

Return type:

List[Structure]

property SshKeys: List[Structure][source]

List of SSH keys, each describing a single SSH key.

Returns:

a list of SSH key describing DBus Structures

Return type:

List[Structure]

CheckAdminUserExists()[source]

Reports if at least one admin user exists.

  • an unlocked root account is considered to be an admin user

  • an unlocked user account that is member of the group “wheel” is considered to be an admin user

Returns:

if at least one admin user exists

Return type:

Bool

ConfigureGroupsWithTask()[source]

Configure user groups via a DBus task.

Returns:

DBus path of the task

Return type:

ObjPath

ConfigureUsersWithTask()[source]

Configure users via a DBus task.

Returns:

DBus path of the task

Return type:

ObjPath

SetRootPasswordWithTask()[source]

Set root password via a DBus task.

Returns:

DBus path of the task

Return type:

ObjPath