Rhce exercise set rhel7

Source: Internet
Author: User
  1. 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

  2. Modify hostname and IP address

    Nm-connector-Editor

    Ipaddr0 --> prefix0 --> gateway0 --> dns1 --> domain

    Chattr + I/etc/resolv. conf

    Hostnamectl set-hostname example.com

  3. Yum. Repos. d/RHEL. Repo

    [Yumserver]

    Name = yumserver

    Baseurl = http :///

    Gpgcheck = 0

    Enabled = 1

  4. 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-

  5. Resize2fs/dev/vg1/LV1

  6. Groupadd adminuser

    Useradd Natasha-G adminuser

    Useradd Harry-G adminuser

    Useradd Sarah-S/sbin/nologinb

    Passwd Natasha Harry Sarah

  7. CP/etc/fstab/var/tmpfsta

    Setfacl-m u: Natasha: RW/var/tmp/fstab

    Setfacl-m u: Harry:-/var/tmp/fstab

  8. Crontab-e-u Natasha

    23 14 ***/bin/ECHO Hiya

  9. Mkdir/home/admins

    Chgrp adminuser/home/admins

    Chmod 2770/home/admins

  10. FTP get rpm vi/etc/grub. conf modify default startup Kernel

  11. Yum install authconfig-GTK

  12. Vim/etc/chrony. conf

    Systemctl restart chronyd. Service (enable)

  13. Useradd-u 1234 Alex

  14. 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-

  15. Mkdir/root/findfiles

    Find/-user IRA-exec CP {}/root/findfiles \;

  16. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.