You should always set the sticky bit on these directories so that only the owner can removed his own files, with the exception of the owner of the sticky bit directory (and the root user), who can delete all of the files in the directory. These directories are intended for storing temporary files that may be made by anyone.
You can add a new user in Linux using the command:
$ sudo useradd username
To maintain a record of which files belong to which user and to enforce some security, Linux uses the concept of ownership. Every file belongs to an owner—a user—and to a group. On Unix-like operating systems, the chown command changes ownership of files and directories in a filesystem.
The /dev directory holds device drivers; /usr is the primary read-only directory; /var contains log files, queues, and more; and /home has user home directories.
Bash is a Unix shell and command language written by Brian Fox for the GNU Project as a free software replacement for the Bourne shell. First released in 1989, it has been used as the default login shell for most Linux distributions and all releases of Apple's macOS prior to macOS Catalina.
Linux (and flavors of Unix) have following shells to offer:
• The Bourne Shell (sh): Developed at AT&T Bell Labs by Steve Bourne, the Bourne shell is regarded as the first UNIX shell ever. It is denoted as sh. It gained popularity due to its compact nature and high speeds of operation.
• The GNU Bourne-Again Shell (bash): More popularly known as the Bash shell, the GNU Bourne-Again shell was designed to be compatible with the Bourne shell.
• The C Shell (csh): The C shell was created at the University of California by Bill Joy. It is denoted as csh.
• The Korn Shell (ksh): The Korn shell was developed at AT&T Bell Labs by David Korn, to improve the Bourne shell. It is denoted as ksh.
• The Z Shell (zsh): The Z Shell or zsh is a sh shell extension that has all the features and more.
•
These are the traditional init runlevels:
• 0 - Halt the system,
• 1 - Single-user mode (for special administration),
• 2 - Local Multiuser with Networking but without network service (like NFS),
• 3 - Full Multiuser with Networking,
• 4 - Not Used,
• 5 - Full Multiuser with Networking and X Windows(GUI),
• 6 - Reboot.
iptables is an extremely flexible firewall utility built for Linux operating systems. iptables is a command-line firewall utility that uses policy chains to allow or block traffic. When a connection tries to establish itself on your system, iptables looks for a rule in its list to match it to. iptables almost always comes pre-installed on any Linux distribution and to update or install it, you can just retrieve the iptables package using the command: sudo apt-get install iptables
SELinux was first introduced in CentOS 4 and significantly enhanced in later CentOS releases. SELinux follows the model of least-privilege more closely. By default under a strict enforcing setting, everything is denied and then a series of exceptions policies are written that give each element of the system (a service, program or user) only the access required to function. SELinux has three basic modes of operation as follows:
1. Enforcing
2. Permissive
3. Disabled
Bastille is a hardening program that locks down a Linux, HP-UX, and MacOS operating system, proactively configuring the system for enhanced security and decreasing its susceptibility to compromisse. Bastille can also assess a system's current state of hardening and generate a granular report on each of the security settings with which it works.
The recommended method to perform this hardening feature is to edit the /etc/sysctrl.conf file. Remember this fact for the exam as well as setting this to prevent source routing and two-way spoofed communications.
Trusted Platform Module (TPM) offers hardware-based, security-related functions in the form of a secure crypto-processor chip that performs cryptographic operations. The chip includes several physical security mechanisms to make it tamper resistant, and malicious software is unable to tamper with the security functions of the TPM.
Ansible is an open-source automation tool, or platform, used for IT tasks such as configuration management, application deployment, intra-service orchestration, and provisioning.
Auditd is an access monitoring and accounting for Linux developed and maintained by RedHat. It was designed to integrate tightly with the kernel and look for interesting system calls. Also, likely because of this level of integration and detail, it is the default logger in SELinux.
Each Syslog message Priority also has a decimal Severity level indicator. Severity values MUST be in the range of 0 to 7 inclusive. Debug has the highest number 7, representing the lowest priority level.
Linux builds have a native stateful firewall called iptables. Append this rule to the input chain (-A INPUT) to view ingress traffic; look for TCP (-p tcp); if so, does it go to the destination SSH port (-dport ssh)? If yes, then permit the traffic ( -j ACCEPT).