| Walt Mankowski via plug on 26 Nov 2025 17:04:33 -0800 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| [PLUG] Bug in rust-coreutils breaks ssh |
I'm running Ubuntu 25.10 on my home Linux server. Last night I installed what I thought were some routine updates including a new kernel, which required a reboot. Everything seemed fine, but then this morning I discovered I was unable to ssh in. It would get almost to the shell prompt and just sit there until it eventually timed out. Ctrl-C didn't work either. This occurred even when I tried sshing from the same box. I checked a bunch of obvious things. I confirmed sshd was running. I confirmed it was getting network traffic. Traffic on other ports was working, just not ssh. Eventually I found this report from someone having a similar problem who traced it to stat(1): https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2130843 In 25.10, Ubuntu began replacing utilities in coreutils which were originally written in C with Rust versions, and one of these is stat. This person thought there's a bug with how it handles automount. I'm not automounting anything, but I still had the problem. There are a number of scripts under /etc/update-motd.d that get run from an ssh login, and two of them call stat. I replaced those calls with gnustat, as it suggested, and suddenly I could login again! I'm documenting it here in case anyone else has the same problem and can't figure out what to do. Walt ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug