LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 12-22-2023, 05:36 PM   #1
KPryor
Member
 
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45

Rep: Reputation: 16
Locked out of Raspberry Pi


Hello all,

I recently tried to login to my Pi (running Rasp Pi OS) and was told my password was incorrect. I'm sure it was correct, but anyway... I finally wound up booting to single user mode and changed my login password. I booted back to normal mode and tried to login and it still says my password is wrong. I went back to single user mode and created a new user/password. Rebooted again and get told the new user's password is incorrect. I'm really baffled as to what went wrong here. The Pi is runnning as my Jellyfin server and I really hate to wipe it and start over, but if I can't figure out my login problem I guess that's what I'll have to do. Anyway, I was just wondering if anyone has seen a similar issue or has a solution.

Thanks!
Ken
 
Old 12-23-2023, 02:53 AM   #2
killerhippy
LQ Newbie
 
Registered: Jan 2021
Location: Germany
Distribution: debian
Posts: 22

Rep: Reputation: Disabled
It's a couple of decades ago, but I have once got a very special message when I tried to login:

"You don't exist, go away!"

Reason was a filled up devicesystem with no space left.
 
1 members found this post helpful.
Old 12-23-2023, 03:16 AM   #3
___
Member
 
Registered: Apr 2023
Posts: 149
Blog Entries: 1

Rep: Reputation: Disabled
Wild idea: strace (login or su maybe), to see where it errors out.
 
1 members found this post helpful.
Old 12-23-2023, 10:08 AM   #4
KPryor
Member
 
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by killerhippy View Post
It's a couple of decades ago, but I have once got a very special message when I tried to login:

"You don't exist, go away!"

Reason was a filled up devicesystem with no space left.
The file systems is not full on this one, so it's just a weird mystery. Jellyfin is still working great but I have no way to login via command line/ssh to update the system ever or do other maintenance work. Looks like I'm probably just going to tear it all down and rebuild my server. Not a huge deal but not what I really want to do.
Thanks!
 
Old 12-23-2023, 10:11 AM   #5
KPryor
Member
 
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ___ View Post
Wild idea: strace (login or su maybe), to see where it errors out.
I can't login at all, except when booted to single user mode as root, so I'm not sure how I could do that. I've never used strace before so maybe I just don't understand how it would work.
 
Old 12-23-2023, 10:30 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,609
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Quote:
Originally Posted by KPryor View Post
I've never used strace before so maybe I just don't understand how it would work.
strace shows all the system function calls that a program makes as it runs so you can see where it is breaking.
 
2 members found this post helpful.
Old 12-23-2023, 11:13 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
I would try adding another user, and seeing if they can log in and do stuff. If so you can
  1. use usermod as root to change your old user's uid & gid to something weird
  2. Use usermod to make your new user's uid & gid the same as the original user
  3. Keep checking your new user functions.
Change as much as you want of new user to old. I would not change the homedir, as the problem could well be there. But if you get your server running, you can sort the rest out yourself. I would caution against doing anything global.

Given your tale of woe, you may be suffering under the delusion that sdcards are reliable storage. They are not. If you succeed in extracting yourself out of this, back up to disik, buy a new sdcard and make a copy. That may well fix it. When did you fsck the disk last?
 
Old 12-23-2023, 11:22 AM   #8
KPryor
Member
 
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by business_kid View Post
I would try adding another user, and seeing if they can log in and do stuff. If so you can
  1. use usermod as root to change your old user's uid & gid to something weird
  2. Use usermod to make your new user's uid & gid the same as the original user
  3. Keep checking your new user functions.
Change as much as you want of new user to old. I would not change the homedir, as the problem could well be there. But if you get your server running, you can sort the rest out yourself. I would caution against doing anything global.

Given your tale of woe, you may be suffering under the delusion that sdcards are reliable storage. They are not. If you succeed in extracting yourself out of this, back up to disik, buy a new sdcard and make a copy. That may well fix it. When did you fsck the disk last?
Been a while since I ran fsck, I'll admit. All my media files (videos, music, etc) are on a USB connected drive, so I won't lose any of that. This is just kind of a weird deal. I'm thinking instead of wasting any more time on it, I'm just going to build a new server as a Proxmox VM and run it from that from now on and ditch the Pi from regular use. At least with the VM I can set it to auto backup as often as I like to my backup server.
 
Old 12-23-2023, 11:43 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
If you have a usb dedicated to it, why, oh why run on sdcard at all?

Sure, you might have to fart around with your usb initially to get going but the usb boots a Pi for some years. I have a usb disk running mine with an empty sdcard slot. So if the usb boot goes pear shaped, I can get in with an sdcard. Even the other usb3 slot has boot priority, to maximise my chances of taking life easy.
 
1 members found this post helpful.
Old 12-23-2023, 11:59 AM   #10
KPryor
Member
 
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by business_kid View Post
If you have a usb dedicated to it, why, oh why run on sdcard at all?

Sure, you might have to fart around with your usb initially to get going but the usb boots a Pi for some years. I have a usb disk running mine with an empty sdcard slot. So if the usb boot goes pear shaped, I can get in with an sdcard. Even the other usb3 slot has boot priority, to maximise my chances of taking life easy.
This is an old Pi 3 that's I've had running in this capacity for quite a while. Never looked into changing the boot device for whatever reason. It's not a huge deal. Just more of a curiosity than anything as to what went wrong. Thanks!
 
Old 12-23-2023, 02:44 PM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,359

Rep: Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333Reputation: 2333
Well, I don't know if the Pi 3 does usb boot at all. The Pi 4 does.
 
Old 12-23-2023, 05:42 PM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator Response

Moved: This thread is more suitable in <Linux - Embedded & Single-board computer > and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 12-24-2023, 04:20 AM   #13
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,923

Rep: Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319Reputation: 7319
Usually I have a default boot on the sd card, and everything else is stored on a pendrive. So in such cases I just need to save some settings and reinstall the os. But we still don't know what is wrong. Probably you can find something in logs (dmesg?). Probably your SD card is over.
You can check that SD card on any other host, to see if it is healthy and works perfectly (you just need a reader).
 
1 members found this post helpful.
Old 12-24-2023, 09:36 PM   #14
___
Member
 
Registered: Apr 2023
Posts: 149
Blog Entries: 1

Rep: Reputation: Disabled
+1 #6. Well worth a web-research on: strace tutorial
Tho OP has probably moved on with a reinstall, I'd be curious to hear the cause!
(Or OP can mark thread as solved with 'Thread Tools' above #1)
 
Old 12-25-2023, 07:56 AM   #15
KPryor
Member
 
Registered: Nov 2006
Distribution: Ubuntu server and Ubuntu Mate
Posts: 45

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ___ View Post
+1 #6. Well worth a web-research on: strace tutorial
Tho OP has probably moved on with a reinstall, I'd be curious to hear the cause!
(Or OP can mark thread as solved with 'Thread Tools' above #1)
I haven't done anything yet. Sorry I didn't check in on this thread yesterday. Been busy with holiday related stuff. Anyway, I will definitely research strace and see what I can find out. I appreciate all the suggestions given. Whenever I do my server rebuild, I will definitely do a better job of setting things up. I will go ahead an mark this as solved since I plan to rebuild the server, but if/when I figure out what the problem is I will report back.

Thank you!!!
Ken
 
1 members found this post helpful.
  


Reply



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
LXer: Raspberry Pi: Combine a Raspberry Pi with up to 4 Raspberry Pi Zeros for less than US$50 with the Cluster HAT LXer Syndicated Linux News 0 07-05-2019 12:03 PM
IS there a way for raspberry pi to alert you if it crashed or locked up? cvbngrocks Linux - Embedded & Single-board computer 6 11-23-2018 04:55 AM
LXer: How To 'PoisonTap' A Locked Computer Using A $5 Raspberry Pi LXer Syndicated Linux News 0 11-17-2016 10:02 PM
HELP!! I just locked myself out of MySQL!! What an idiot -----------> FunkFlex Linux - Newbie 0 01-27-2002 01:28 PM
Passwd files corrupt - I am locked out. Need Help!!! cloy Linux - Newbie 4 02-16-2001 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:11 PM.

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
Open Source Consulting | Domain Registration