Password cracking:
E --> linux16 Rd. break Ctrl + X --> Mount-O remount, RW/sysroot --> chroot/sysroot --> echo flectrag | passwd -- stdin root --> touch /. autorelabel --> Ctrl + d --> Reboot
Modify hostname and IP address
Nm-connector-Editor
Ipaddr0 --> prefix0 --> gateway0 --> dns1 --> domain
Chattr + I/etc/resolv. conf
Hostnamectl set-hostname example.com
Yum. Repos. d/RHEL. Repo
[Yumserver]
Name = yumserver
Baseurl = http :///
Gpgcheck = 0
Enabled = 1
LVM
Ext4: Increase lvextend-l 300 m/dev/vg1/LV1 resize2fs/dev/vg1/LV1
XFS: xfs_growfs/mountpoint
Reduce umount/dev/vg1/LV1 e2fsck-F/dev/vg1/LV1 resize2fs/dev/vg1/LV1 100 m
Lvreduce-L 100 m/dev/vg1/LV1 Mount-
Resize2fs/dev/vg1/LV1
Groupadd adminuser
Useradd Natasha-G adminuser
Useradd Harry-G adminuser
Useradd Sarah-S/sbin/nologinb
Passwd Natasha Harry Sarah
CP/etc/fstab/var/tmpfsta
Setfacl-m u: Natasha: RW/var/tmp/fstab
Setfacl-m u: Harry:-/var/tmp/fstab
Crontab-e-u Natasha
23 14 ***/bin/ECHO Hiya
Mkdir/home/admins
Chgrp adminuser/home/admins
Chmod 2770/home/admins
FTP get rpm vi/etc/grub. conf modify default startup Kernel
Yum install authconfig-GTK
Vim/etc/chrony. conf
Systemctl restart chronyd. Service (enable)
Useradd-u 1234 Alex
Fdisk/dev/vdb n --> E; fdisk/dev/vdb n --> L --> E --> + 500 m --> E --> T --> 82 --> W
Part-A/dev/vdb
Mkswap/dev/vdb6
UUID
Vim/etc/fstab
UUID swap defaults 0 0
Swapon-
Mkdir/root/findfiles
Find/-user IRA-exec CP {}/root/findfiles \;
Grep 'semisc'/usr/share/dict/words/root/wordlist
This article is from the "Blood Java" blog, please be sure to keep this source http://sunrain990.blog.51cto.com/3700585/1564843
Rhce exercise set rhel7