Posts

Showing posts with the label groups

umask Contol Center

Image
Interstellar Permissions Unmasking umask for Galactic File Control Welcome to the captivating world of umask mastery in the Linux terminal, mighty captains! As you embark on this thrilling adventure, the umask command becomes your ultimate tool. It empowers you to finely adjust the permissions of files and directories, granting or restricting access to various in-game entities. This command serves as your portal to reshape file and directory permissions, allowing for a truly personalized and tailored gaming experience. Take your Examination, Captain! We need to make sure you can navigate this ship: 👮👇 https://www.certificationmethods.com/2023/05/lpi-e-umask-test.html Now let's explore this System! Display the current umask value: $ umask This command simply displays the current umask value in the terminal. It provides the octal representation of the umask, where each digit corresponds to the permissions subtracted from the owner, group, and others, respectively. Set a new umask v...

LPI E C1 - chmod test

Image
LPI Linux Essentials / C1 Knowledge Domain Topic 5:  Security and File Permissions   Practice Test Questions: 1. You want to modify the permissions of the directory "sensitive-docs" to make it more private. Which command would you use? a) chmod o-rwx sensitive-docs/ b) chmod u-rwx sensitive-docs/ c) chmod a-rwx sensitive-docs/ d) chmod g-rwx sensitive-docs/ /* --------------------- */ -------------------------- Answer 1 Below:  -------------------------- /* --------------------- */ Explanation : The command "chmod o-rwx" removes read, write, and execute permissions for others (users who are not the owner or part of the group) on the "sensitive-docs" directory, making it more private.   Answer 1: a) chmod o-rwx sensitive-docs/ 2. You need to view the permissions of the directory "top-secret" without displaying its contents. Which command would you use? a) ls -l top-secret/ b) ls -d top-secret/ c) ls -la top-secret/ d) ls -ld top-secret...

All is File - Quest

Image
The Quest for the Mystical Files   Welcome to the world of Linux, where everything is treated as a file. In this adventure, you will explore the mysterious realm of temporary files and the fascinating world of links. Embark on a quest filled with challenges and discoveries as you learn how to manage these unique aspects of the Linux operating system. Prepare yourself for a thrilling adventure that will culminate in an epic battle against a formidable boss. Chapter 1: The Temple of Temporary Files Your journey begins at the entrance of the Temple of Temporary Files. This sacred place holds the secrets of files that exist only for a short time. These files serve various purposes, from storing data for running processes to crash logs and cache files. As you venture deeper into the temple, you will discover the different locations designated for temporary files. Chapter 2: The Treasures of /tmp and /var/tmp Your quest leads you to the first location, /tmp, as defined by the Filesystem ...

All is File - Test 2

Image
5.4 Special Files and Directories Understanding /tmp and link Practice Exam Questions 2 1. Carol has created a hard link named "link1" to a file named "file1.txt" in her current directory. She then modifies the contents of "link1" using a text editor. What will be the result of this action?   a) Only "link1" will be modified. b) Only "file1.txt" will be modified. c) Both "link1" and "file1.txt" will be modified. d) Modifying a hard link is not allowed. /* --------------------- */ -------------------------- Answer 1 Below:  -------------------------- /* --------------------- */ Explanation : When a hard link is created, it points to the same data on disk as the original file. Modifying either the hard link or the original file will affect both, as they are essentially two different names for the same data. Any changes made to one will be reflected in the other. Explanation of incorrect answers : a) ...