Reset lost root password on Ubuntu 18.04/20.x Rumi, May 15, 2021 Boot Into GRUB menu The first step is to reboot into the GRUB menu. If Ubuntu 18.04 Bionic Beaver is the only operating system installed you need to keep pressing SHIFT for the GRUB menu to show up. Edit Grub Menu Using arrows select the Ubuntu menu or the menu you use to boot your system and hit the e key. This will allow you to edit the menu: Navigate down with the arrow-down key until you can see a line ending with: ro quiet splash $vt_handoff Using your keyboard replace the following keywords.FROM: ro quiet splash $vt_handoff TO: rw init=/bin/bash Once you have made the change press F10 or CTRL + x to perform boot into a single mode. Reset password Confirm that your system partition is mounted as read/write (rw): # mount | grep -w / If all good, reset your root password with the passwd command: # passwd Alternatively, you can reset your user password. The following linux command will reset the password for the linuxconfig user: # passwd linuxconfig Your root password is now reset. Reboot your system: # exec /sbin/init Troubleshooting Enter new UNIX password: Retype new UNIX password: passwd: Authentication token manipulation error passwd: password unchanged Your root partition is mounted read-only. Try: # mount -o remount,rw / to resolve this issue. end Kernel panic - not syncing: Attempted to kill init! exit code=0x0007f00 Make sure that you removed the splash boot option when editing the grub’s menu item. When trying to reboot with the reboot command I get:Failed to connect to bus: No such file or directory Failed to talk to init daemon. Ignore, and reboot with: # exec /sbin/init Src: https://linuxconfig.org/how-to-reset-lost-root-password-on-ubuntu-18-04-bionic-beaver-linux Related Administrations Configurations (Linux) UbuntuUbuntu 18Ubuntu 20
Install LEMP with phpmyadmin on CentOS 7 November 20, 2017 To add the CentOS 7 EPEL repository, open terminal and use the following command: yum install epel-release Since we are using a sudo command, these operations get executed with root privileges. It will ask you for your regular user’s password to verify that you have permission to run commands with root privileges…. Read More
Update PHP 5.1 to PHP 5.4 in CentOS June 6, 2014 Update Yum repos For 32 bit CentOS- wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm For 64 bit CentOS- wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm Now it’s time to update our PHP to the latest one yum –enablerepo=remi update php php-* /etc/init.d/httpd restart And that’s it! You can check your installed PHP version executing: php… Read More
Install & Configure Popasswd in Debian (for Horde) January 7, 2011 $ apt-get install poppassd # installs server-side mechanism for changing the password $ cd /var/www-ssl/horde/passwd/config $ cp -p backends.php.dist backends.php $ vi backends.php: – delete all but 'poppassd' ########################################### # note: # My poppassd service didnt start, because the deb-package put the startup command in # the /etc/inetd.conf superserver file,… Read More