Skip to main content

Toolbar items

Back to site
Manage

Administration menu

Anonymous

User account actions

  • Log in
  • Create new account
  • Reset your password

User account menu

  • Log in
Home
Hadronrider
How to set up a bare metal home server, run CI/CD using Gitlab, Jenkins and pipelines, make e-toys, automate your home and much more

Main navigation

  • Home
    • HadronRider WWW App
    • Webmail
    • Gitlab
    • Jenkins
    • Mercurial
    • Redmine
    • YouTube channel

Samba

Breadcrumb

  • Home
By valerio | 1:11 PM BST, Sun September 29, 2024

Setup

Install the packages:

sudo apt install samba

Configuration is all in /etc/samba/smb.conf.

You can create shares by appending a section like this:

[Share name on the server]
        comment = Some description
        path = /path/to/directory
        browseable = yes|no # Whether to make the share visible at the server root
        read only = no
        guest ok = no
        write list = <user> <@group>

 

Complete info here: https://www.samba.org/samba/docs/4.9/man-html/smb.conf.5.html

To allow users to log in, add the user to the sambashare group and (re)set the samba password:

sudo usermod -a -G sambashare <login>

sudo smbpasswd -a <login>

Enable and restart the server:

sudo systemctl enable samba

sudo systemctl restart samba

Now you can load the server root to see the "browseable" entries:

  • on Windows: \\<server hostname> (the server IP may or may not work)
  • on Linux: smb://<server hostname>

As you double-click on the share you'll get a login prompt as per your server settings.

 

  • Log in or register to post comments

Comments

Powered by Drupal

Copyright © 2024 Company Name - All rights reserved

Developed & Designed by Valerio Canova