Red Hat Linux Password reset ( ethical hacking Password Breakage )
Initial setup:
password break:
restart system
> press esc key
linux
> press e
> fi ( line not enter)
> linux16 /boot/vmliuz > go to end of the line and enter below the command
rd.break console=tty1
>ctrl+X
switch_root:# mount -o remount,rw /sysroot
switch_root:# ch root /sysroot
sh-4.2# passwd
newpasswd:
retypepasswd:
sh-4.2# exit
switch_root:#exit
[root@server6 ~]# nmtui
> Edit a connection
> system eth0
> Edit
>Profile name:system eth0
> ipv4 configuration -->show(click)--Enter
( IP address,gateway,dns,search domain give in EXAM u can enter below)
Addressed:172.25.20.11
Gateway :172.25.254.254
DNS server:172.25.254.254
search Domain: example.com
> ok
> quit
[root@server6 ~]# nmtui
> Activate connection
> system eth0 ----> Deactivate(show)--Enter--> Activate ---> Enter
> quit
now check IP address:
[root@server6 ~]# ip a
[root@server6 ~]# ping 172.25.254.254
[root@server6 ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO=static
ONBOOT=yes
[root@server6 ~]#hostnamectl set-hostname server6.example.com
or
[root@server6 ~]#vim /etc/hostname
server6.example.com
[root@server6 ~]# systemctl mask iptables
[root@server6 ~]# systemctl mask ip6tables
[root@server6 ~]# systemctl mask ebtables
[root@server6 ~]# hostnamectl set-hostname server6.example.com
[root@server6 ~]# hostname
[root@server6 yum.repos.d]# vim admin.repo
[admin]
name=adminrepo
baseurl=http://content.example.com/rhel7.0/x86_64/dvd
gpgcheck=0
enabled=1
[root@server6 yum.repos.d]# yum clean all
[root@server6 yum.repos.d]# yum clean dbcache
[root@server6 yum.repos.d]# yum repolist
[root@server6 ~]# init 6
Comments
Post a Comment