Logo
  • Ubuntu
  • CentOS
  • Debian
  • Fedora
  • RedHat

How to Reset Forgotten Root Password in Arch Linux - DesignLinux

May 29 2020
designlinux 0 Comments

It’s quite frustrating getting locked out of your system as the root user because you cannot recall your password. This usually happens in case you haven’t logged in as root for an extended period of time. But fret not. In this article, we walk you through a step-by-step process on how you can reset a forgotten root password in Arch Linux.

Keep Reading: How to Reset Forgotten Root Password in CentOS 8

Firstly, reboot or power on your Arch system. The first entry will be selected by default as shown below.

Arch Linux Grub Boot Menu

Arch Linux Grub Boot Menu

Interrupt the booting process by pressing ‘e’ on the keyboard to make changes to the boot entry.

In the next step, scroll down and locate a line that begins with:

linux          /boot/vmlinuz-linux

Using the arrow keys navigate to the end of this line which ends with quiet. Next, append the parameter init =/bin/bash as shown.

Change Grub Boot Entry in Arch Linux

Change Grub Boot Entry in Arch Linux

Next press the ctrl + x combination to boot into single-user mode with the root filesystem mounted with read-only (ro) access rights.

We need to remount the root filesystem with read and write rights.

# mount -n -o remount,rw /
Mount Root Filesystem in Arch Linux

Mount Root Filesystem in Arch Linux

Now you can go ahead to reset the root password using the passwd command.

# passwd
Reset Root Password in Arch Linux

Reset Root Password in Arch Linux

Specify your new root password and confirm it. If everything went well you will get the output:

‘password updated successfully’.

Finally, run the command below to save the changes and start ArchLinux.

# exec /sbin/init

And that’s it! As you can see, it’s a simple and straightforward procedure. You should now be comfortable resetting your root password in case you forget it.

Sharing is Caring…
Share on FacebookShare on TwitterShare on LinkedinShare on Reddit

Related

Tags: Arch Linux Tips

How to Setup Redis For High Availability with Sentinel in CentOS 8 – Part 2

Prev Post

How to Setup Redis Replication (with Cluster-Mode Disabled) in CentOS 8 – Part 1

Next Post
Archives
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • July 2022
  • June 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
Categories
  • AlmaLinux
  • Android
  • Ansible
  • Apache
  • Arch Linux
  • AWS
  • Backups
  • Bash Shell
  • Bodhi Linux
  • CentOS
  • CentOS Stream
  • Chef
  • Cloud Software
  • CMS
  • Commandline Tools
  • Control Panels
  • CouchDB
  • Data Recovery Tools
  • Databases
  • Debian
  • Deepin Linux
  • Desktops
  • Development Tools
  • Docker
  • Download Managers
  • Drupal
  • Editors
  • Elementary OS
  • Encryption Tools
  • Fedora
  • Firewalls
  • FreeBSD
  • FTP
  • GIMP
  • Git
  • Hadoop
  • HAProxy
  • Java
  • Jenkins
  • Joomla
  • Kali Linux
  • KDE
  • Kubernetes
  • KVM
  • Laravel
  • Let's Encrypt
  • LFCA
  • Linux Certifications
  • Linux Commands
  • Linux Desktop
  • Linux Distros
  • Linux IDE
  • Linux Mint
  • Linux Talks
  • Lubuntu
  • LXC
  • Mail Server
  • Manjaro
  • MariaDB
  • MongoDB
  • Monitoring Tools
  • MySQL
  • Network
  • Networking Commands
  • NFS
  • Nginx
  • Nodejs
  • NTP
  • Open Source
  • OpenSUSE
  • Oracle Linux
  • Package Managers
  • Pentoo
  • PHP
  • Podman
  • Postfix Mail Server
  • PostgreSQL
  • Python
  • Questions
  • RedHat
  • Redis Server
  • Rocky Linux
  • Security
  • Shell Scripting
  • SQLite
  • SSH
  • Storage
  • Suse
  • Terminals
  • Text Editors
  • Top Tools
  • Torrent Clients
  • Tutorial
  • Ubuntu
  • Udemy Courses
  • Uncategorized
  • VirtualBox
  • Virtualization
  • VMware
  • VPN
  • VSCode Editor
  • Web Browsers
  • Web Design
  • Web Hosting
  • Web Servers
  • Webmin
  • Windows
  • Windows Subsystem
  • WordPress
  • Zabbix
  • Zentyal
  • Zorin OS
Visits
  • 1
  • 509
  • 591,374

DesignLinux.com © All rights reserved

Go to mobile version