Samba share shakes like a tango

Samba, the right way is ok

On GNU/Linux systems, sometimes it happens that simple things become complicated things.
Personally, I have founded that Samba Share (SMB) is a nice way to share files, but with some frustrating issues. Samba is easy to configure and doesn’t need much work from the clients to access, supposed to be based upon standard conditions.

I build a server with many services and also the Samba Service works like a charm. Easy to install, easy to configure, fast to put on work. I like it!

The clients work

Samba is the standard Windows interoperability suite of programs for Linux and Unix. Samba protocol permits to share files across many operating systems, such as DOS and Windows, OS/2, Linux, Mac OS X and many others, in a very simple and easy way. All the clients work immediately and it’s georgeous, it’s like a zero config network.

![Samba Sharing System – Working on Ubuntu Unity]({{ site.url }}/images/samba-share.png)

So Samba is fun and useful, but something wrong has happening.

Shakes like a tango

I wanted to share a RAID 0 set from a client machine over my network, so I have installed Samba services and I have configured the Samba configuration file to share the raid volume.

Samba works, from clients I’m able to see the shared folder, but no way to operate on it. No read/write permission and the OS returned my many Samba errors: wrong argument, no permission, failed to retrieve list from server… and many many others.

Finally I found the solution on this post on AskUbuntu.

To modify Samba configuration file, open terminal console and type:


sudo nano /etc/samba/smb.conf

In the [global] section of the configuration file, put this:


force user = USERNAME

Where username is your user or the owner of the shared folder.

Restart all the Samba services:


sudo /etc/init.d/samba restart

And enjoy it!

Leave a Reply

Your email address will not be published. Required fields are marked *