saanuregh / hola

Windows Hello™ style facial authentication for Linux written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hola

Windows Hello™ style facial authentication for Linux written in Rust, based on Howdy. Uses Linux Pluggable Authentication Modules (PAM) to provide a framework for system-wide user authentication. Uses video4linux for video capture.

Installation

Packages for various distros is in WIP.

Requires

To build and install with cargo-make just run cargo make install_release.

Configuration

Setup Hola to start when needed

In order for Hola to authenticate a user, a small change must be added to any PAM configuration file where Howdy might want to be used. The following line must be added to any configuration file:

auth sufficient pam_hola.so

To enable Hola authentication for sudo, add to /etc/pam.d/sudo file. Or to enable Hola authentication for graphical login add to /etc/pam.d/system-local-login.

Configuration file

Configuration file is very similar in structure to Howdy's. To access it run sudo hola config, this command opens the configuration file in default editor. The configuration file is located at /lib/security/pam_hola/config.toml.

Adding a face

To add a face to Hola, run sudo hola model add

CLI commands

To see all the CLI command, run sudo hola help

Caveats

This package is in no way as secure as a password and will never be, do not use this as your sole authentication method. To minimize the chance of this program being compromised, it's recommended to leave Hola in /lib/security and to keep it read-only.

About

Windows Hello™ style facial authentication for Linux written in Rust

License:MIT License


Languages

Language:Rust 100.0%