Skip to content

pam: show password prompt directly on TTY if possible#1269

Closed
shiv-tyagi wants to merge 1 commit intocanonical:mainfrom
shiv-tyagi:password-tty
Closed

pam: show password prompt directly on TTY if possible#1269
shiv-tyagi wants to merge 1 commit intocanonical:mainfrom
shiv-tyagi:password-tty

Conversation

@shiv-tyagi
Copy link
Copy Markdown
Contributor

Closes #1230

This makes PAM to write authentication prompt while executing sudo directly to tty in order to make sure it is visible even if stdout/stderr are redirected.

Verified locally, it is working as expected.

<redacted>@authd-test:~$ sudo ls > /dev/null 2>&1
Enter your local password:                                                                                              
> ***                                                                                                                   
                                                                                                                        
  Press escape key to go back to select the authentication method

Signed-off-by: Shiv Tyagi <shivtyagi3015@gmail.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.68%. Comparing base (1b9ea6b) to head (e4e96da).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1269      +/-   ##
==========================================
+ Coverage   85.00%   85.68%   +0.67%     
==========================================
  Files         119       99      -20     
  Lines        7669     6685     -984     
  Branches      111      111              
==========================================
- Hits         6519     5728     -791     
+ Misses       1094      901     -193     
  Partials       56       56              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@3v1n0
Copy link
Copy Markdown
Contributor

3v1n0 commented Feb 14, 2026

I've another branch ready for this for a while, but I had to delay it for preparing tests, so thanks a lot for your contribution but I'm handling this already.

@3v1n0 3v1n0 closed this Feb 14, 2026
@shiv-tyagi shiv-tyagi deleted the password-tty branch February 14, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

authd's password prompt is not shown when stdout is redirected

2 participants