Skip to content

Conversation

@TuxLux40
Copy link

@TuxLux40 TuxLux40 commented Oct 31, 2025

Type of Change

YubiKey PAM Setup Utility

  • Added a new entry for YubiKey PAM Setup to core/tabs/utils/tab_data.toml, enabling selection from the utility tab.
  • Created the script core/tabs/utils/yubikey-pam-setup.sh to automate configuration of PAM files for YubiKey authentication, including interactive target selection, backup of relevant files, deduplication of PAM config entries, secure enrollment, and rollback guidance.

Documentation

  • Updated docs/userguide.md to describe the new YubiKey PAM Setup utility and its purpose.] New feature
  • Added new feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Hotfix
  • Security patch
  • UI/UX improvement

Description

This pull request adds a new utility for "YubiKey PAM setup", allowing users to configure sudo and other PAM targets to require YubiKey (U2F) touch authentication with password fallback. The main changes include introducing the setup script, updating configuration files to register the new utility, and documenting its usage.

Testing

Tested on Arch (CachyOS to be specific). Sudo and system-auth were tested and are working. Debian and Fedora not yet tested.

Impact

A new YubiKey PAM setup option now appears in Utilities, PAM configs/backups get touched when run.

Issues / other PRs related

system-auth: The script does not yet handle avoiding duplication of lines in the system-auth file correctly like it does for sudo

Additional Information

Checklist

  • My code adheres to the coding and style guidelines of the project.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation (cargo xtask docgen).
  • My changes generate no errors/warnings/merge conflicts.

Copilot AI review requested due to automatic review settings October 31, 2025 00:11

This comment was marked as spam.

TuxLux40 and others added 3 commits October 31, 2025 01:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@adamperkowski adamperkowski changed the title feat(utils): add YubiKey pam_u2f setup feat: add YubiKey pam_u2f setup Oct 31, 2025
Copy link
Collaborator

@adamperkowski adamperkowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm sorry but there is no way i'm ever approving something like this...

  1. this doesn't adhere our code style at all
  2. it's clearly all ai
  3. what even are those comments supposed to be
  4. a LOT of unnecessary code, practically unmaintainable

not closing this just in case you want to rewrite it all by hand and make it make sense

@TuxLux40
Copy link
Author

i'm sorry but there is no way i'm ever approving something like this...

  1. this doesn't adhere our code style at all
  2. it's clearly all ai
  3. what even are those comments supposed to be
  4. a LOT of unnecessary code, practically unmaintainable

not closing this just in case you want to rewrite it all by hand and make it make sense

Sorry, this was my first PR. I'll work on it.

TuxLux40 and others added 10 commits November 10, 2025 14:35
Co-authored-by: TuxLux40 <122551310+TuxLux40@users.noreply.github.com>
Co-authored-by: TuxLux40 <122551310+TuxLux40@users.noreply.github.com>
[WIP] Integrate dotfiles repository into linutil framework
- Create Ghostty configuration file for terminal emulator settings.
- Add Starship prompt configuration for enhanced shell experience.
- Establish system.yaml for package management and system configuration.
- Introduce tab_data.toml for organizing dotfiles and personalization tasks.
- Implement tl40-dotfiles-restore.sh script for cloning and installing dotfiles.
…s in start.sh to point to TuxLux40 repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants