Reset root password on CentOS 7

18 sec read

Edit boot menu on-the-go

0. reboot the CentOS 7 and press ESC when GRUB menu show up on the screen and press “e”
1. find “ro” on “linux16” section and then change to “rw init=/sysroot/bin/sh”
2. press “CTRL + x” to reboot CentOS to init sh mode and start to reset root password

chroot sysroot

after booting on init sh mode, run this command:

chroot /sysroot

reset root password

passwd root

reinitial selinux

touch /.autorelabel

exit from chroot

exit

reboot CentOS 7

reboot

How to install NextCloud in Ubuntu 22.04

What’s NextCloud Nextcloud is an open-source software suite that offers a secure, self-hosted alternative to popular cloud storage and productivity platforms. With a focus...
sysadmin.id
8 min read

Free ext4 reserved blocks with tune2fs

Check disk usage df -h Filesystem Size Used Avail Use% Mounted on /dev/vda1 95G 82G 7.9G 92% / Check size of Reserved block count...
sysadmin.id
19 sec read

Send Xymon/Hobbit Alerts to Slack Channel

How to sent xymon/hobbit alerts to slack channel 0. create bash script to push xymon/hobbit alerts to slack vim /etc/xymon/scripts/alert_to_slack.sh #!/bin/bash hostname=$BBHOSTNAME level=$BBCOLORLEVEL msg=$BBALPHAMSG...
sysadmin.id
22 sec read