B2BR Evaluation Flashcards
(39 cards)
how to retreive the signature?
shasum filename.vdi
How does a virtual machine work ?
A VM provides a virtual environment for running applications, offering flexibility and isolation.
- Imagine a computer within a computer: This is the core concept of a VM.
- Each VM has its own operating system: Like a separate computer.
3.A hypervisor manages the VMs: It controls resource allocation and ensures they run smoothly.
- Hypervisor Types:
Type 1 (bare-metal): Directly installed on hardware.
Type 2 (hosted): Runs within another operating system.
Why did I choose Debian over Rocky?
Larger community: More resources and support available for beginners.
User-friendly package management: APT is intuitive and easy to use.
Extensive documentation: Many guides and tutorials available.
Stability: Known for its reliability and security. Longer release cycle. (new feautres intro gradually > less bugs)
What is the difference between Rocky and Debian?
Rocky Linux is a community-driven Linux distribution based on Red Hat Enterprise Linux (RHEL). It’s a good choice for those familiar with RHEL’s ecosystem and looking for a free alternative.
Debian is another popular Linux distribution known for its stability, security, and large package repository. It’s a great option for beginners due to its user-friendly approach and extensive documentation.
What is the purpose of virtual machine?
Flexibility: Diff OS can be run on same computer
Isolation: Each VM run independant of each other and the host.
Efficiency: VMs can improve resource utilization by consolidating multiple workload into single physical machine.
Testing & Development: 1 App, tested on different environment (IOS, Andorid, Windows)
The difference between aptitude and apt
apt
Basic command-line interface: Provides essential commands for installing, removing, and updating packages.
Simpler syntax: Generally easier to use for basic package management tasks.
Suitable for most users: Adequately handles most package management needs.
aptitude
Advanced command-line interface: Offers more features and flexibility for complex package management scenarios.
Interactive mode: Allows users to resolve dependency conflicts interactively.
Better dependency handling: Can handle complex dependency issues more effectively.
Suitable for experienced users: More suited for users who require advanced package management capabilities.
What is APParmor?
Security framework (Mandatory Access Control), that restricts application permissions, preventing unauthorized access and improving system security. It’s often used in environments where data security is critical.
Mandatory because, restrictions are enforced at kernal level. So apps cant by-pass the controls.
Check AppArmor status
sudo aa-status
How to check if OS is Debian or Rocky?
cat /etc/os-release
- How do you check if the UFW service is started?
- How do you check if the ssh service is started?
- sudo systemctl status ufw
- sudo systemctl status ssh
Verify UFW is installed
Verify that is functioning correctly
dpkg -l | grep ufw
sudo ufw status verbose
What is ufw?
It stands for uncomplicated firewall and is an easy to use program to manage a netfilter firewall. It can control incoming and outgoing network traffic.
Why is ufw useful?
UFW abstracts the underlying complexity of iptables, allowing for faster setup and easier rule management, which helps users implement effective firewall policies with minimal effort and reduced risk of errors.
List active rules for UFW
sudo ufw status numbered
Add new rule to UFW (add port 8080)
Verify added to list
sudo ufw allow 8080
sudo ufw status verbose
Delete new rule from UFW (remove port 8080)
sudo ufw delete allow 8080
Check user exist
Check if they belong to sudo and user42 groups
getent passwd kilangov
groups kilangov
- How do you create a new user?
- How do you set their password?
- sudo useradd newusername
- sudo passwd newusername
How do you check the password policy?
How do you check Password status?
For password requirement:
sudo nano /etc/pam.d/common-password
Password expiration:
sudo nano /etc/login.defs
Password status:
sudo chage -l username
Explain your password policy implementation
retry=3 : only 3 retries
minlen=10 : at least be 10 char
ucredit=-1 : at least one uppercase
lcredit=-1 : at least one lowercase
dcredit=-1 : at least one digit
maxrepeat=3 : no more than 3 consecutive characters
usercheck=0 : can’t have the username
enforce_for_root : make sure the root also needs to comform to the rules
difok=7 at least 7 char not from the former password
- How to set up a new group called “evaluating”?
- How do you assign a user to this group?
- How do you check if the user is part of the group?
- sudo groupadd evaluating
- usermod -aG evaluating username
- sudo groups username OR getent group sudo
How to check that the hostname of the machine is correctly formatted as follows: login42 (login of the student being evaluated)
hostnamectl
How do you modify the host name?
(you should also be able to restore the machine with the original hostname/ or just rename it again)
- su
- hostnamectl set-hostname newname
- nano /etc/hosts
- reboot
How do you show the partitions on the machine?
lsblk