Last night upgrades can no longer login
I ran slackpkg update and upgrade-all last night and now I can no longer login to either of my Raspebrry Pi's, they both tell me my password is wrong? Is there a way to log in now and recover?
|
Use single user mode.
|
I'd have to buy a monitor, both I setup headless.
I did find that I can ssh in via another account and su to root without issues on one, which makes me think a config file changed (IIRC thats a setting in SSH). So I can get in one but the other I don't have another account to use. I'm wondering why the SSH setting would have changed. Config file looks like this: Code:
#PermitRootLogin yes |
Quote:
Code:
PermitRootLogin Also, if the /etc/ssh/sshd_config file is different from the incoming version in the new package you're upgrading to, it'll move the incoming version to sshd_config.new. Therefore if you had an sshd_config that did allow you to explicitly login as root, you'd still be able to do so. As for fixing it - can't you boot in to the installer using the serial console? |
Thats the only thing I can thing of that is preventing it. I see its commented out in both the original and .new config file. I wonder if there was a bug in the old version and it was allowing even if it was commented out. I didn't change that from the Slackware install.
|
Quote:
Couldn't you just mount the sd card partitions on the rpi that is allowing you to login and edit the sshd_config file that way? |
Yea, I just don't want to hard shutdown the other one, mysql tends to not like that
|
Quote:
If you find out what it is, let me know since we want to try and avoid these kinds of problems during the upgrade from 14.1 to 14.2. Pat's going to make some changes to the doinst.sh script to try and aid the transition, but I don't think it'd have caught whatever this problem is. |
Old sshd_config dated 12/9/2014
Code:
# $OpenBSD: sshd_config,v 1.93 2014/01/10 05:59:19 djm Exp $ Code:
# $OpenBSD: sshd_config,v 1.97 2015/08/06 14:53:21 deraadt Exp $ Well their bsd sshd man page says the default is No. Hey, I'm not completely crazy after all Quote:
Looks like we had 6.7 before looking at my last -current download. Maybe there were more changes prior, it tells me at very least they were fscking with that portion. |
Quote:
No 14.42 to follow in 13.37's footsteps huh? |
Uh! oh! That PermitRootLogin option made me out of my OrangePI cutie, too...
I was forced to mount the harddisk in a PC and to edit by hand that option. :) BTW, OrangePI works very similar with BananaPI, having as plus, the native VGA output. A very useful thingy considering that I use for it a cheap and so old 15" LCD monitor, with native resolution of 1280x720 (that's normal HD, if I remember right). :hattip: |
Quote:
Your posts make me laugh. As for 14.2 as for the version, yes. |
BTW, I have two 10" netbooks, one is a WM8650, another a WM8850. Also a Cubieboard2 (Allwinner-A20), a BananaPI and one OrangePI. In those I have managed to run Slackware ARM. To be precise, using the Android kernels and modules, "borrowed" from their original Android systems. In fact, that's my principle: use the Android kernels, if possible. Right now, only BananaPI run your shipped kernel, being used as a file-server.
Also, I have another 9" WM8880 netbook, and some TV boxes, one is RK3066, another is RK3188, which I has with not luck to run Slackware on them, and I use them, literally, as Android TV boxes, i.e. the MK808B (RK3066 driven) I use as secondary (Android) system, to watch movies and series, from a 3.5" 1TB external hard disk enclosure, on a 24" monitor. Finally, right now I have some plans to buy an OrangePI Plus. I wonder what make you to *laught* ... :hattip: |
Quote:
And yes it was a simple matter to put my drive in another system and uncomment the line in the config, I just didn't want to have to yank the power from my Pi, mysql usually doesn't like that. |
I got bit by that, too. OpenSSH no longer allows remote root login by default, although you can to a non-root remote login and then "su" to get root privs. And, philosophically and as a matter of security, it's the right thing to do anyway.
|
All times are GMT -5. The time now is 08:06 PM. |