/SudoRSA

PAM based on RSA using Rust and GTK

Primary LanguageRust

Sudo RSA

Rust

SudoRSA-CLI SudoRSA-GUI

No need to type your password everytime! Sudo & polkit through RSA using this module.

Prerequisites

Usage

Setup your /etc/pam.d

Add this line to your /etc/pam.d/sudo and /etc/pam.d/polkit (above other auth modules):

  • auth sufficient pam_rsa.so

Example:

    #%PAM-1.0

    auth sufficient pam_rsa.so
    ...

Build cli & module

Run just build

Setup your keys

PLEASE BUILD FIRST

GUI Based

Run just gui and it will generate private key automatically. Please create public key to your selected device flash disk.

CLI Based

Run just cli and it will generate private key automatically. Please create public key to your selected device flash disk.

Generating your pam_rsa.so

Ubuntu and similars

PLEASE BUILD FIRST Run just setup

Manual Setup (just in case above is not working)

  • Run cargo build
  • Rename and move target/debug/librsapam.so to the pam modules folder

References