Disabling Profile Features
Use the authselect
utility to disable features in the active profile.
Use the authselect disable-feature
command to
disable a feature in the active profile.
-
Disabling features works only on the active profile. You can't disable features in unselected profiles. Identify the active profile using the following command:
authselect current
-
Use the following command syntax to disable a feature in the active profle:
sudo authselect disable-feature feature
Example 2-3 Disable account locking and home directories features
In this example, you disable the with-faillock
and
with-mkhomedir
features added to the sssd
profile.
-
Confirm that the active profile is
sssd
and that thewith-faillock
andwith-mkhomedir
features are enabled, by entering the following command:authselect current
Profile ID: sssd Enabled features: - with-fingerprint - with-silent-lastlog - with-faillock - with-mkhomedir
-
Disable the
with-faillock
andwith-mkhomedir
features:sudo authselect disable-feature with-faillock
sudo authselect disable-feature with-mkhomedir
-
Check that the features are no longer enabled in the active profile:
Profile ID: sssd Enabled features: - with-fingerprint - with-silent-lastlog