GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Quiz

EX200 - 001 - RHEL6

Vagner Aragão 15 Fragen Aktualisiert am 1 Feb 2019

Quiz starten

Dieses Quiz enthält Fragetypen, die sich im gewohnten Player öffnen.

Fragen in diesem Quiz (15)

  1. 1Configure your Host Name, IP Address, Gateway and DNS.
    Host name: station.domain40.example.com
    /etc/sysconfig/network
    hostname=abc.com
    hostname abc.com
    IP Address: 172.24.40.40/24
    Gateway: 172.24.40.1
    DNS: 172.24.40.1
    Bild zu Frage 1
    1. Aifcfg-eth0
  2. 2Add 3 users: harry, natasha, tom.
    The requirements: The Additional group of the two users: harry, Natasha is the admin group.
    The user: tom's login shell should be non-interactive.
    1. AAnswer: # useradd -G admin harry
      # useradd -G admin natasha
      # useradd -s /sbin/nologin tom
      # id harry;id Natasha (Show additional group)
      # cat /etc/passwd
    2. BNA
  3. 3Create a catalog under /home named admins. Its respective group is requested to be the admin group. The group users could read and write, while other users are not allowed to access it.
    The files created by users from the same group should also be the admin group.
    1. A# cd /home/
      # mkdir admins /
      # chown .admin admins/
      # chmod 770 admins/
      # chmod g+s admins/
    2. BNA
  4. 4Configure a task: plan to run echo hello command at 14:23 every day.
    1. A# which echo
      # crontab -e
      23 14 * * * /bin/echo hello
      # crontab -l (Verify)
    2. BNA
  5. 5Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
    1. A# fdisk /dev/sda
      p
      (check Partition table)
      n
      (create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions)
      Enter
      +2G
      t
      l
      W
      partx -a /dev/sda
      partprobe
      mkswap /dev/sda8
      Copy UUID
      swapon -a
      vim /etc/fstab
      UUID=XXXXX swap swap defaults 0 0
      (swapon -s)
    2. BNA
  6. 6Create a user named alex, and the user id should be 1234, and the password should be alex111.
    1. A# useradd -u 1234 alex
      # passwd alex
      alex111
      alex111
    2. BNA
  7. 7Install a FTP server, and request to anonymous download from /var/ftp/pub catalog. (it needs you to configure yum direct to the already existing file server. )
    1. A# cd /etc/yum.repos.d
      # vim local.repo
      [local]
      name=local.repo
      baseurl=file:///mnt
      enabled=1
      gpgcheck=0
      # yum makecache
      # yum install -y vsftpd
      # service vsftpd restart
      # chkconfig vsftpd on
      # chkconfig --list vsftpd
      # vim /etc/vsftpd/vsftpd.conf
      anonymous_enable=YES
    2. BNA
  8. 8Configure a HTTP server, which can be accessed through http://station.domain40.example.com.
    Please download the released page from http://ip/dir/example.html.
    1. A# yum install -y httpd
      # chkconfig httpd on
      # cd /var/www/html
      # wget http://ip/dir/example.html
      # cp example.com index.html
      # vim /etc/httpd/conf/httpd.conf
      NameVirtualHost 192.168.0.254:80
      <VirtualHost 192.168.0.254:80>
      DocumentRoot /var/www/html/
      ServerName station.domain40.example.com
      </VirtualHost>
    2. BNA
  9. 9Configure the verification mode of your host account and the password as LDAP. And it can ldapuser40. The password is set as "password". And the certificate login successfully through can be downloaded from http://ip/dir/ldap.crt. After the user logs on , the user has no host directory unless you configure the autofs in the following questions.
    1. A# yum groupinstall directory-client (1.krb5-workstation 2.pam-krb5 3.sssd)
      # system-config-authentication
      1.User Account Database: LDAP
      2.LDAP Search Base DN: dc=example,dc=com
      3.LDAP Server: ldap://instructor.example.com (In domain form, not write IP) 4.Download CA Certificate
      5.Authentication Method: LDAP password
      6.Apply
      getent passwd ldapuser40
    2. Bsystem-config-authentication
      LDAP Server: ldap//instructor.example.com (In domain form, not write IP)
  10. 10Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as /rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally.
    1. A# chkconfig autofs on
      # cd /etc/
      # vim /etc/auto.master
      /rhome /etc/auto.ldap
      # cp auto.misc auto.ldap
      # vim auto.ladp
      ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40
      * -rw,soft,intr 172.16.40.10:/rhome/&
      # service autofs stop
      # server autofs start
      # showmount -e 172.24.40.10
      # su - ladpuser40
    2. BNA

Informationen

Beschreibung
Teste
Sprache
Português
Aufrufe
43
Verlauf
Erstellt am 31 Jan 2019 · aktualisiert am 1 Feb 2019
Schlagwörter
questao1ex200rhcsa
Bewertung
Noch keine Bewertungen
Bewerte dieses Quiz
Bewerte dieses Quiz

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck