ALT.OS.LINUX------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 1 из 100
 От   : Paul                                2:5075/128        16 сен 23 15:24:39
 К    : MarioCCCP                                             16 сен 23 22:27:02
 Тема : Re: Debian Bullseye / Bookworm - Root password PARTIAL loss and recover
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 1@dont-email.me> 7bbfbcd7
@REPLY: 1@dont-email.me> 52aed787
@REPLYADDR Paul <nospam@needed.invalid>
@REPLYTO 2:5075/128 Paul
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@dont-email.me>
@RFC-References: 1@dont-email.me>
1@dont-email.me> 1@dont-email.me> 1@dont-email.me>
@TZUTC: -0400
@PID: Ratcatcher/2.0.0.25 (Windows/20130802)
@TID: FIDOGATE-5.12-ge4e8b94
On 9/16/2023 2:44 PM, MarioCCCP wrote:
> On 16/09/23 20:24, Paul wrote:
>> On 9/16/2023 1:06 PM, MarioCCCP wrote:
>>> On 15/09/23 17:38, MarioCCCP wrote:
>>>>
 >>>> I have a Debian install on which I have only one EXPLICIT (=
created) user, say Pippo, with full sudoer and "admin" rights.
 >>>> I still have its password correct, but I fail to reliably
login as Pippo + correct password.
>>>>
>>>>
 >>>> Then it is an "implicit" root user, which seems to have a
different password I forgot.
>>>>
 >>>> The bad thing is : in recovery mode at boot it is the only
one it asks for to do maintenance, despite Pippo having root / admin
privileges too (it does not asks to Login, and don`t accept Pippo`s PWD, it
asks for ROOT PWD alone).
>>>>
 >>>> So, now for a Miracle I am logged in as Pippo, which has
roor rights (it is a sudoer).
>>>>
>>>> Can I recover the root passeword ?
>>>> If not, can I reset from Pippo logged in ?
>>>>
>>>> TNX for hints
>>>>
>>>>
>>>>
>>>
 >>> update : I evidently failed to diagnose the problem. There must
be sth very wrong somewhere.
>>>
 >>> I managed to login loading the former kernel in recovery mode.
This procedure does not always work, as I have to skip the "GIVE ROOT
PASSWORD" request at least some times with pwds not being accepted and then
follow the alternative "OR PRESS CTRL+D TO CONTINUE" (which sometimes works,
if not I reboot the harsh way).
>>> Anyway, I logged in.
 >>> Then, at Pippo sudo -i, I reset the root password as many
suggested. And it worked once logged in, in fact it allowed to also excalate
doing SU (not sudo), which formerly was not allowed.
>>>
 >>> On reboot, though, the newest kernel fails to load, it get
stuck and unresponsive to any keyboard event
 >>> (CTRL+ALT+F1...F3, ALTGR+SYSRQ then RSEISUB, CTRL+ALT+BCKSP,
CTRL+ALT+CANC) : no response.
 >>> If i try to load the former kernel, and again it asks for
some not precised maintenance, IT STILL REFUSES TO ACCEPT THE FRESLY
RESET PWD. Since the reset pwd is equal to Pippo`s SUDO one, there seem
no viable pwd able to enter in maintenance mode ...
 >>> I dunno what the system has. I tried some random things as
update-grub, update-initramfs -u, chkboot. But nothing changes.
>>>
>>> Maybe the password not recognized is the tip of an iceberg ...
>>
>> The password is stored in /etc/passwd and /etc/shadow.
>>
>> If the slash file system is not mounted at that point
>> in time, perhaps the stored value of the password is
>> not accessible.

 > strange enough it asks for a password then, if it wouldn`t be
able to check it no matter what ...

>>
>> Using your fallback (working) setup, perhaps you
>> could paste some of the
>>
>>     inxi -F

> I`ll try !
> tnx

>>
>> output for the audience.

This is a BookWork Deb12 in a VM, fully updated to latest.

bullwinkle@CATVILLE:~$ inxi -F

System:
  Host: CATVILLE Kernel: 6.1.0-12-amd64 arch: x86_64 bits: 64
    Desktop: Cinnamon v: 5.6.8 Distro: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Virtualbox System: innotek GmbH product: VirtualBox v: 1.2
    serial: 
  Mobo: Oracle model: VirtualBox v: 1.2 serial: 
    BIOS: innotek GmbH v: VirtualBox date: 12/01/2006
CPU:
  Info: quad core model: AMD Ryzen 9 5950X bits: 64 type: MCP cache: L2: 2 MiB
  Speed (MHz): avg: 3400 min/max: N/A cores: 1: 3400 2: 3400 3: 3400 4: 3400
Graphics:
  Device-1: VMware SVGA II Adapter driver: vmwgfx v: 2.20.0.0
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 driver: X:
    loaded: vmware unloaded: fbdev,modesetting,vesa dri: swrast gpu: vmwgfx
    resolution: 1280x768~60Hz
  API: OpenGL v: 4.5 Mesa 22.3.6 renderer: llvmpipe (LLVM 15.0.6 128 bits)
Audio:
  Device-1: Intel 82801FB/FBM/FR/FW/FRW High Definition Audio
    driver: snd_hda_intel
  API: ALSA v: k6.1.0-12-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: active
Network:
  Device-1: Intel 82540EM Gigabit Ethernet driver: e1000
  IF: enp0s3 state: up speed: 1000 Mbps duplex: full mac: 08:00:27:a1:ee:9a
  Device-2: Intel 82371AB/EB/MB PIIX4 ACPI type: network bridge
    driver: piix4_smbus
Drives:
  Local Storage: total: 64 GiB used: 9.67 GiB (15.1%)
  ID-1: /dev/sda vendor: VirtualBox model: VBOX HARDDISK size: 64 GiB
Partition:
  ID-1: / size: 54.41 GiB used: 9.67 GiB (17.8%) fs: ext4 dev: /dev/sda1
Swap:
  ID-1: swap-1 type: partition size: 8.41 GiB used: 0 KiB (0.0%)
    dev: /dev/sda2
Sensors:
  Src: lm-sensors+/sys Message: No sensor data found using /sys/class/hwmon
    or lm-sensors.
Info:
  Processes: 190 Uptime: 0m Memory: 3.82 GiB used: 1.22 GiB (31.8%)
  Shell: Bash inxi: 3.3.26
bullwinkle@CATVILLE:~$

   Paul


--- Ratcatcher/2.0.0.25 (Windows/20130802)
 * Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх