






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







cmd to download kernel - ANS-yumdownloader kernel (will download an rpm package) cmd to get a list of SELinux booleans - ANS-semanage boolean -l cmd to list attributes - ANS-lsattr cmd to list currently loaded kernel module - ANS-lsmod cmd to list kernel updates - ANS-yum list kernel cmd to load kernel modules and all of their dependencies - ANS-modprobe cmd to reduce logical volume by 100M - ANS-lvreduce -r -L -100M (path to logical volume) cmd to resize logical volume to 75% of free disk space - ANS-lvresize -r -l 75%FREE cmd to resize volume group to 75% of its total disk space - ANS-lvresize -r -l 75%VG (path to logical volume) cmd to set group password - ANS-gpasswd cmd to setup virtualization - ANS-yum groupinstall -y "Virtualization Host" cmd to unload kernel modules, considers their dependencies - ANS-modprobe -r cmd to write context label to file system - ANS-restorecon -R -v (directory) command for modifying user properties - ANS-usermod command to add users to the system - ANS-useradd command to change user password expiry information - ANS-chage command to copy the public key to the target server - ANS-ssh-copy-id [username]@[ipaddress] command to create groups - ANS-groupadd command to get info about a user account - ANS-id [username] command to modify groups - ANS-groupmod command to remove users from the system - ANS-userdel
0(minute), 0(hour), 0(D Month), 0(Month), 0(D Week) 0, 0, 0, 0, 0 Explain the file system heirarchy / /bin /boot /dev /etc /home /lib, /lib /media, /mnt /proc /opt /root /run /sbin /srv /sys /tmp /usr /var - ANS-/ - root directory, where the file system tree starts /bin - Find executable programs that are needed to repair a system. Directory is essential during boot /boot - Contains all files/dirs that are needed to boot /dev - Device files that are used for physical device access /etc - Contains configuration files /home - local home user directories /lib, /lib64 - shared libraries used by /boot,/bin,/sbin /media, /mnt - Directories used for mounting devices /proc - Gives access to kernel information /opt - used for optional packages /root - root home directory /run - processes since last boot. empties when powered off /sbin - similar to bin. used by adminstrators /sys - used as an interface to different hardware devices that are managed by the kernel /srv - used for data that may be used for services such as NFS,FTP,HTTP /tmp - contains temp files /usr - contain subdirectories for program files, libraries for program files, and documentation about them /var - contains files that may change in size dynamically such as log files, spool files and mail boxes Explain the following environment configuration files /etc/profile /etc/bashrc
~/.bash_profile ~/.bashrc - ANS-/etc/profile - generic file processed by all users upon login /etc/bashrc - This file is processed when subshells are started ~/.bash_profile - User specific variables that can be defined ~/.bashrc - User specific subvariables that can be defined Explain the following file descriptors > >> 2> 2>& < - ANS-> - Redirects stout - creates files or overwrites >> - Redirects stout - creates or appends to file 2> - Redirect sterr 2>&1 - Redirects sterr to stout < - Redirects stdin Explain the following systemd statuses
auth sufficient pam.ldap.so auth sufficient pam_permit.so
What is SELinux - ANS-Provides mandatory access control to a linux server where every system call is denied unless it has been specifically allowed what is the $Path - ANS-Defines a list of directories that search for a filename when a user enters a command what is the command to generate a public/private keypair - ANS-ssh-keygen what is the console - ANS-The environment the use is looking at what is the cron daemon - ANS-process that checks every minute to see if there is work to do (crond) what is the cron service - ANS-a service started by default on rhel systems what is the jobs cmd - ANS-shows which jobs are currently running in the shell what is the terminal - ANS-Opened in a console, provides access to the shell what is virsh - ANS-cmd line vm editor where are the public and private keys stored by default - ANS-~/home/[username]/.ssh where are the systemd unit files located by default - ANS-/usr/lib/systemd/system where are yum actions logged - ANS-/etc/log/yum.log where can you find the configuration files for rsyslogd - ANS-/etc/rsyslogd.conf where can you modify systemd specific modifications. - ANS-/etc/systemd/system where does SELinux log activity - ANS-/var/log/audit/audit.log Where is the config file for SELinux - ANS-/etc/sysconfig/selinux where is the public key stored on the remote host - ANS-~/.ssh/authorized_keys where is the systemd runtime configuration stored - ANS-/run/systemd/system Why would you use LDAP Servers - ANS-1. Organized like DNS, using domains to organize users