How to configure Samba on Ubuntu Mate 16.04

Hi,
I would try to describe, how to install and configure Samba on Ubuntu Mate 16.04.

Installation:

sudo apt-get update
sudo apt-get install samba samba-common system-config-samba nfs-common python-glade2

Configuring:

smbpasswd -a user_name - We're adding user for our samba server (it can be different as system user), then we have to add password for our user.

Then we should give chmod for libuser.conf:

sudo su
touch /etc/libuser.conf
chmod 666 /etc/libuser.conf

At the end, restart Samba Server: /etc/init.d/samba restart

Now we can configure our Samba Server in graphical environment.
Find in menu SYSTEM -> ADMINISTRATION -> SAMBA special panel to configure Samba Server.

When we pick "plus" button we can add directory to share in our network.

Also we can add commons for "writable" and "Visable", change "Share name" and "Description".

In "Access" bookmark we can change access: for only specific user or for everyone.

I'm very sorry for my English. I hope, this tutorial will be useful for you :slight_smile:

1 Like

Please, clarify this is for setting up a server and to run the CLI to run CTRL+ALT+T

Also, I would change:

sudo su -
touch /etc/libuser.conf
chmod 666 /etc/libuser.conf
/etc/init.d/samba restart && logout

The last one restarts the server and exits the session of superuser.

Additionally, you could make that post a wiki. :slight_smile:

1 Like

Now end with
/ect/init.d/samba restart && exit