Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sudo 1.9.16.0: unable to find terminal name device 0, 0 #408

Open
zuzusb opened this issue Sep 11, 2024 · 2 comments
Open

sudo 1.9.16.0: unable to find terminal name device 0, 0 #408

zuzusb opened this issue Sep 11, 2024 · 2 comments

Comments

@zuzusb
Copy link

zuzusb commented Sep 11, 2024

After upgrading sudo to 1.9.16.0 version on AIX servers and running sudo commands remotely through ssh, we receive the following message as an standard error:

sudo: unable to find terminal name for device 0, 0

Is this warning/message expected on 1.9.16.0 version? Is there a way to turn it off through /etc/sudoers file?
Sudo is working as expected, we just want to avoid receiving that warning message when running it remotely through ssh.

millert added a commit that referenced this issue Sep 11, 2024
On most other systems, psinfo.pr_ttydev is -1 for processes
with no associated terminal.  GitHub issue #408
@millert
Copy link
Collaborator

millert commented Sep 11, 2024

That warning used to be a debug message but was promoted to a warning since it should not happen. It turns out that on AIX, when a process has no terminal the pr_ttydev field of struct psinfo is 0, not -1 like sudo was expecting.

Unfortunately, there is no way to disable the message. It will be fixed in the next sudo release.

@zuzusb
Copy link
Author

zuzusb commented Sep 12, 2024

Thank you @millert. I appreciate your quick response.

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

No branches or pull requests

2 participants