Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Google Cloud Platform icon
Labs

Configure a Samba Server and Client and Mount a File System on Linux

NFS and Samba are both used commonly as file-sharing solutions between Linux servers. In this lab, you'll learn to configure a Samba server and a file share. You'll then create a Samba user. Next, you'll configure a Samba client and mount the file system from the server to the client.

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 23, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Install Samba, Add a User, Create a Directory, Check selinux Status, and Set File System Context
    1. Install the Samba package.
    2. Start the Samba service.
    3. Enable the Samba Service.
    4. Add the smbuser1 user to the system.
    5. Set the password for user smbuser1.
    6. Create a directory named /smbuser1.
    7. Change the permissions to read, write, execute on /smbuser1.
    8. Check the status of selinux.
    9. If running, set the context of /smbuser1 to samba_share_t.
  2. Challenge

    Edit the Samba Configuration and Add a Share, Test the Configuration, and Restart the Samba Service
    1. Configure a Samba share named /smbuser1 with read and write access for user smbuser1.
    2. Test the configuration file for syntax errors.
    3. Restart the Samba service.
    4. Get the Samba server system IP address.
  3. Challenge

    On the Client Server, Install the CIFS package, Configure a Persistent Mount, and Test the File System
    1. Install the CIFS utilities package.
    2. Create the mount point, /mnt/smbuser1.
    3. Grant read, write, and execute permissions on /smbuser1.
    4. Configure /mnt/smbuser1 to mount persistently on Server2.
    5. Configure a credentials file for mount authentication.
    6. Mount the file system.
    7. Verify the file system is mounted and has read and write access.
    8. Mount -a
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight