LPIC 2 Web and File Sharing Services Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. Which NFS option makes a mount read-only?

Explanation

The `ro` mount option makes an NFS filesystem read-only, preventing clients from creating, modifying, or deleting files. Use `rw` when read-write access is required.

Submit
Please wait...
About This Quiz
LPIC 2 Web and File Sharing Services Quiz - Quiz

This quiz evaluates your understanding of web and file sharing services covered in LPIC 2 certification. It tests knowledge of HTTP\/HTTPS protocols, web server configuration, FTP and SFTP, NFS and Samba file sharing, and related security concepts. Master these services to manage enterprise-level network infrastructure and prepare for advanced Linux... see moreadministration roles. see less

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. What is the default Samba share access permission setting?

Explanation

Samba shares are read-only by default, so users can view or copy files but cannot add, modify, or delete them. To allow write access, an administrator must explicitly change the share configuration, for example by setting `read only = no` or enabling `writable = yes`.

Submit

3. Which NFS daemon handles client mount requests?

Explanation

The `mountd` daemon handles client requests to mount an exported filesystem. It checks whether the requested directory is available and whether the client is permitted to access it, then provides the information needed to establish the mount. `nfsd` serves file operations, while `rpcbind` and `statd` support RPC discovery and lock recovery.

Submit

4. What command checks Apache configuration syntax before restarting?

Explanation

`apachectl configtest` checks Apache’s configuration files for syntax errors without restarting the server. If the configuration is valid, it reports that the syntax is OK; otherwise, it identifies the errors to fix before restarting.

Submit

5. Which protocol encrypts FTP communications?

Explanation

Both SFTP and FTPS protect file transfers by encrypting communications. SFTP runs over SSH, while FTPS adds TLS encryption to the FTP protocol. They use different protocols and security mechanisms, but both help prevent data—including credentials and file contents—from being read in transit.

Submit

6. What does the Samba parameter 'security = user' enable?

Explanation

With `security = user`, Samba requires clients to authenticate with individual user credentials before accessing shares. Permissions can then be applied according to each user’s account, rather than relying solely on a shared password for a share or on domain-based authentication.

Submit

7. Which command mounts an NFS share on the client side?

Explanation

`mount -t nfs` mounts a Network File System (NFS) share on a client. The command specifies the filesystem type as NFS; it is typically followed by the server’s export path and the client’s local mount point.

Submit

8. What is the purpose of the .htaccess file in Apache?

Explanation

The `.htaccess` file lets administrators apply configuration rules to a specific directory and its subdirectories, such as URL rewrites, access controls, and redirects. These settings take effect without changing the main Apache server configuration, provided that overrides are enabled.

Submit

9. Which Apache directive specifies the document root directory?

Explanation

`DocumentRoot` specifies the directory Apache serves files from when a request targets the website’s root. For example, `DocumentRoot "/var/www/html"` makes that directory the site’s document root. The other options are not standard Apache directives for this purpose.

Submit

10. What command tests FTP connectivity to a remote server?

Explanation

Running `ftp hostname` starts the FTP client and attempts to connect to the remote server named `hostname`. A successful connection indicates that the server is reachable and accepting FTP connections; the client may then prompt for login credentials.

Submit

11. Which Apache directive controls the maximum number of simultaneous client connections?

Explanation

In Apache HTTP Server, **MaxClients** sets the maximum number of requests that can be processed simultaneously, limiting how many clients the server handles at once. It is used with certain multi-processing modules and has been renamed **MaxRequestWorkers** in newer Apache versions. This limit helps manage server resources and prevent overload.

Submit

12. What is the main configuration file for Samba?

Explanation

Samba’s primary configuration file is `/etc/samba/smb.conf`. It defines global server settings and shared resources, including directories and printers, along with access and authentication options. Samba services use this file to determine how the server behaves and what it makes available to clients. The other listed paths are not the standard location.

Submit

13. Which Apache module enables URL rewriting?

Explanation

Apache’s mod_rewrite module lets administrators rewrite requested URLs using rule-based directives in server or directory configuration. It can map a URL to another path internally or redirect clients to a different URL, often based on conditions such as the host or query string. The other listed modules do not provide this general rewriting functionality.

Submit

14. What port does HTTPS use by default?

Explanation

HTTPS uses port 443 by default for secure web traffic encrypted with TLS. HTTP, by contrast, typically uses port 80.

Submit

15. Which command exports NFS shares defined in /etc/exports?

Explanation

The `exportfs` command manages NFS exports by making the directories listed in `/etc/exports` available to NFS clients. It can also display the currently exported file systems and refresh the export list.

Submit

16. What is the default NFS protocol version used in modern Linux systems?

Explanation

Modern Linux systems generally use NFSv4 by default, with newer minor versions such as 4.1 or 4.2 available depending on the kernel and server. Compared with older NFSv3 and NFSv2, NFSv4 offers stateful operation, stronger security options, and improved performance and scalability. NFSv5 is not an established standard version.

Submit

17. Which Samba service provides Windows-compatible file sharing?

Explanation

smbd provides Samba’s Windows-compatible file and printer sharing by handling SMB/CIFS requests from network clients. It lets Windows systems access shared folders and printers on a Linux or Unix server. nmbd handles NetBIOS name services, while winbind supports integration with Windows domain accounts.

Submit

18. What does SFTP stand for?

Explanation

SFTP stands for SSH File Transfer Protocol. It transfers files securely between systems using SSH, which provides encryption and authentication during the connection.

Submit

19. Which file contains Apache virtual host configurations on most Linux systems?

Explanation

On Debian- and Ubuntu-based Linux systems, Apache commonly stores individual virtual-host configuration files in `/etc/apache2/sites-available/`. Administrators can enable a site by linking its file into `sites-enabled`. Other distributions, such as RHEL-based systems, use different locations, so the exact path depends on the distribution; among the listed options, this is the standard Debian/Ubuntu location.

Submit

20. What is the primary purpose of the HTTP 301 status code?

Explanation

HTTP 301 indicates that a requested resource has moved permanently to a new URL. Browsers and search engines can update their references to use the new address, and clients are typically redirected there automatically.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which NFS option makes a mount read-only?
What is the default Samba share access permission setting?
Which NFS daemon handles client mount requests?
What command checks Apache configuration syntax before restarting?
Which protocol encrypts FTP communications?
What does the Samba parameter 'security = user' enable?
Which command mounts an NFS share on the client side?
What is the purpose of the .htaccess file in Apache?
Which Apache directive specifies the document root directory?
What command tests FTP connectivity to a remote server?
Which Apache directive controls the maximum number of simultaneous...
What is the main configuration file for Samba?
Which Apache module enables URL rewriting?
What port does HTTPS use by default?
Which command exports NFS shares defined in /etc/exports?
What is the default NFS protocol version used in modern Linux systems?
Which Samba service provides Windows-compatible file sharing?
What does SFTP stand for?
Which file contains Apache virtual host configurations on most Linux...
What is the primary purpose of the HTTP 301 status code?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!