|
Bugzilla – Full Text Bug Listing |
| Summary: | sudo modifies command output, showing "Last login: ..." info | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Nir Soffer <nsoffer> |
| Component: | Sudoers | Assignee: | Larrymuters0 |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | Larrymuters0 |
| Priority: | low | ||
| Version: | 1.8.26 | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Attachments: |
0001-Avoid-pam_lastlog-prompts-in-non-interactive-mode.patch
v2-0001-Avoid-pam_lastlog-prompts-unless-running-a-shell.patch Software change |
||
|
Description
Nir Soffer
2019-01-05 15:50:34 MST
I think it would be best to always pass PAM_SILENT to pam_open_session() unless a shell is being run (sudo -s or sudo -i). It doesn't seem reasonable to expect people to use the -n flag any time they run sudo in a pipeline. I agree, it would be more friendly like that. Working on the next version. Created attachment 521 [details]
v2-0001-Avoid-pam_lastlog-prompts-unless-running-a-shell.patch
Changes in v2:
- Be silent by default, unless running an actual shell.
Slightly different fix committed: https://www.sudo.ws/repos/sudo/rev/b8b5d3445a3c There's no need to check for MODE_IMPLIED_SHELL, it is only set in addition to MODE_SHELL. Fixed in sudo 1.8.27, out now. Created attachment 528 [details]
Software change
|