Setting up a Samba share on Linux (Ubuntu)

As the last release running 32bits is now defunct

Canonical decided to drop support for 32-bit computers
so they stopped releasing 32-bit ISOs since Ubuntu 18.04

If you still have an old laptop i686 then maybe its last use will be to work as a NAS (network attached  Storage) in a LAN ...

It is time to setup a Samba server, before all repositories are wiped out.

First
$ sudo apt-get install samba smbfs -y

to get the packages

Then 
$ cd /etc/samba
$ sudo su
# cp smb.conf smb_original.bkp
# vi /etc/samba/smb.conf

Making a bakcup copy of the original smb.conf file is good practice

This should be the content of the smb.conf file

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = WORKGROUP

I will call my shared folder 'smbshazam' but this is of course completely up to you to choose a different name (shared, or smbshar, or whatever is you prefer)

Create the share folder: sudo mkdir -p /home/smbshazam
Set the permissions: sudo chmod 0777 /home/smbshazam

# shazam share
[MyShare]
  comment = whatever comment you want there
  path = /home/smbshazam
  read only = no
  guest ok = yes

That was step 2 on the ubuntu linux server machine setup
Restart samba. type: 

$ /etc/init.d/smbd restart
$ systemctl status smbd

you are all set in ubuntu
(an additional step could be to test the Samba configuration using 'testparm')

A more advanced configuration setup could be found at https://phoenixnap.com/kb/ubuntu-samba





No comments:

Post a Comment

Related Posts with Thumbnails