1.passwd

  examwestos

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

 

4.pvcreate /dev/vdb1

  vgcreate datastore /dev/vdb

  lvcreste -L 400M -n database datastore

5.fdisk /dev/vdb

  n

  t

  l

  82

  vim /etc/fstable

6.setenforce 1

7.groupadd -g 600 sysadms

8.useradd -u 2013 tommy

  passwd

  redhat

9.useradd -s /bin/bash Jimmy

  passwd

  redhat

10.useradd -G sysadms natasha

  passwd

  redhat

  useradd -G sysadms natasha

  passwd

  redhat

11.mkdir /home/materials

  chgrp -R sysadms /home/materials

  chmod -R +t /home/materials

12.cp /etc/fstab /var/tmp/

  setfacl -m -u:harry:0 /var/tmp/fstab

  setfacl -m -u:harry:7 /var/tmp/fstab

  chmod 774 /var/tmp/fstab

13.su - natashacrontable -u natasha -u

at 14:2323 14 * * * /bin/echo hiya

at>/bin/echo hiya

at><EOT>

14.NTP客户端

  vim /etc/chrony.conf

  servers 172.25.254.254

  local stratum 10

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

16.grep -i ich /usr/share/mime/packages/freedesktop.org.xml | sed 's/ //g' > /root/lines

17.vim /etc/vsftpd/vsfpd.conf

  anon_upload_enable=YES

  systemctl enable vsftpd

18.vim LDMP.sh

  #!/bin/bash

  yum install sssd krb5-workstation autofs -y &> /dev/null

  echo "config ldapauth client ing. . ."

  authconfig \

  --enableldap \

  --disableldappauth \

  --enableldaptls \

  --ldaploadcacert=http://172.25.254.254/pub/example-ca.crt \

  --ldapserver=cla***oom.example.com" \

  --ldapbasedn="dc=example,dc=com" \

  --krb5realm="EXAMPLE.COM" \

  --krb5kdc="cla***oom.example.com" \

  --krb5adminserver="cla***oom.example.com" \

  --enablesssd \

  --enablesssddayth \

  --update

19.echo /home/guest /etc/auto.ldap >>/etc/auto.master

  echo "*172.25.254.254:/home/guest/&" >> /etc/auto.ldap