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)ExampleMultiple-Choice Options
1What 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).
2What is the purpose of the 'setgid' permission?The 'setgid' permission allows a file to be executed with the permissions of the group owner.
3What is the purpose of encryption in security?Encryption protects data by converting it into a code to prevent unauthorized access.
4What command is used to delete a user in Linux?The command is 'userdel'.
5What 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.
6What 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.
7What is the importance of regular software updates?Regular software updates patch vulnerabilities, improve functionality, and enhance security against threats.
8What is a security patch?A security patch is an update designed to fix vulnerabilities in software to protect against threats.
9What is the purpose of the 'passwd' command?'passwd' is used to change a user's password.
10What is the purpose of access control?Access control restricts access to resources to authorized users, ensuring data security and integrity.
11What does the 'x' permission allow a user to do?The 'x' permission allows a user to execute a file or access a directory.
12What is SSH and its purpose?SSH (Secure Shell) is a protocol used to securely access and manage devices over a network.
13What 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.
14What 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.
15What 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.
16What is a security audit?A security audit is a systematic evaluation of an organization's information system to assess its security measures.
17What is a user group in Linux?A user group is a collection of users that can share permissions for files and directories.
18What are the three types of file permissions in Linux?Read (r), write (w), and execute (x).
19What is the purpose of a password manager?A password manager securely stores and manages passwords, helping users create strong, unique passwords for different accounts.
20How can you change file permissions in Linux?You can change file permissions using the 'chmod' command.
21What is a security breach?A security breach is an incident that results in unauthorized access to data, applications, or networks.
22What 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.
23What is phishing?Phishing is a fraudulent attempt to obtain sensitive information by disguising as a trustworthy entity in electronic communications.
24What is the command to view file permissions in Linux?The command is 'ls -l'.
25How do you add a new user in Linux?You can add a new user using the 'useradd' command.
26What is a security policy?A security policy is a formal document that outlines how an organization protects its physical and information technology assets.
27What is the purpose of logging in security?Logging records events and activities in a system, which helps in monitoring, auditing, and forensic analysis.
28What is the 'umask' command used for?'umask' sets default file permissions for newly created files and directories.
29What does the 'r' permission allow a user to do?The 'r' permission allows a user to read the contents of a file.
30What is a honeypot in cybersecurity?A honeypot is a decoy system designed to attract and trap potential attackers to study their methods.
31What is a digital certificate?A digital certificate is an electronic document used to prove the ownership of a public key.
32What is social engineering in the context of security?Social engineering is the manipulation of individuals into divulging confidential information by exploiting human psychology.
33What 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.
34How are file permissions represented in Linux?File permissions are represented using a three-character string, such as 'rwx', where each character represents a permission.
35What is the role of antivirus software?Antivirus software detects, prevents, and removes malware from computers and networks.
36What does the 'w' permission allow a user to do?The 'w' permission allows a user to modify or delete a file.
37How do you set the sticky bit on a directory?You can set the sticky bit using 'chmod +t directory_name'.
38What is the significance of the root user in Linux?The root user has unrestricted access to all files and commands, allowing for system administration.
39What is a symbolic link in Linux?A symbolic link is a file that points to another file or directory, allowing for easier access.
40What is the purpose of the 'chown' command?'chown' changes the ownership of a file or directory.
41What is malware?Malware is malicious software designed to harm, exploit, or otherwise compromise a computer system.
42What is the purpose of the 'setuid' permission?The 'setuid' permission allows a user to execute a file with the permissions of the file owner.
43What 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.
44What is a firewall?A firewall is a network security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules.
45What 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).
46What is the purpose of the 'chmod' command?'chmod' changes the access permissions of files or directories.
47What is the 'sudoers' file?The 'sudoers' file defines which users have permission to use 'sudo' and what commands they can run.
48What is a sticky bit?A sticky bit is a permission that allows only the file owner to delete or rename files within a directory.
49What is the role of an intrusion detection system (IDS)?An IDS monitors network traffic for suspicious activity and alerts administrators of potential security breaches.
50What is two-factor authentication?Two-factor authentication is a security process that requires two different forms of identification before granting access.
51What 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.
52What 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.