Your screenshot confirms: So Windows is still rejecting 192.168.55.20. Use a different member-server IP, such as: Run these on MEM01/member VM as Administrator. 1. Remove the bad duplicate IP 2. Restart the adapter 3. Assign …
On the Domain Controller DNS should be installed and running: Get-WindowsFeature DNS Check DNS service: Get-Service DNS Check DNS zones: Get-DnsServerZone The DC should usually point DNS to itself: Set-DnsClientServerAddress -InterfaceAlias “Ethernet” -ServerAddresses 127.0.0.1 or …
Quiz: Root Access, Boot Process, File Systems, Partitions, and Mounting 1. True/False The root user is the superuser account and has the highest access rights on a Linux system. Answer: True 2. True/False It is …
Linux Special Permissions: SUID, SGID, and Sticky Bit Linux normally uses three permission groups: And three basic permissions: Example: Output: But Linux also has special permissions: They appear in ls -l output as: 1. SUID …
When people say: Max permissions on a file: 666 they usually mean default maximum permissions when a new regular file is created, not the maximum you can manually set. 1. Default maximum for new files: …
Windows 11 host: 192.168.55.1
DC01: 192.168.55.10
MEM01: 192.168.55.21
Also make sure no other VM is running with 192.168.55.20. The duplicate message usually means another machine already has that IP, or the clone/network adapter still has a conflict.
Quiz: Root Access, Boot Process, File Systems, Partitions, and Mounting
1. True/False
The root user is the superuser account and has the highest access rights on a Linux system.
Answer: True
2. True/False
It is recommended to stay logged in as root for normal daily work because it is faster.
Answer: False Explanation: Staying logged in as root is risky because mistakes may affect the entire system.
3. Multiple Choice
Which command is preferred when you need to run one privileged command?
A. su - B. sudo command C. exit D. whoami
Answer: B. sudo command
4. Multiple Choice
What does the command below do?
su -
A. Runs one command as root B. Opens a login shell as root C. Shows the current user D. Lists mounted filesystems
Answer: B. Opens a login shell as root
5. Multiple Choice
Which process is usually started by the kernel as the first userspace process?
A. GRUB B. BIOS C. systemd or init D. fdisk
Answer: C. systemd or init
6. Multiple Choice
Which systemd target usually represents a non-graphical multi-user system?
A. poweroff.target B. rescue.target C. multi-user.target D. graphical.target
Answer: C. multi-user.target
7. Multi-Select
Which of the following are risks of using the root account directly?
Select all that apply.
A. Accidental system-wide file changes B. Running ordinary tasks with unnecessary privileges C. Forgetting that you are logged in as root D. More accountability than sudo E. Background processes may run with root privilege
Answers: A, B, C, E
8. Multi-Select
Which commands are commonly part of the basic partition, format, mount, and verify workflow?
Select all that apply.
A. lsblk B. fdisk C. mkfs D. mount E. df -h F. passwd
Answers: A, B, C, D, E
9. Multi-Select
Which statements about filesystems are correct?
Select all that apply.
A. A filesystem organizes data and metadata on storage B. Journaling can reduce recovery time after an unclean shutdown C. ext4 is commonly used on many Linux distributions D. FAT is a modern Linux-native journaling filesystem E. NTFS is associated with Microsoft Windows
Answers: A, B, C, E
10. Fill in the Blank with Choices
A filesystem defines how __________ and metadata are organized and accessed on a storage device.
A. users B. data C. passwords D. targets
Answer: B. data
11. Fill in the Blank with Choices
The Linux filesystem table is stored in the file __________.
A. /etc/passwd B. /etc/fstab C. /boot/grub D. /var/log
Answer: B. /etc/fstab
12. Fill in the Blank with Choices
On modern systems, __________ is normally preferred over MBR for large disks unless compatibility requires MBR.
A. FAT B. GPT C. ext2 D. BIOS
Answer: B. GPT
13. Matching
Match each FHS directory with its purpose.
Directory
Purpose
1. /etc
A. User home directories
2. /var
B. Device files
3. /home
C. System-wide configuration files
4. /dev
D. Logs and changing data
5. /boot
E. Boot loader files and kernels
Answer:
Directory
Correct Purpose
/etc
C
/var
D
/home
A
/dev
B
/boot
E
14. Matching
Match each command with its purpose.
Command
Purpose
1. lsblk
A. Format a partition with a filesystem
2. fdisk
B. Show block devices
3. mkfs
C. Modify partition tables
4. mount
D. Attach a filesystem to the Linux directory tree
5. umount
E. Detach a mounted filesystem
Answer:
Command
Correct Purpose
lsblk
B
fdisk
C
mkfs
A
mount
D
umount
E
15. Ordering
Put the boot stages in the correct order.
A. Kernel starts init/systemd B. BIOS/UEFI starts C. GRUB loads the selected kernel D. System reaches target/services E. MBR or boot loader code begins the boot manager stage
Correct Order:
B
E
C
A
D
16. Ordering
Put the storage setup steps in the correct order.
A. Format the partition with mkfs B. Identify the disk with lsblk C. Mount the filesystem D. Create a partition using fdisk E. Verify using df -h
Correct Order:
B
D
A
C
E
17. Short Answer
Explain the difference between sudo and su -.
Sample Answer: sudo runs a single command with elevated privileges and logs the action. su - opens a new login shell as another user, usually root if no username is provided. sudo is safer for one administrative task, while su - is used when a full shell as another user is needed.
18. Hands-on Short Answer
Write commands to format /dev/sdb1 as ext4, create /mnt/test, mount the partition, and verify it.
Why is /dev/sdb commonly used with fdisk, but /dev/sdb1 is commonly used with mkfs?
Sample Answer: /dev/sdb represents the whole disk, so fdisk uses it to create or modify the disk’s partition table. /dev/sdb1 represents a specific partition, so mkfs formats that partition with a filesystem.
20. Higher-Order Short Answer
A server should automatically mount a new ext4 partition after every reboot. Which file should be configured, and what information does it need?
Sample Answer: The file /etc/fstab should be configured. It needs the filesystem or UUID, mount point, filesystem type, mount options, dump value, and filesystem check pass value. Example pattern:
UUID=... /mnt/data ext4 defaults 0 2
This allows the system to mount the filesystem automatically during boot.
Users can create files, but they cannot delete other users’ files.
Final Blog Summary
SUID: Run an executable as the file owner.
SGID: Run an executable as the file group, or make files inherit a directory group.
Sticky Bit: In shared directories, users can delete only their own files.
The lowercase letters mean the related execute permission is present:
s = SUID/SGID + execute
t = Sticky Bit + execute
The uppercase letters mean the special permission is set, but execute is missing:
S = SUID/SGID set, execute missing
T = Sticky Bit set, execute missing
For practical use, lowercase s and t are usually what you expect to see. Uppercase S or T often indicates a permission setup that should be reviewed.
So everyone can read, modify, and execute the file.
4. Is 777 allowed?
Yes, it is allowed.
But it is usually not safe.
For a regular file, 777 means any user can change the file and possibly run it as a program or script.
For example, this is risky:
chmod 777 script.sh
because any user may be able to modify the script and then execute it.
5. Better permissions
For a normal text/config/data file:
chmod 644 file.txt
Meaning:
owner can read/write
group can read
others can read
For a private file:
chmod 600 file.txt
For a script that only the owner should run:
chmod 700 script.sh
For a script others can read and execute but not modify:
chmod 755 script.sh
Simple summary
666 = normal maximum default for new files
777 = normal maximum default for new directories
777 on a file is possible, but usually unsafe
Slide-friendly version:
Linux does not give execute permission to new regular files by default. New files start from a maximum of 666, while directories start from 777 because directories need execute permission to be entered. A file can be changed to 777 manually, but this gives everyone read, write, and execute access, which is usually insecure.
It is a Linux security system that adds an extra layer of protection to the operating system. It controls what users, programs, services, and processes are allowed to do.
A simple definition:
SELinux is a security feature in Linux that enforces strict rules about which processes can access which files, directories, ports, and system resources.
General idea
Normal Linux permissions ask:
Does this user have permission to access this file?
SELinux asks an additional question:
Is this process allowed by security policy to access this object?
So even if normal file permissions allow access, SELinux can still block it.
Example
Suppose Apache web server tries to read:
/var/www/html/index.html
Normal permissions may allow it:
-rw-r--r--
But SELinux also checks the file’s security label. If the file has the wrong SELinux label, Apache may be denied access.
Example command:
ls -Z /var/www/html/index.html
This shows SELinux security context labels.
Why SELinux is useful
SELinux helps protect the system if a service is misconfigured or compromised.
For example, if a web server is attacked, SELinux can limit what the web server process is allowed to access. The attacker may control the web server process, but SELinux can still prevent it from reading unrelated system files.
Common SELinux modes
getenforce
Possible outputs:
Enforcing
Permissive
Disabled
Mode
Meaning
Enforcing
SELinux policy is active and blocks unauthorized actions
Permissive
SELinux does not block, but logs warnings
Disabled
SELinux is turned off
Slide-friendly summary
SELinux is a mandatory access control system for Linux. It uses security policies and labels to control what processes can access. It provides extra protection beyond normal Linux permissions.
getenforce
sestatus
ls -Z file.txt
restorecon -v file.txt
Slide-friendly summary
ACL = extra file permissions for specific users/groups.
SELinux = mandatory security policy using labels and rules.
ACL answers: “Which user/group can access this file?”
SELinux answers: “Is this process allowed to access this object in this way?”
Access works only when both Linux permissions/ACL and SELinux policy allow it.
This command lists running Windows services whose display name starts with “Windows”, sorts them by display name in descending order, and displays the result in a neat table.
Get all services, keep only Status and DisplayName, filter only running services whose display name starts with “Windows”, sort them by DisplayName from Z to A, and display the result in a neat table.
Important note
Your original command has a curly closing quote here:
Your screenshot confirms: IPv4 Address: 192.168.55.20 (Duplicate) Autoconfiguration IPv4 Address: 169.254.245.211 So Windows is still rejecting 192.168.55.20. Use a different ...