- Lab
- A Cloud Guru
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.
Path Info
Table of Contents
-
Challenge
Ensure the user is added to Samba correctly
pdbedit -L
Shows us that there are no Samba users on the system.
smbpasswd -a pinehead
Fails because there is no
pinehead
user on the system.useradd pinehead smbpasswd -a pinehead pdbedit -L
Now 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
/opt
directory (specified in thesmb.conf
file) is eligible for writing bypinehead
through Samba.
chgrp pinehead /opt chmod g+w /opt chcon -t samba_share_t /opt
Once those are done, we can run
systemctl restart smb
and try totouch /mnt/test
. It should work perfectly! - First, we need to add the following line to
What's a lab?
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.