Posted inExperience / Information Technology

Getting Samba Share to Work on MX Linux

samba share connection

I really like MX Linux, but with Samba Shares they shot themselves in the foot. The GUI tool is nice, but they made some bad decisions. Yes, I’ve written about Samba Shares and NAS before on this blog. If developers would just quit dicking with it, adopt a single standard, and live with that, you wouldn’t need so many blog posts.

Gotta admit, the GUI tool is straight forward. You have a nice dialog for creating a Samba Share.

They even include a tab for users to remind you about creating Samba users. No, they don’t use your Linux user/password file. Samba has its own thing. Yes, you will probably replicate your linux username and password despite all the advice to the contrary. The reason they don’t utilize your Linux user information is the entire point of Samba Shares is to share with other users/machines. They don’t all have an account to log in on your machine, but you can collaborate in a share.

Where it Fails

Despite the rest of the known universe keeping share definitions in /etc/samba/smb.conf, the GUI tool does not. This wouldn’t be so bad, but all the documentation you find online instructs users to edit this file. Adding insult to injury, you still have to edit this file.

For some inexplicable reason the default workgroup is “Workgroup” instead of WORKGROUP like it has been since Windows first got networking.

Another mystifying question is why they didn’t go ahead and install winbind and smbclient.

In for a penny, in for a pound.

You Still Can’t Connect

Once you get everything installed and configured, you reboot your MX Linux machine and machines on your local network cannot connect. If they cannot see your machine it is because you forgot to change Workgroup to WORKGROUP or whatever non-standard workgroup name you chose. That, of course requires another reboot.

The GUI tool for creating Samba Shares doesn’t open the machine to incoming connections. Despite the GUI looking nice, I don’t like it. You have to really know what you are doing to edit Rules. There is a nice looking GUI but it’s not nice like a check box for “allow CIFS” and “allow Samba.” Having Allow, Reject, Deny for your zone combo box doesn’t fill me with warm and fuzzies. Makes it sound like

Russia, China, North Korea and every other deviant country, come steal my identity and money!

Admittedly you have to search online, but with CachyOS and other Arch based distros

# as root if running UFW
ufw allow CIFS
ufw allow Samba

# as root if running firewalld
firewall-cmd --permanent --add-service={samba,samba-client,samba-dc} --zone=home

What would be really nice is if the GUI tool for creating Samba Shares would allow CIFS and Samba when you create your first share and Deny it when the last share was deleted.

Roland Hughes started his IT career in the early 1980s. He quickly became a consultant and president of Logikal Solutions, a software consulting firm specializing in OpenVMS application and C++/Qt touchscreen/embedded Linux development. Early in his career he became involved in what is now called cross platform development. Given the dearth of useful books on the subject he ventured into the world of professional author in 1995 writing the first of the "Zinc It!" book series for John Gordon Burke Publisher, Inc.

A decade later he released a massive (nearly 800 pages) tome "The Minimum You Need to Know to Be an OpenVMS Application Developer" which tried to encapsulate the essential skills gained over what was nearly a 20 year career at that point. From there "The Minimum You Need to Know" book series was born.

Three years later he wrote his first novel "Infinite Exposure" which got much notice from people involved in the banking and financial security worlds. Some of the attacks predicted in that book have since come to pass. While it was not originally intended to be a trilogy, it became the first book of "The Earth That Was" trilogy:
Infinite Exposure
Lesedi - The Greatest Lie Ever Told
John Smith - Last Known Survivor of the Microsoft Wars

When he is not consulting Roland Hughes posts about technology and sometimes politics on his blog. He also has regularly scheduled Sunday posts appearing on the Interesting Authors blog.