$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Samba File Sharing on Ubuntu 21.10 – Step-by-step

November 20, 2021 | By the+gnu+linux+evangelist.

Setting Up Server

  1. 2. Installing Samba Server

    Then to Install Samba Server on Ubuntu
    Simply play:

    sudo apt install samba samba-common-bin samba-vfs-modules winbind bind9 bind9utils ldb-tools ntp smbldap-tools libnss-winbind libpam-winbind

    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.
    This Setup includes the Utilities for File and Printer Sharing.

  2. 3. Configuring Samba Server

    Then Edit the Samba Config File
    With:

    sudo nano /etc/samba/smb.conf

    To Quick enabling a generic Read Only access with No Security use:

    [sharing]
    comment = Sharing Directory
    path = /home/[myUser]/Public
    browseable = yes
    read only = yes
    guest ok = yes
    

    Just Replace [myUser] with your Real username you can Check running:

    whoami

    This to enable the default Sharing Location in your Home Folder.
    Else for a Password protected Access append:

    [sharing]
    comment = Sharing Directory
    path = /home/[myUser]/Public
    browseable = yes
    security = user/nencrypt passwords = yes
    

    And to make a Writable Share set “writable = yes” in the Configuration.
    Moreover, if you store sentitive Data and you have a Static IP then you should limit the allowed Hosts appending something like: “allow hosts = 127.0.0.1 192.168.1.0/24”.
    Last, to Add you User to the Samba enabled Users play:

    sudo smbpasswd -a `whoami`

    This to setup a Login for your current Username (Set a Different Password that for Admin if you Share it!)
    Ctrl+x to Save & Exit from nano Editor :)

  3. 4. Restarting Samba Server

    Then Restart Samba & Winbind Services
    Simply play:

    sudo service nmbd restart && sudo service smbd restart
  4. 5. Looking up Server IP

    Find the Server IP on Terminal.

    ifconfig

    Find the Server IP usually under eth0 >> inet addr: Line
    Samba File Sharing Ubuntu 21.10 Guide - Find IP on Terminal

Contents


Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,