July 2016
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

July 2016
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728293031

Redhat 7.2 Reset Password

Edit grub2 boot menu, press e key for edit.

Move your cursor ( HINT: move to end of the line with CTRL+E ) on rhgb quiet keywords and replace them with init=/bin/bash Once you edit the boot line as show above press CTRL + x to start booting your system into a single mode.

# […]

Rebuilding the initrd RHEL 3, 4, 5 and initramfs RHEL 6, 7

Rebuilding the initrd (RHEL 3, 4, 5)

# cp /boot/initrd-$(uname -r).img /boot/initrd-$(uname -r).img.$(date +%m-%d-%H%M%S).bak # mkinitrd -f -v /boot/initrd-$(uname -r).img $(uname -r)

If you are in a kernel version different to the initrd you are building (including if you are in Rescue Mode) you must specify the full kernel version, without architecture:

# mkinitrd -f […]

Fedora 20 automount nfs fs with autofs

Fedora 20 automount nfs fs with autofs # yum install autofs

# cat /etc/auto.misc # # This is an automounter map and it has the following format # key [ -mount-options-separated-by-comma ] location # Details may be found in the autofs(5) manpage

cd -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom RemoteDownload -rw,soft,intr 192.168.1.100:/Download

# the following entries are samples to […]

Single User mode is password protected by the root password on RHEL 7

# RHEL 5 # ——————————————————————————————

# To force users to enter password in Single User mode, add following line to /etc/inittab:

~:S:respawn:/sbin/sulogin

# The changes to this file takes effect after a system reboot

# To make init re-read the /etc/inittab without rebooting the system, type the command

/sbin/init q

# RHEL 6 # ——————————————————————————————

[…]