Select Page

Configure Samba Share on Ubuntu 14.03 LTS

If you have followed my previous post on creating a NFS server, I will now be configuring this machine so I can also browse this directory via a samba share. I will be configuring this for the user that I have created on the system.

You will initially need to install samba using the below command –

sudo apt-get install samba

sudo apt get install samba - Configure Samba Share on Ubuntu 14.03 LTS

You will need to configure the samba file as follows

sudo vi /etc/samba/smb.conf

Configure Samba - Configure Samba Share on Ubuntu 14.03 LTS

You will need to restart the service after this has been saved by pressing ESC then :wq!

You can restart the service by running

sudo service smbd restart

You will need to now set your samba password for the user you will be using, in my example I run the below command

sudo smbpasswd -a user

Type a memorable password and you can then browse via the IP or DNS name to your NFS/Samba server.

Samba Login Credentials - Configure Samba Share on Ubuntu 14.03 LTS

Type in your credentials with WORKGROUP\ as the Workgroup, This is default and can be configured at the top of the same file as you can see below

Samba workgroup settings - Configure Samba Share on Ubuntu 14.03 LTS

You will then be able to connect to the samba share!

Share connected - Configure Samba Share on Ubuntu 14.03 LTS

If you have any issues you may need to disable the firewall on the machine, this can be completed by typing the below command –

sudo ufw disable

I would only recommend this in a Lab Environment on a machine that won’t be exposed to the Internet.

You may also need to setup permissions on the NFS Directory that was created. This can be completed by running the below commands

sudo chown root:user /Data/nfs

sudo chmod 777 /Data/nfs

Again, I would not recommend using these commands on production systems, I would recommend using a lower permission setting. You can verify the permissions are correct by browsing to the Data Directory, and typing

ls

You will see the below which verifies the permissions have been applied.

chmod 777 permissions - Configure Samba Share on Ubuntu 14.03 LTS

Pin It on Pinterest

Share This