Security and Permissions
Understanding Linux security model, file permissions, user management, and basic security practices
- Category
- Linux
- Level
- basic
- Languages
- en → en
- Cards
- 52
- Markdown
- Security and Permissions (.md)
Flashcards (52)
| # | Front (Term / Question) | Back (Definition / Answer) | Example | Multiple-Choice Options |
|---|---|---|---|---|
| 1 | What does the numeric mode '755' mean in file permissions? | '755' means the owner has read, write, and execute permissions (7), while the group and others have read and execute permissions (5). | ||
| 2 | What is the purpose of the 'setgid' permission? | The 'setgid' permission allows a file to be executed with the permissions of the group owner. | ||
| 3 | What is the purpose of encryption in security? | Encryption protects data by converting it into a code to prevent unauthorized access. | ||
| 4 | What command is used to delete a user in Linux? | The command is 'userdel'. | ||
| 5 | What is the difference between user and group permissions? | User permissions apply to the file owner, while group permissions apply to users who are part of the file's group. | ||
| 6 | What is a brute force attack? | A brute force attack is a method used to gain unauthorized access by systematically trying all possible combinations of passwords. | ||
| 7 | What is the importance of regular software updates? | Regular software updates patch vulnerabilities, improve functionality, and enhance security against threats. | ||
| 8 | What is a security patch? | A security patch is an update designed to fix vulnerabilities in software to protect against threats. | ||
| 9 | What is the purpose of the 'passwd' command? | 'passwd' is used to change a user's password. | ||
| 10 | What is the purpose of access control? | Access control restricts access to resources to authorized users, ensuring data security and integrity. | ||
| 11 | What does the 'x' permission allow a user to do? | The 'x' permission allows a user to execute a file or access a directory. | ||
| 12 | What is SSH and its purpose? | SSH (Secure Shell) is a protocol used to securely access and manage devices over a network. | ||
| 13 | What is the principle of least privilege? | The principle of least privilege states that users should have the minimum level of access necessary to perform their job functions. | ||
| 14 | What does the first character in the 'ls -l' output represent? | The first character indicates the file type: '-' for regular files, 'd' for directories, and 'l' for symbolic links. | ||
| 15 | What is a VPN? | A VPN (Virtual Private Network) creates a secure connection over the internet, allowing users to send and receive data as if they were directly connected to a private network. | ||
| 16 | What is a security audit? | A security audit is a systematic evaluation of an organization's information system to assess its security measures. | ||
| 17 | What is a user group in Linux? | A user group is a collection of users that can share permissions for files and directories. | ||
| 18 | What are the three types of file permissions in Linux? | Read (r), write (w), and execute (x). | ||
| 19 | What is the purpose of a password manager? | A password manager securely stores and manages passwords, helping users create strong, unique passwords for different accounts. | ||
| 20 | How can you change file permissions in Linux? | You can change file permissions using the 'chmod' command. | ||
| 21 | What is a security breach? | A security breach is an incident that results in unauthorized access to data, applications, or networks. | ||
| 22 | What is the purpose of file permissions in Linux? | File permissions control who can read, write, or execute a file, ensuring security and proper access management. | ||
| 23 | What is phishing? | Phishing is a fraudulent attempt to obtain sensitive information by disguising as a trustworthy entity in electronic communications. | ||
| 24 | What is the command to view file permissions in Linux? | The command is 'ls -l'. | ||
| 25 | How do you add a new user in Linux? | You can add a new user using the 'useradd' command. | ||
| 26 | What is a security policy? | A security policy is a formal document that outlines how an organization protects its physical and information technology assets. | ||
| 27 | What is the purpose of logging in security? | Logging records events and activities in a system, which helps in monitoring, auditing, and forensic analysis. | ||
| 28 | What is the 'umask' command used for? | 'umask' sets default file permissions for newly created files and directories. | ||
| 29 | What does the 'r' permission allow a user to do? | The 'r' permission allows a user to read the contents of a file. | ||
| 30 | What is a honeypot in cybersecurity? | A honeypot is a decoy system designed to attract and trap potential attackers to study their methods. | ||
| 31 | What is a digital certificate? | A digital certificate is an electronic document used to prove the ownership of a public key. | ||
| 32 | What is social engineering in the context of security? | Social engineering is the manipulation of individuals into divulging confidential information by exploiting human psychology. | ||
| 33 | What is the difference between 'su' and 'sudo'? | 'su' switches to another user, while 'sudo' allows a permitted user to execute a command as the superuser or another user. | ||
| 34 | How are file permissions represented in Linux? | File permissions are represented using a three-character string, such as 'rwx', where each character represents a permission. | ||
| 35 | What is the role of antivirus software? | Antivirus software detects, prevents, and removes malware from computers and networks. | ||
| 36 | What does the 'w' permission allow a user to do? | The 'w' permission allows a user to modify or delete a file. | ||
| 37 | How do you set the sticky bit on a directory? | You can set the sticky bit using 'chmod +t directory_name'. | ||
| 38 | What is the significance of the root user in Linux? | The root user has unrestricted access to all files and commands, allowing for system administration. | ||
| 39 | What is a symbolic link in Linux? | A symbolic link is a file that points to another file or directory, allowing for easier access. | ||
| 40 | What is the purpose of the 'chown' command? | 'chown' changes the ownership of a file or directory. | ||
| 41 | What is malware? | Malware is malicious software designed to harm, exploit, or otherwise compromise a computer system. | ||
| 42 | What is the purpose of the 'setuid' permission? | The 'setuid' permission allows a user to execute a file with the permissions of the file owner. | ||
| 43 | What is the difference between a software firewall and a hardware firewall? | A software firewall is installed on a computer and protects it from threats, while a hardware firewall is a physical device that protects an entire network. | ||
| 44 | What is a firewall? | A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules. | ||
| 45 | What is the difference between symmetric and asymmetric encryption? | Symmetric encryption uses the same key for encryption and decryption, while asymmetric encryption uses a pair of keys (public and private). | ||
| 46 | What is the purpose of the 'chmod' command? | 'chmod' changes the access permissions of files or directories. | ||
| 47 | What is the 'sudoers' file? | The 'sudoers' file defines which users have permission to use 'sudo' and what commands they can run. | ||
| 48 | What is a sticky bit? | A sticky bit is a permission that allows only the file owner to delete or rename files within a directory. | ||
| 49 | What is the role of an intrusion detection system (IDS)? | An IDS monitors network traffic for suspicious activity and alerts administrators of potential security breaches. | ||
| 50 | What is two-factor authentication? | Two-factor authentication is a security process that requires two different forms of identification before granting access. | ||
| 51 | What is a DDoS attack? | A DDoS (Distributed Denial of Service) attack aims to make a service unavailable by overwhelming it with traffic from multiple sources. | ||
| 52 | What does the command 'chmod 644 file.txt' do? | It sets the permissions of 'file.txt' to read and write for the owner, and read-only for the group and others. |