Skip to main content

how to reset root password

this is the tutorial how to reset your root password. it can be applied to redhat enterprise linux-based (oracle linux, centos, scilinux, fedora ).

1. restart your system, wait until it boot-up. press 'esc' to enter the GRUB menu

2. select from GRUB menu your linux kernel, it usually like this "kernel-vmlinuz-*" , press 'e' to edit

3. edit the at last line (it usually like this "rhgb linux quiet"), change it with :
    rhgb linux single
    or,
    rhgb linux quiet 1
(this two lines above works well with fedora), or
    rhgb linux single init=/bin/bash
(use this line if the previous doesn't work, especially with enterprise-based distribution)
press 'enter' then

4. back to the GRUB menu, choose the kernel and press 'b' to boot

5. wait for the system to boot-up and if the change succeed it will bring the system to login directly as root user

6. type command 'passwd' to enter your new root password

note:
if the last step failed, type the line above on terminal
# mount -n -o remount, rw /
# passwd       

Comments

Popular posts from this blog

about gigabyte NIC onboard not detected on enterprise linux distribution

on several gigabyte motherboard, onboard network interface card  will not be detected on enterprise linux distribution (e.g. scientific linux, oracle linux server, etc). alternatively you must supply add-on card. or if you insist to use the onboard card, you must install the unofficial nic driver. this is tutorial how to install driver for onboard network interface card GIGABYTE first of all prepare your system. make sure it has package group "Development Tools" installed. if it has not, install it # yum groupinstall “Development Tools” download the source code : https://www.dropbox.com/s/na91bu4az4p9827/AR81Family-linux-v1.0.1.14.tar.gz extract the source code : # tar zxvf AR81Family-linux1.0.1.14.tar.gz the extraction process will make the new directory "AR81Family*", change to the directory # cd AR81Family* compile the source by type on terminal : # make then, # make install wait until the compiling process finish. next make the new scrip...

about vsftpd module helper (ip_conntrack)

vsftpd modul helper (ip_conntrack) # /etc/sysconfig/iptables add the lines to open port tcp 21 for vsftpd -A INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT # /etc/sysconfig/iptables-config edit the lines below # Load additional iptables modules (nat helpers) # Default: -none- # # IPTABLES_MODULES="ipconntrack_ftp ip_nat_ftp" # # restart service # service iptables restart The ip conntrack ftp module is used by iptables to listen to traffic and allow connections to the data ports (20). This allows an FTP server to operate on a machine which is running a firewall. Without this option passive ftp will not work. Another option is just skip this module assign min and max pass ranges in vsftpd and open those ports. source: http://www.cyberciti.biz/tips/rhel-fedora-centos-vsftpd-installation.html

about getsebool and setsebool

The setsebool is used to set SELinux boolean value i.e. various configurations can be enabled or disabled using this tool. In other words, the setsebool command switches on and off the protection of SELinux. Type getsebool -a to see all such options which can be enabled or disabled at run time: e.g. # getsebool -a The following should give you a complete listing of all the vsftpd switches: e.g.  # getsebool -a | grep ftp  For example, if httpd_disable_trans set to 1, it will disable SELinux protection for  Apache web server. To disable it, enter:  # setsebool -P httpd_can_network_connect=1 To enable it, enter:    # setsebool -P httpd_can_network_connect=0