Re: No TTY present message on UART and display. Troubleshooting help required.
Thomas Harrison <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <CALoM9ZOBeQ=EXgDBBjvkQQ43yqO=dzXX-APhfHipTXj6Mgh6nA@mail.gmail.com> |
Would !requiretty provide an immediate if only temporary fix? On Mon, May 27, 2019, 09:27 Todd C. Miller <[email protected]> wrote: > On Mon, 27 May 2019 16:31:12 +0300, Semion Nadezhdin wrote: > > > I am completely at loss: suddenly sudo started to complain about no tty > > being present. The deal is with uart and display tty(/dev/tty1 and > > /dev/console agettys). Is there a way to troubleshoot what is actually > > missing for sudo to recognize tty being present? Executing tty command > > in the same terminal returns proper /dev/tty1 and /dev/console > > accordingly. Custom linux distro with latest major kernel version. > > The sudo debug output may provide some more information. Add the > following line to /etc/sudo.conf (creating it if needed). > > Debug sudo /var/log/sudo_debug util@debug > > You should see lines referencing get_process_ttyname, sudo_ttyname_dev_v1, > sudo_ttyname_scan and sudo_dev_check in the debug log. > > On Linux, sudo gets the tty based field 7 of /proc/self/stat and > then tries to find the device name that corresponds to that device > number in /dev. > > - todd > ____________________________________________________________ > sudo-users mailing list <[email protected]> > For list information, options, or to unsubscribe, visit: > https://www.sudo.ws/mailman/listinfo/sudo-users > ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users