Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Rh24-exam

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Exam Information:

IPADDR: 172.25.x.100 (X here refers to your workstation number)

NETMASK: 255.255.255.0

GATEWAY: 172.25.x.254

DNS: 172.25.254.254

The source address of yum is: ftp://172.25.x.250/pub/rhel7.0

1.

Before taking the exam, please reset the root password to examwestos

two。

Change the host name to station.domainX.example.com (X here refers to your workstation number)

three

Create a new group with the name sysadms, and specify a GID of 600,

four

Create a new user tommy, specify UID as 2013, and configure the user password as redhat

five

Create a new user Jimmy, and disable the user from logging in interactively, and configure the user password as redhat

six

Create a new user natasha,harry, and add these two users to the sysadms group as subordinate groups, and configure the user password to redhat if necessary

seven

Create a directory materials in the / home directory, configure the group of the directory to be sysadms, and require members of the sysadms group to have read and write access to the directory. Files or folders created in the sysadms directory also belong to the group.

Automatically inherit the group to which sysadms belongs

eight

Copy the / etc/fstab file to the / var/tmp directory and set the following requirements

Make the harry user have no permissions on the file

Give natasha full control over the file

The user of the profile is root

The group to which the profile belongs is root

All other users have read access to the file

All other users do not have execute permissions on the file

nine

Set up NTP client to synchronize time with 172.25.x.254

ten

Find the files owned by the user group mail and put them in the / root/findresults directory

eleven

Look for all lines that contain ich in the file / usr/share/mime/packages/freedesktop.org.xml, and you will find the

The outgoing lines are copied to / root/lines in order.

In the file, the / root/lines file contains no spaces, and the content of the line is an exact copy of the original line of the source file / usr/share/mime/packages/freedesktop.org.xml

1.passwd

Examwestos

Examwestos

2.hostnamectl set-hostname station.domain24.example.com

3.groupadd-g sysadms

4.useradd-u 2013 tommy

Passwd

Redhat

Redhat

5.useradd-s / bin/bash

Passwd

Redhat

Redhat

6.useradd-G sysadms natasha

Passwd

Redhat

Redhat

Useradd-G sysadms harry

Passwd

Redhat

Redhat

7.mkdir / home/materials

Chgrp sysadms / home/materials

Chomd + t / home/materials

8.cp / etc/fstab / var/tmp

Setfacl-m u:harry:0 / var/tmp

Setfacl-m u:natasha:rwx / var/tmp

Chown root / var/tmp

Chgrp root / var/tmp

Chmod 774 / var/tmp

9.vim / etc/chrony.conf

3.server 172.25.24.254 iburst

28.local stratum 10

10.find /-group mail > / root/findresults

11.cat / usr/share/mime/packages/freedesktop.org.xml | grep ich > / root/lines

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report