\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{nextnely} \pdfinfo{ /Title (red-hat.pdf) /Creator (Cheatography) /Author (nextnely) /Subject (Red Hat Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{A30000} \definecolor{LightBackground}{HTML}{FCF7F7} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{Red Hat Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{nextnely} via \textcolor{DarkBackground}{\uline{cheatography.com/71363/cs/18089/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}nextnely \\ \uline{cheatography.com/nextnely} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Published 19th December, 2018.\\ Updated 19th December, 2018.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Services}} \tn % Row 0 \SetRowColor{LightBackground} systemctl list-unit-files -at service & Lists enabled/disabled service unit files. \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} systemctl list-units -at service & Lists enabled/disabled running services. \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} systemctl list-units -t service -{}-state running & Shows active running services. \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} -t & Shows enabled service unit files. \tn % Row Count 10 (+ 2) % Row 4 \SetRowColor{LightBackground} -a & Shows both enabled and disabled service unit files. \tn % Row Count 13 (+ 3) % Row 5 \SetRowColor{white} systemctl mask {[}service name{]} & Prevents service from starting. \tn % Row Count 15 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.73735 cm} x{2.23965 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Cron}} \tn % Row 0 \SetRowColor{LightBackground} /var/spool/cron/{[}user{]} & User cron jobs. \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} /etc/cron.d & System cron jobs. \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} {[}minute 0-59{]} {[}hour{]} {[}day of the month{]} {[}month of the year{]} {[}day of the week{]} {[}path of script{]} & Cron job time format. \tn % Row Count 7 (+ 5) % Row 3 \SetRowColor{white} crontab-generator.org & Crontab generator. \tn % Row Count 8 (+ 1) % Row 4 \SetRowColor{LightBackground} 0 1 {\emph{ }} * & Runs job everyday at 1 a.m. \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} 0 1 {\emph{ }} * {[}user{]} & Format for system wide cron jobs. \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} /etc/at.allow & Allow access to the AT services. \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} /etc/cron.allow & Allow access to cron services. \tn % Row Count 16 (+ 2) % Row 8 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{/etc/at.deny} \tn % Row Count 17 (+ 1) % Row 9 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{/etc/cron.deny} \tn % Row Count 18 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{An empty deny file means nobody is denied. \newline An empty allow file means nobody is allowed. \newline If both are missing nobody is allowed. \newline Root always has access.} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.89126 cm} x{3.08574 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{RPM}} \tn % Row 0 \SetRowColor{LightBackground} rpm -qa & Queries all installed packages. \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{rpm -qa | sort} \tn % Row Count 3 (+ 1) % Row 2 \SetRowColor{LightBackground} rpm -qi {[}package{]} & Shows information about the package. \tn % Row Count 5 (+ 2) % Row 3 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{rpm -qa Group="System Environment/Shells"} \tn % Row Count 6 (+ 1) % Row 4 \SetRowColor{LightBackground} rpm -{}-qa -last & Shows packages install sorted by date \tn % Row Count 8 (+ 2) % Row 5 \SetRowColor{white} rpm -ql yum & Queries for list of file paths. \tn % Row Count 10 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{rpm -qc yum} \tn % Row Count 11 (+ 1) % Row 7 \SetRowColor{white} rpm -qf {[}path to file{]} & Query file. \tn % Row Count 13 (+ 2) % Row 8 \SetRowColor{LightBackground} rpm -qdf {[}path to file{]} & Shows all documentation for specified command/file. \tn % Row Count 16 (+ 3) % Row 9 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{rpm -q -{}-provide} \tn % Row Count 17 (+ 1) % Row 10 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{rpm -q -{}-requires {[}file{]}} \tn % Row Count 18 (+ 1) % Row 11 \SetRowColor{white} rpm -q -{}-changelog {[}file{]} & Shows changes to package. \tn % Row Count 20 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.69218 cm} x{3.28482 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{SELinux}} \tn % Row 0 \SetRowColor{LightBackground} Enforcing mode & Security policy is enforced. \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} Permissive mode & Security policy is observed and warnings are printed but policy is not enforced. \tn % Row Count 6 (+ 4) % Row 2 \SetRowColor{LightBackground} Disabled & Mandatory access control if turned off. \tn % Row Count 8 (+ 2) % Row 3 \SetRowColor{white} sestatus & Shows SELinux status. \tn % Row Count 9 (+ 1) % Row 4 \SetRowColor{LightBackground} set setenforce \textless{}mode\textgreater{} & Temporarily changes SELinux mode. \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} vi \seqsplit{/selinux/config} & SELinux config file. \tn % Row Count 13 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.84609 cm} x{4.13091 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Networking}} \tn % Row 0 \SetRowColor{LightBackground} nmtui & graphical network editor \tn % Row Count 1 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.33919 cm} x{2.63781 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Logs}} \tn % Row 0 \SetRowColor{LightBackground} less -N /etc/rsyslog.conf & View rsyslog configuration file with line numbering turned on. \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} cat /var/log/messages & Lists messages log. \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} grep -v 'systemd:' /var/log/messages & Lists everything that does not include systemd. \tn % Row Count 8 (+ 3) % Row 3 \SetRowColor{white} tail -f /var/log/messages & Follows log file. \tn % Row Count 10 (+ 2) % Row 4 \SetRowColor{LightBackground} /var/log/secure & Private authentication messages (logins) \tn % Row Count 12 (+ 2) % Row 5 \SetRowColor{white} /etc/cron.daily & Logrotate cron job. \tn % Row Count 13 (+ 1) % Row 6 \SetRowColor{LightBackground} \seqsplit{/etc/logrotate.conf} & Logrotate configuration file. \tn % Row Count 15 (+ 2) % Row 7 \SetRowColor{white} logger "message" & Writes message to messages log file. \tn % Row Count 17 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{yum}} \tn % Row 0 \SetRowColor{LightBackground} yum -{}-showduplicates -list {[}pacakge name{]} & Shows versions of a package. \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} yum list installed & Lists all packages installed. \tn % Row Count 5 (+ 2) % Row 2 \SetRowColor{LightBackground} Bold & Update available in repository. \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} Bold and underline & Current kernel \tn % Row Count 8 (+ 1) % Row 4 \SetRowColor{LightBackground} Red & Package doesn't exist in repository. \tn % Row Count 10 (+ 2) % Row 5 \SetRowColor{white} Yellow & Newer package then in repository. \tn % Row Count 12 (+ 2) % Row 6 \SetRowColor{LightBackground} yum list updates & Lists updates for packages installed. \tn % Row Count 14 (+ 2) % Row 7 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{yum list available} \tn % Row Count 15 (+ 1) % Row 8 \SetRowColor{LightBackground} yum info {[}package name{]} & Shows package info. \tn % Row Count 17 (+ 2) % Row 9 \SetRowColor{white} yum deplist {[}package name{]} & Shows dependencies for package. \tn % Row Count 19 (+ 2) % Row 10 \SetRowColor{LightBackground} yum search {[}package name{]} & Searches for package name. \tn % Row Count 21 (+ 2) % Row 11 \SetRowColor{white} yum reinstall {[}package name{]} & Reinstalled package. \tn % Row Count 23 (+ 2) % Row 12 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{yum reinstall -{}-skip-broken {[}package name{]}} \tn % Row Count 24 (+ 1) % Row 13 \SetRowColor{white} yum remove {[}package name{]} & Removes package. \tn % Row Count 26 (+ 2) % Row 14 \SetRowColor{LightBackground} yum autoremove {[}package name{]} & Removes packages including dependencies. \tn % Row Count 28 (+ 2) % Row 15 \SetRowColor{white} yum package-cleanup & Shows unused packages. \tn % Row Count 30 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{yum (cont)}} \tn % Row 16 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{yum install yum-utils} \tn % Row Count 1 (+ 1) % Row 17 \SetRowColor{white} yum check-update & Checks for updates. \tn % Row Count 2 (+ 1) % Row 18 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{yum list obsoletes} \tn % Row Count 3 (+ 1) % Row 19 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{yum install yum-plugin-versionlock} \tn % Row Count 4 (+ 1) % Row 20 \SetRowColor{LightBackground} yum versionlock {[}package name{]} & Prevents package from updating. \tn % Row Count 6 (+ 2) % Row 21 \SetRowColor{white} yum versionlock & Lists version locked packages. \tn % Row Count 8 (+ 2) % Row 22 \SetRowColor{LightBackground} yum versionlock delete {[}output from yum versionlock{]} & Removes version lock from package. \tn % Row Count 11 (+ 3) % Row 23 \SetRowColor{white} yum update -{}-security & Only updates security packages. \tn % Row Count 13 (+ 2) % Row 24 \SetRowColor{LightBackground} yum update-minimal -{}-security & Install strictly security updates. Doesn't include bug fixes. \tn % Row Count 17 (+ 4) % Row 25 \SetRowColor{white} yum install yum-plugin changelog & View package change logs. \tn % Row Count 19 (+ 2) % Row 26 \SetRowColor{LightBackground} yum changelog updates & Gets all change logs for packages with updates. \tn % Row Count 22 (+ 3) % Row 27 \SetRowColor{white} yum changelog {[}package name{]} & View change log for specific package. \tn % Row Count 24 (+ 2) % Row 28 \SetRowColor{LightBackground} yum list installed kernel-* & Lists currently installed kernel. \tn % Row Count 26 (+ 2) % Row 29 \SetRowColor{white} ls -l /boot & Kernel directory. \tn % Row Count 27 (+ 1) % Row 30 \SetRowColor{LightBackground} uname -r & Shows running kernel. \tn % Row Count 29 (+ 2) % Row 31 \SetRowColor{white} yum list available kernel & Lists available kernel. \tn % Row Count 31 (+ 2) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{yum (cont)}} \tn % Row 32 \SetRowColor{LightBackground} yum -y update kernel & Updates kernel. \tn % Row Count 1 (+ 1) % Row 33 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{yum remove kernel} \tn % Row Count 2 (+ 1) % Row 34 \SetRowColor{LightBackground} grub2-set-default {[}kernel number{]} & Changes kernel. \tn % Row Count 4 (+ 2) % Row 35 \SetRowColor{white} ls \seqsplit{/lib/modules/\$(uname} -r)/kernel & Lists kernel module directory. \tn % Row Count 6 (+ 2) % Row 36 \SetRowColor{LightBackground} lsmod & Lists modules. \tn % Row Count 7 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.53827 cm} x{2.43873 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Time}} \tn % Row 0 \SetRowColor{LightBackground} timedatectl & Lists local time for current timezone. \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} timedatectl list-timezones | grep America & Filters timezones via grep. \tn % Row Count 5 (+ 3) % Row 2 \SetRowColor{LightBackground} timedatectl set-timezone {[}timezone{]} & Sets timezone. \tn % Row Count 7 (+ 2) % Row 3 \SetRowColor{white} timedatectl set-time 24:00:00 & Manually sets time. \tn % Row Count 9 (+ 2) % Row 4 \SetRowColor{LightBackground} timedatectl set-time 2018-12-30 & Manually sets date. \tn % Row Count 11 (+ 2) % Row 5 \SetRowColor{white} timedatectl set-ntp true & Enables NTP. \tn % Row Count 13 (+ 2) % Row 6 \SetRowColor{LightBackground} systemctl restart systemd-timedated & Restarts NTP service. \tn % Row Count 15 (+ 2) % Row 7 \SetRowColor{white} yum install ntp & Installs NTP client. \tn % Row Count 17 (+ 2) % Row 8 \SetRowColor{LightBackground} /etc/ntp.conf & NTP config file. \tn % Row Count 18 (+ 1) % Row 9 \SetRowColor{white} ntpdate -q \textless{}server address\textgreater{} & Checks NTP server address. \tn % Row Count 20 (+ 2) % Row 10 \SetRowColor{LightBackground} ntpdate \textless{}server address\textgreater{} & Sets NTP server. \tn % Row Count 22 (+ 2) % Row 11 \SetRowColor{white} systemctl enable ntpdate & Enables NTP synchronization. \tn % Row Count 24 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.94103 cm} x{3.03597 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Journal}} \tn % Row 0 \SetRowColor{LightBackground} journalctl & Lists all journal entries. \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} journalctl /sbin/crond & Specifies journal. \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} journalctl -f & Tails journal. \tn % Row Count 5 (+ 1) % Row 3 \SetRowColor{white} mkdir \seqsplit{/var/log/journal} & Directory for persistent journals. \tn % Row Count 7 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.55618 cm} x{1.46464 cm} x{1.55618 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{File Access Control}} \tn % Row 0 \SetRowColor{LightBackground} ls -l {[}file name{]} & Lists group owners. & The user-owner is the third column from the left. THe group-owner is the fourth column. \tn % Row Count 7 (+ 7) % Row 1 \SetRowColor{white} Read (r) & 4 & \tn % Row Count 8 (+ 1) % Row 2 \SetRowColor{LightBackground} Write (w) & 2 & \tn % Row Count 9 (+ 1) % Row 3 \SetRowColor{white} Execute (x) & 1 & \tn % Row Count 10 (+ 1) % Row 4 \SetRowColor{LightBackground} -rw-rw-r-{}- & -{}-userowner-groupowner-other & \tn % Row Count 13 (+ 3) % Row 5 \SetRowColor{white} chmod u=rwx,g=rx,o= \textless{}file\textgreater{} & Symbolic permission format. & \tn % Row Count 16 (+ 3) % Row 6 \SetRowColor{LightBackground} chmod u+rwx \textless{}file\textgreater{} & Adds permissions format. & \tn % Row Count 18 (+ 2) % Row 7 \SetRowColor{white} chmod o-x \textless{}file\textgreater{} & Remove permissions format. & \tn % Row Count 21 (+ 3) % Row 8 \SetRowColor{LightBackground} chmod a-x \textless{}file\textgreater{} & Removes execute from all positions. & \tn % Row Count 24 (+ 3) % Row 9 \SetRowColor{white} -R & Recursively adds \seqsplit{permissions.} & \tn % Row Count 27 (+ 3) % Row 10 \SetRowColor{LightBackground} umask & View umask. & \tn % Row Count 28 (+ 1) % Row 11 \SetRowColor{white} umask -S & View umask in symbolic notation. & \tn % Row Count 31 (+ 3) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{1.55618 cm} x{1.46464 cm} x{1.55618 cm} } \SetRowColor{DarkBackground} \mymulticolumn{3}{x{5.377cm}}{\bf\textcolor{white}{File Access Control (cont)}} \tn % Row 12 \SetRowColor{LightBackground} 775 & Default directory \seqsplit{permissions.} & rwxrwxrwx \tn % Row Count 3 (+ 3) % Row 13 \SetRowColor{white} 755 & rwx-r-xr-x & \tn % Row Count 4 (+ 1) % Row 14 \SetRowColor{LightBackground} 664 & Default file \seqsplit{permissions.} (umask 002) & rw-rw-r-{}- \tn % Row Count 8 (+ 4) % Row 15 \SetRowColor{white} umask 022 & Changes umask. & \tn % Row Count 10 (+ 2) % Row 16 \SetRowColor{LightBackground} umask 002 & rw-rw-r-{}- & Directories- rwx-r-xr-x, Files- rwxr-{}-r-{}- \tn % Row Count 14 (+ 4) % Row 17 \SetRowColor{white} vi \textasciitilde{}/bashrc & User umask startup file & add new umask to end of file. \tn % Row Count 17 (+ 3) % Row 18 \SetRowColor{LightBackground} vi \seqsplit{/etc/profile.d/unmash.sh} & System wide unmask. & if {[} "\$UID" -ge 1000{]} ;then \tn % Row Count 20 (+ 3) % Row 19 \SetRowColor{white} getfacl \textless{}file\textgreater{} & lists ACLs on file. & -t \tn % Row Count 22 (+ 2) % Row 20 \SetRowColor{LightBackground} setfacl -m user:\textless{}user\textgreater{}:\textless{}permissions\textgreater{} aclfile & Sets ACLs on file. & setfacl -m \seqsplit{user:root:rwx} \seqsplit{/home/file.txt} \tn % Row Count 26 (+ 4) % Row 21 \SetRowColor{white} \mymulticolumn{3}{x{5.377cm}}{setfacl -m group:\textless{}group\textgreater{}:\textless{}permission\textgreater{} \textless{}file\textgreater{}} \tn % Row Count 27 (+ 1) % Row 22 \SetRowColor{LightBackground} setfacl -x group:root \textless{}file/dir\textgreater{} & & -x remove specific ACL, -k removes all default ACLs, -b removes all ACLs \tn % Row Count 33 (+ 6) \hhline{>{\arrayrulecolor{DarkBackground}}---} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}