how to reset password on arch linux forget sudo password
- User
how to reset password on arch linux forget sudo password
Assistant
To reset a forgotten sudo password on Arch Linux, you'll need to boot into single-user mode or use a live USB. Here are the two main methods:
Method 1: Using GRUB (Single-User Mode)
-
Reboot your system and when the GRUB menu appears, press
eto edit the boot entry -
Find the line that starts with
linuxand add one of these at the end:init=/bin/bashorsingleor1
-
to boot with these parameters
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.