
In this article, we will explore how to extend the use of fingerprint authentication beyond just the login process in Ubuntu 18.04. We will discuss how to enable fingerprint authentication for terminal commands, Gnome actions, and the challenges faced when unlocking keyring items.
Yes, it is possible to use fingerprint authentication beyond just login in Ubuntu 18.04. By making some modifications to the PAM configuration files, you can enable fingerprint authentication for terminal commands and Gnome actions. However, unlocking keyring items with fingerprint authentication is not currently supported in Ubuntu 18.04.
Enabling Fingerprint Login
Before we can use fingerprint authentication for other purposes, we need to ensure it’s enabled for login. To do this, navigate to Settings > Details > Users
and enable fingerprint login. Follow the prompts to enroll your fingerprint(s).
Authenticating in the Terminal
To authenticate sudo
commands in the terminal using your fingerprint, we need to modify the sudo
PAM (Pluggable Authentication Modules) configuration file.
- Open the terminal and type the following command:
This command opens thesudo nano /etc/pam.d/sudo
sudo
PAM configuration file in thenano
text editor with root privileges. - Add the following line at a suitable location in the file, such as after the
@include common-auth
line:
This line tells the PAM library that fingerprint authentication is a sufficient method forauth sufficient pam_fprintd.so
sudo
commands. - Save the file by pressing
Ctrl + O
and then exit withCtrl + X
.
After these changes, you should be able to use your fingerprint to authenticate sudo
commands in the terminal.
Authenticating in Gnome
To use fingerprint authentication for Gnome actions like installing applications, we need to modify the gdm-fingerprint
PAM configuration file.
- Open the terminal and type the following command:
This command opens thesudo nano /etc/pam.d/gdm-fingerprint
gdm-fingerprint
PAM configuration file in thenano
text editor with root privileges. - Add the following line at a suitable location in the file, such as after the
auth required pam_fprintd.so
line:
This line tells the PAM library that fingerprint authentication is a sufficient method for Gnome actions.auth sufficient pam_fprintd.so
- Save the file by pressing
Ctrl + O
and then exit withCtrl + X
.
After these changes, you should be able to use your fingerprint to authenticate Gnome actions.
Unlocking Keyring Items
Unfortunately, using fingerprint authentication to unlock keyring items is not currently supported in Ubuntu 18.04. This is due to the design of the keyring system, which requires a password to unlock the keyring and does not support other authentication methods.
Conclusion
After making the changes described in this article and rebooting your computer, you should be able to use fingerprint authentication for sudo
commands and Gnome actions in Ubuntu 18.04. However, remember that the use of fingerprint authentication is a convenience and should not be relied upon as a sole security measure. Always have a strong password as a backup authentication method.
Please note that these steps are specific to Ubuntu 18.04 and the fprintd
library. If you are using a different version of Ubuntu or a different fingerprint authentication library, the steps may vary. Always refer to the documentation for your specific version and library for the most accurate information.
Yes, you can use fingerprint authentication for terminal commands and Gnome actions in Ubuntu 18.04.
To enable fingerprint login, go to Settings > Details > Users
and enable fingerprint login. Follow the prompts to enroll your fingerprint(s).
To authenticate sudo
commands with your fingerprint, you need to modify the sudo
PAM configuration file. Open the terminal and type sudo nano /etc/pam.d/sudo
to open the file. Add the line auth sufficient pam_fprintd.so
after the @include common-auth
line. Save the file and you should be able to use your fingerprint to authenticate sudo
commands.
Yes, you can use fingerprint authentication for Gnome actions. To enable this, modify the gdm-fingerprint
PAM configuration file. Open the terminal and type sudo nano /etc/pam.d/gdm-fingerprint
to open the file. Add the line auth sufficient pam_fprintd.so
after the auth required pam_fprintd.so
line. Save the file and you should be able to use your fingerprint to authenticate Gnome actions.
No, fingerprint authentication is not currently supported for unlocking keyring items in Ubuntu 18.04. The keyring system requires a password to unlock and does not support other authentication methods.
Fingerprint authentication can be a convenient method, but it should not be relied upon as the sole security measure. It is recommended to have a strong password as a backup authentication method.