🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.user.french
1 messages
1 total messages Started by derlyne Mon, 02 Nov 2026 03:30
Re: Mot de passe root perdu
#106
Author: derlyne
Date: Mon, 02 Nov 2026 03:30
321 lines
19508 bytes
------=_Part_202165_1353138681.1793588720129
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

debian et d=C3=A9riv=C3=A9e

y'a plusieurs fa=C3=A7ons de faire,=C2=A0
(rien n'indique qu'une distrib aurait un fonctionnement particulier =C3=A0 =
ce sujet =C3=A0 part les exotiques ...)

Tir=C3=A9s des pr=C3=A9c=C3=A9dents fils par exemple :

-----------------------------------------------------J=E2=80=99AI OUBLI=C3=
=89 MON MOT DE PASSE.
Si vous avez oubli=C3=A9 votre mot de passe, vous devez le r=C3=A9initialis=
er en utilisant le =C2=AB mode de r=C3=A9cup=C3=A9ration =C2=BB.
Pour d=C3=A9marrer le mode de r=C3=A9cup=C3=A9ration, arr=C3=AAtez votre or=
dinateur et faites-le red=C3=A9marrer.
Au moment o=C3=B9 celui-ci red=C3=A9marre, appuyez sur Maj.
Choisissez l=E2=80=99option mode r=C3=A9cup=C3=A9ration en utilisant les to=
uches de direction de votre clavier.
Le mode r=C3=A9cup=C3=A9ration devrait =C3=AAtre sous le titre Options avan=
c=C3=A9es dans la liste.
Attendez qu=E2=80=99ubuntu d=C3=A9marre =E2=80=94 ce qui peut prendre quelq=
ues minutes.
Une fois d=C3=A9marr=C3=A9, vous ne verrez pas un =C3=A9cran de connexion n=
ormal.
Au lieu de celui-ci vous allez trouver le menu de r=C3=A9cup=C3=A9ration.
Choisissez root en utilisant les touches de direction et appuyez sur Entr=
=C3=A9e.
Vous allez maintenant =C3=AAtre dans un terminal :
*root@"ubuntu":~#
Pour r=C3=A9initialiser votre mot de passe, entrez :
*# passwd nomdelutilisateur
Remplacez =C2=AB nomdelutilisateur =C2=BB ci-dessus par votre nom d=E2=80=
=99utilisateur, apr=C3=A8s quoi On vous demandera de saisir un nouveau mot =
de passe.
Saisissez le mot de passe de votre choix puis validez avec la touche Entr=
=C3=A9e et saisissez =C3=A0 nouveau ce m=C3=AAme mot de passe, et =C3=A0 no=
uveau la touche Entr=C3=A9e (On vous demande de confirmer ce mot de passe p=
our =C3=AAtre s=C3=BBr que vous ne faites pas d=E2=80=99erreur de saisie au=
 clavier).
Lorsque vous avez r=C3=A9tabli votre mot de passe, revenez =C3=A0 l=E2=80=
=99environnement normal du syst=C3=A8me en entrant :
*# init 2
Connectez-vous comme d=E2=80=99habitude et continuez de profiter d=E2=80=99=
ubuntu.
------------------------------------------------------------------HOW TO RE=
SET THE ROOT PASSWORD IN LINUX

If you forgot the root password for your Debian system, do not panic.
There is an easy way to reset the password.
Linux provides a special mode called "recovery mode" or "single user mode,"=
 whereby a Linux host boots into a single user environment where you get to=
 access shared resources such as file systems exclusively.
The recovery mode is often used when you need to perform file system mainte=
nance and recovery, or conduct security vulnerability auditing in an isolat=
ed environment.

You can also reset the root password in the recovery mode.

In order to boot into the recovery mode on Debian or Ubuntu, hold down SHIF=
T key after powering on your Linux machine.
You will then be presented with GRUB menu.
Select "recovery menu" option by pressing down arrow key.
Do not press ENTER at this point, but rather press "e" key to enter edit mo=
de.

You will see "GRUB" edit screen where you can edit GRUB boot parameters.
Move your cursor to the line starting with "linux /boot/vmlinuz-.......", a=
nd go to the end of that line.

Append "init /bin/bash".

Then press Ctrl+X to proceed.
After all subsequent booting sequence is over, you will finally get a root =
prompt.

In the recovery mode, the root partition is mounted as read-only by default=
, and so you cannot change the root password as is.
In order to be able to reset the root password, you need to re-mount the ro=
ot partition as read-write.

First, find out what the root partition of your system is, by using "fdisk =
-l" command.

The partition marked with "*" under "Boot" column is the root partition of =
your system (e.g., /dev/sda1).

Remount the root partition as read-write, and finally reset the password, u=
sing passwd command.
$ mount -o remount,rw /dev/sda1 /
$ passwd=C2=A0
---------------------------------------------------------------------------=
----------------------------------you can use the passwd command to change =
your password, and, as a system administrator, change the password of the r=
oot account, or another user in your Linux system. The syntax is as follows=
:

passwd

OR

passwd {userName}

OR

passwd [option] userNameHere

Linux Change Your Own Password

Login using the ssh client or open a command-line terminal (select Applicat=
ions > Accessories > Terminal), than type the following command:
$ passwd

First, the user is prompted for their current password. If the current pass=
word is correctly typed, a new password is requested. The new password must=
 be entered twice to avoid typing errors. Running passwd command with no ar=
guments will allow you to change your own password.

Linux Change root=E2=80=99s User Password

To change root=E2=80=99s password, you must first login as root user or use=
 sudo / su command to obtain root=E2=80=99s credentials. To become the root=
 user, enter:

$ su -l
root : p%4B o#8K n?5Z 2@Ur

OR
$ sudo -s

To change root=E2=80=99s password, enter:
# passwd
[Warning root's credentials required to change root's password]=C2=A0
WARNING! You can change root=E2=80=99s password only if you are logged in a=
s the root user!

Linux Change Another User=E2=80=99s Password

To change the password of another user, login as root and type:
# passwd userNameHere
# passwd tom
# passwd jerry
A note about protecting your password

Your password unlocks your account and all data on Linux. So you need to pr=
otect your password. Here are some simple tips:

=C2=A0=C2=A0=C2=A0 Please do not write down your password. You need to memo=
rize it.
=C2=A0=C2=A0=C2=A0 Do not use the same password for all your accounts inclu=
ding ssh, git, file and email servers. Use unrelated passwords for systems =
controlled by different organizations.
=C2=A0=C2=A0=C2=A0 Do not share or give your password, in particular to som=
e one claiming to be from computer IT support department or a vendor.
=C2=A0=C2=A0=C2=A0 Make sure no one watch you enter your password.
=C2=A0=C2=A0=C2=A0 Change password periodically.
---------------------------------------------------------------------------=
-Plusieurs m=C3=A9thodes pour changer votre mot de passe :

=C2=A0=C2=A0=C2=A0 Commande standard

passwd

=C2=A0=C2=A0=C2=A0 Demande l'ancien mot de passe
=C2=A0=C2=A0=C2=A0 Puis le nouveau (2 fois)

=C2=A0=C2=A0=C2=A0 Changement par un autre utilisateur (root)

sudo passwd votre_nom_utilisateur
---------------------------------------------------------------------------
Tout cela peut =C3=AAtre =C3=A9vit=C3=A9 par une bonne hygi=C3=A8ne num=C3=
=A9rique
------=_Part_202165_1353138681.1793588720129
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html>
  <head>
    <meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF-8=
">
  </head>
  <body>
<div dir=3D"auto"><b>debian et d=C3=A9riv=C3=A9e</b><br></div><div dir=3D"a=
uto"><br></div><div dir=3D"auto"><i>y'a plusieurs fa=C3=A7ons de faire,&nbs=
p;</i><i><br></i></div><div dir=3D"auto"><i>(rien n'indique qu'une distrib =
aurait un fonctionnement particulier =C3=A0 ce sujet =C3=A0 part les exotiq=
ues ...)</i><br></div><div dir=3D"auto"><br></div><div dir=3D"auto">Tir=C3=
=A9s des pr=C3=A9c=C3=A9dents fils par exemple :<br></div><div dir=3D"auto"=
><u></u><br></div><div dir=3D"auto">---------------------------------------=
--------------</div><div dir=3D"auto">J=E2=80=99AI OUBLI=C3=89 MON MOT DE P=
ASSE.<br></div><div dir=3D"auto">Si vous avez oubli=C3=A9 votre mot de pass=
e, vous devez le r=C3=A9initialiser en utilisant le =C2=AB mode de r=C3=A9c=
up=C3=A9ration =C2=BB.<br></div><div dir=3D"auto">Pour d=C3=A9marrer le mod=
e de r=C3=A9cup=C3=A9ration, arr=C3=AAtez votre ordinateur et faites-le red=
=C3=A9marrer.<br></div><div dir=3D"auto">Au moment o=C3=B9 celui-ci red=C3=
=A9marre, appuyez sur Maj.<br></div><div dir=3D"auto">Choisissez l=E2=80=99=
option mode r=C3=A9cup=C3=A9ration en utilisant les touches de direction de=
 votre clavier.<br></div><div dir=3D"auto">Le mode r=C3=A9cup=C3=A9ration d=
evrait =C3=AAtre sous le titre Options avanc=C3=A9es dans la liste.<br></di=
v><div dir=3D"auto">Attendez qu=E2=80=99ubuntu d=C3=A9marre =E2=80=94 ce qu=
i peut prendre quelques minutes.<br></div><div dir=3D"auto">Une fois d=C3=
=A9marr=C3=A9, vous ne verrez pas un =C3=A9cran de connexion normal.<br></d=
iv><div dir=3D"auto">Au lieu de celui-ci vous allez trouver le menu de r=C3=
=A9cup=C3=A9ration.<br></div><div dir=3D"auto">Choisissez root en utilisant=
 les touches de direction et appuyez sur Entr=C3=A9e.<br></div><div dir=3D"=
auto">Vous allez maintenant =C3=AAtre dans un terminal :<br></div><div dir=
=3D"auto">*root@"ubuntu":~#<br></div><div dir=3D"auto">Pour r=C3=A9initiali=
ser votre mot de passe, entrez :<br></div><div dir=3D"auto">*# passwd nomde=
lutilisateur<br></div><div dir=3D"auto">Remplacez =C2=AB nomdelutilisateur =
=C2=BB ci-dessus par votre nom d=E2=80=99utilisateur, apr=C3=A8s quoi On vo=
us demandera de saisir un nouveau mot de passe.<br></div><div dir=3D"auto">=
Saisissez le mot de passe de votre choix puis validez avec la touche Entr=
=C3=A9e et saisissez =C3=A0 nouveau ce m=C3=AAme mot de passe, et =C3=A0 no=
uveau la touche Entr=C3=A9e (On vous demande de confirmer ce mot de passe p=
our =C3=AAtre s=C3=BBr que vous ne faites pas d=E2=80=99erreur de saisie au=
 clavier).<br></div><div dir=3D"auto">Lorsque vous avez r=C3=A9tabli votre =
mot de passe, revenez =C3=A0 l=E2=80=99environnement normal du syst=C3=A8me=
 en entrant :<br></div><div dir=3D"auto">*# init 2<br></div><div dir=3D"aut=
o">Connectez-vous comme d=E2=80=99habitude et continuez de profiter d=E2=80=
=99ubuntu.<br></div><div dir=3D"auto">-------------------------------------=
-----------------------------</div><div dir=3D"auto">HOW TO RESET THE ROOT =
PASSWORD IN LINUX<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">If=
 you forgot the root password for your Debian system, do not panic.<br></di=
v><div dir=3D"auto">There is an easy way to reset the password.<br></div><d=
iv dir=3D"auto">Linux provides a special mode called "recovery mode" or "si=
ngle user mode," whereby a Linux host boots into a single user environment =
where you get to access shared resources such as file systems exclusively.<=
br></div><div dir=3D"auto">The recovery mode is often used when you need to=
 perform file system maintenance and recovery, or conduct security vulnerab=
ility auditing in an isolated environment.<br></div><div dir=3D"auto"><br><=
/div><div dir=3D"auto">You can also reset the root password in the recovery=
 mode.<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">In order to b=
oot into the recovery mode on Debian or Ubuntu, hold down SHIFT key after p=
owering on your Linux machine.<br></div><div dir=3D"auto">You will then be =
presented with GRUB menu.<br></div><div dir=3D"auto">Select "recovery menu"=
 option by pressing down arrow key.<br></div><div dir=3D"auto">Do not press=
 ENTER at this point, but rather press "e" key to enter edit mode.<br></div=
><div dir=3D"auto"><br></div><div dir=3D"auto">You will see "GRUB" edit scr=
een where you can edit GRUB boot parameters.<br></div><div dir=3D"auto">Mov=
e your cursor to the line starting with "linux /boot/vmlinuz-.......", and =
go to the end of that line.<br></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">Append "init /bin/bash".<br></div><div dir=3D"auto"><br></div><di=
v dir=3D"auto">Then press Ctrl+X to proceed.<br></div><div dir=3D"auto">Aft=
er all subsequent booting sequence is over, you will finally get a root pro=
mpt.<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">In the recovery=
 mode, the root partition is mounted as read-only by default, and so you ca=
nnot change the root password as is.<br></div><div dir=3D"auto">In order to=
 be able to reset the root password, you need to re-mount the root partitio=
n as read-write.<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">Fir=
st, find out what the root partition of your system is, by using "fdisk -l"=
 command.<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">The partit=
ion marked with "*" under "Boot" column is the root partition of your syste=
m (e.g., /dev/sda1).<br></div><div dir=3D"auto"><br></div><div dir=3D"auto"=
>Remount the root partition as read-write, and finally reset the password, =
using passwd command.<br></div><div dir=3D"auto">$ mount -o remount,rw /dev=
/sda1 /<br></div><div dir=3D"auto">$ passwd&nbsp;<br></div><div dir=3D"auto=
">-------------------------------------------------------------------------=
------------------------------------</div><div dir=3D"auto">you can use the=
 passwd command to change your password, and, as a system administrator, ch=
ange the password of the root account, or another user in your Linux system=
. The syntax is as follows:<br></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">passwd<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">OR<=
br></div><div dir=3D"auto"><br></div><div dir=3D"auto">passwd {userName}<br=
></div><div dir=3D"auto"><br></div><div dir=3D"auto">OR<br></div><div dir=
=3D"auto"><br></div><div dir=3D"auto">passwd [option] userNameHere<br></div=
><div dir=3D"auto"><br></div><div dir=3D"auto">Linux Change Your Own Passwo=
rd<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">Login using the s=
sh client or open a command-line terminal (select Applications &gt; Accesso=
ries &gt; Terminal), than type the following command:<br></div><div dir=3D"=
auto">$ passwd<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">First=
, the user is prompted for their current password. If the current password =
is correctly typed, a new password is requested. The new password must be e=
ntered twice to avoid typing errors. Running passwd command with no argumen=
ts will allow you to change your own password.<br></div><div dir=3D"auto"><=
br></div><div dir=3D"auto">Linux Change root=E2=80=99s User Password<br></d=
iv><div dir=3D"auto"><br></div><div dir=3D"auto">To change root=E2=80=99s p=
assword, you must first login as root user or use sudo / su command to obta=
in root=E2=80=99s credentials. To become the root user, enter:<br></div><di=
v dir=3D"auto"><br></div><div dir=3D"auto">$ su -l<br></div><div dir=3D"aut=
o">root : p%4B o#8K n?5Z 2@Ur<br></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">OR<br></div><div dir=3D"auto">$ sudo -s<br></div><div dir=3D"auto=
"><br></div><div dir=3D"auto">To change root=E2=80=99s password, enter:<br>=
</div><div dir=3D"auto"># passwd<br></div><div dir=3D"auto">[Warning root's=
 credentials required to change root's password]&nbsp;<br></div><div dir=3D=
"auto">WARNING! You can change root=E2=80=99s password only if you are logg=
ed in as the root user!<br></div><div dir=3D"auto"><br></div><div dir=3D"au=
to">Linux Change Another User=E2=80=99s Password<br></div><div dir=3D"auto"=
><br></div><div dir=3D"auto">To change the password of another user, login =
as root and type:<br></div><div dir=3D"auto"># passwd userNameHere<br></div=
><div dir=3D"auto"># passwd tom<br></div><div dir=3D"auto"># passwd jerry<b=
r></div><div dir=3D"auto">A note about protecting your password<br></div><d=
iv dir=3D"auto"><br></div><div dir=3D"auto">Your password unlocks your acco=
unt and all data on Linux. So you need to protect your password. Here are s=
ome simple tips:<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">&nb=
sp;&nbsp;&nbsp; Please do not write down your password. You need to memoriz=
e it.<br></div><div dir=3D"auto">&nbsp;&nbsp;&nbsp; Do not use the same pas=
sword for all your accounts including ssh, git, file and email servers. Use=
 unrelated passwords for systems controlled by different organizations.<br>=
</div><div dir=3D"auto">&nbsp;&nbsp;&nbsp; Do not share or give your passwo=
rd, in particular to some one claiming to be from computer IT support depar=
tment or a vendor.<br></div><div dir=3D"auto">&nbsp;&nbsp;&nbsp; Make sure =
no one watch you enter your password.<br></div><div dir=3D"auto">&nbsp;&nbs=
p;&nbsp; Change password periodically.<br></div><div dir=3D"auto">---------=
-------------------------------------------------------------------</div><d=
iv dir=3D"auto">Plusieurs m=C3=A9thodes pour changer votre mot de passe :<b=
r></div><div dir=3D"auto"><br></div><div dir=3D"auto">&nbsp;&nbsp;&nbsp; Co=
mmande standard<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">pass=
wd<br></div><div dir=3D"auto"><br></div><div dir=3D"auto">&nbsp;&nbsp;&nbsp=
; Demande l'ancien mot de passe<br></div><div dir=3D"auto">&nbsp;&nbsp;&nbs=
p; Puis le nouveau (2 fois)<br></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">&nbsp;&nbsp;&nbsp; Changement par un autre utilisateur (root)<br>=
</div><div dir=3D"auto"><br></div><div dir=3D"auto">sudo passwd votre_nom_u=
tilisateur<br></div><div dir=3D"auto">-------------------------------------=
--------------------------------------<br></div><div dir=3D"auto"><i>Tout c=
ela peut =C3=AAtre =C3=A9vit=C3=A9 par une bonne hygi=C3=A8ne num=C3=A9riqu=
e</i></div>  </body>
</html>

------=_Part_202165_1353138681.1793588720129--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads