LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-27-2020, 04:38 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 11,525

Rep: Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335
Debian Buster on Raspbian: SSH error


I have a RazPi 4 running Debian Buster and I had to set a password for user 'pi'which I read online was 'raspberry,' It actually wasn't so I set it to raspberry.

Now I get errors on startup with ssh complaining and telling me to change the password for user pi in Raspberry Pi Configuration. I did. No change.

Does anyone know the original password for pi, or how to shut Openssh up? I may need openssh one day.
 
Old 04-27-2020, 05:06 AM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,824
Blog Entries: 3

Rep: Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398
Which method did you use? If you use raspi-config to set the password for 'pi', the shell should calm down about it and stop nagging when you log in.
 
Old 04-27-2020, 11:22 AM   #3
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 11,525

Original Poster
Rep: Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335
Quote:
Originally Posted by Turbocapitalist View Post
Which method did you use? If you use raspi-config to set the password for 'pi', the shell should calm down about it and stop nagging when you log in.
I did. It didn't. Do you know what the default passwd for user pi is? I can set that, and see if it shuts up.

EDIT: Wait a sec. It's not the shell that's throwing the error, it's openssh.

Last edited by business_kid; 04-27-2020 at 12:41 PM.
 
Old 04-27-2020, 11:42 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,822

Rep: Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719
the default for the pi user IS raspberry
 
Old 04-27-2020, 01:47 PM   #5
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,824
Blog Entries: 3

Rep: Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398
Quote:
Originally Posted by business_kid View Post
I did. It didn't. Do you know what the default passwd for user pi is? I can set that, and see if it shuts up.

EDIT: Wait a sec. It's not the shell that's throwing the error, it's openssh.
What is the exact error and where, specifically, are you seeing it? Please paste it here.

If you have changed the default password for the user 'pi' using the raspi-config utility, then you will not get nagged about it when operating headlessly. The raspi-config program won't affect the nag you get in the GUI, however. You can eliminate that by removing /etc/xdg/autostart/piwiz.desktop completely or rename it to anything other than .desktop.
 
Old 04-27-2020, 02:38 PM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,822

Rep: Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719
remove/edit /etc/profile.d/sshpwd.sh
 
Old 04-28-2020, 12:29 AM   #7
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,824
Blog Entries: 3

Rep: Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398
Quote:
Originally Posted by Keith Hedger View Post
remove/edit /etc/profile.d/sshpwd.sh
That's only triggered if the file /run/sshwarn exists. Which systemd service creates that file?
 
Old 04-28-2020, 03:47 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 11,525

Original Poster
Rep: Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335
Not on the RazPi now. Is there any problem with me just setting the ssh passwd myself? To my mind, the biggest disadvantage of Raspbian is Systemd. It's like Selinux and NetworkManager, pourous. And the answer to a bug is rarely a fix, but another script .

It reminds me of this fortune cookie
Quote:
Bug:
An elusive creature living in a program that makes it incorrect.
The activity of "debugging," or removing bugs from a program, ends
when people get tired of doing it, not when the bugs are removed.
 
Old 04-28-2020, 04:24 AM   #9
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,824
Blog Entries: 3

Rep: Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398
It looks like it is run from PAM via the package libpam-chksshpwd.

Code:
$ dpkg -S  /etc/profile.d/sshpwd.sh 
libpam-chksshpwd:armhf: /etc/profile.d/sshpwd.sh

$ dpkg -L libpam-chksshpwd
/.
/etc
/etc/profile.d
/etc/profile.d/sshpwd.sh
/lib
/lib/arm-linux-gnueabihf
/lib/arm-linux-gnueabihf/security
/lib/arm-linux-gnueabihf/security/pam_chksshpwd.so
/usr
/usr/share
/usr/share/doc
/usr/share/doc/libpam-chksshpwd
/usr/share/doc/libpam-chksshpwd/NEWS.Debian.gz
/usr/share/doc/libpam-chksshpwd/changelog.Debian.gz
/usr/share/doc/libpam-chksshpwd/changelog.gz
/usr/share/doc/libpam-chksshpwd/copyright
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/pam_chksshpwd.8.gz
/usr/share/pam-configs
/usr/share/pam-configs/chksshpwd
 
Old 04-28-2020, 04:53 AM   #10
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,822

Rep: Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719Reputation: 719
Quote:
Originally Posted by business_kid View Post
... To my mind, the biggest disadvantage of Raspbian is Systemd. It's like Selinux and NetworkManager, pourous. And the answer to a bug is rarely a fix, but another script . ...
Put Linux from scratch on it, works well and without all the systemd overhead and guff.

Quote:
That's only triggered if the file /run/sshwarn exists. Which systemd service creates that file?
The OP just asked for a way to rid themselves of the nag, removing/editing '/etc/profile.d/sshpwd.sh' is a quick simple fix and gets rid of the nag without worrying about systemd getting the hump.
 
Old 04-28-2020, 12:35 PM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 11,525

Original Poster
Rep: Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335
Removing that file sounds good. I'll do that & report back. My work rate here has slowed considerably due to ill health. I'm just coming up for air after pc trouble before starting into the Pi.

LFS is something I'm not doing on a RazPi. They're not particularly encouraging of Arm on LFS, last time I looked. I did LFS in the past & last year. I'm not trying it on Arm. I went looking for a 64bit OS, but the offerings are few. My own favourite, slackware, has a slackware 32bit build as a WIP. Debian(Raspbian) looks good because they have the critical mass to keep updates, etc. coming until a 64bit distro comes along.

Last edited by business_kid; 04-28-2020 at 01:45 PM.
 
Old 04-28-2020, 03:04 PM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 11,525

Original Poster
Rep: Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335
Solved. Thanks guys.

In the RazPi X config I disabled SSH as user pi. That solved it.
To be sure, I deleted /etc/profile.d/sshckpwd.sh or whatever it was, and the sky didn't fall in.

There's other things that niggle but this box is a tv addon, primarily because the tv interface is such a major pita. This, in it's present state is to be used, not experimented upon.

The only nasty thing I did was to give root a password, which I am wont to do. It saves sudo running out of permission, which happens. Reboot won't reboot, but I absolutely don't care, and refuse to lift a finger investigating.
 
Old 04-28-2020, 09:15 PM   #13
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,824
Blog Entries: 3

Rep: Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398Reputation: 2398
Removing the script can be done by removing the whole package named in #9 above. Otherwise, with the package still there, you have a chance that the script might come back with some future update.
 
Old 04-29-2020, 03:25 AM   #14
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 11,525

Original Poster
Rep: Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335Reputation: 1335
Quote:
Originally Posted by Turbocapitalist View Post
Removing the script can be done by removing the whole package named in #9 above. Otherwise, with the package still there, you have a chance that the script might come back with some future update.
Yes, but the not starting ssh also supressed the error. I'm good, I think.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Buster and Raspbian apt update cannot resolve servers anymore since 1.5 months, very slow till no updates Thomas Korimort Debian 3 02-24-2020 10:00 AM
[SOLVED] After having a successful installation of Debian Buster, Lenovo computer refuses to boot into Debian Buster 10.2 PicardDefendingData Debian 4 12-21-2019 07:51 PM
LXer: Raspbian PIXEL Fork for PC and Mac Is Now Based on Debian GNU/Linux 10 "Buster" LXer Syndicated Linux News 0 11-06-2019 01:51 AM
LXer: Raspbian GNU/Linux upgrade from Stretch to Raspbian Buster 10 LXer Syndicated Linux News 0 07-26-2019 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration