- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Troubleshooting a SAMBA Installation
Understanding a service well enough to troubleshoot it is an essential skill as a System Administrator. In this lab, we'll go over troubleshooting a SAMBA installation.
Lab Info
Table of Contents
-
Challenge
Ensure the user is added to Samba correctly
pdbedit -LShows us that there are no Samba users on the system.
smbpasswd -a pineheadFails because there is no
pineheaduser on the system.useradd pinehead smbpasswd -a pinehead pdbedit -LNow we have a Samba user named
pinehead. Re-running the mount command works. -
Challenge
Ensure the mount is writable.
- First, we need to add the following line to
/etc/samba/smb.conf:
read only = no- Additionally, we need to run these commands to make sure the
/optdirectory (specified in thesmb.conffile) is eligible for writing bypineheadthrough Samba.
chgrp pinehead /opt chmod g+w /opt chcon -t samba_share_t /optOnce those are done, we can run
systemctl restart smband try totouch /mnt/test. It should work perfectly! - First, we need to add the following line to
About the author
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.