← All modules

Samba

Storage Free

Share folders with Windows, Mac and Linux computers, and manage Samba users from Cockpit.

About

Samba gives you a simple control panel for file sharing on your Rocky Linux server. Create shared folders, decide who can open them, manage Samba users and passwords, and see who is connected, all without editing configuration files by hand. Every change to smb.conf is checked with testparm before it takes effect and is rolled back automatically if Samba rejects it, so a typo can't break your file sharing.

What this module can do

  • - Show Samba's status and version, and start, stop, restart or reload the smb and nmb services
  • - Turn Samba on or off at boot
  • - Check whether the firewall blocks Samba, and allow it with one click
  • - Test the configuration with testparm
  • - Change the workgroup and server description
  • - List, create, edit and remove shares (folder, access, allowed users, guest access, permissions)
  • - Create the shared folder for you, with the owner you choose
  • - Add, disable, enable and remove Samba users, and change their passwords
  • - Show who is connected right now and which shares are in use
  • - Edit smb.conf directly, with automatic backups and rollback

Install

With the Devsey Marketplace set up, open it in Cockpit and press Install on this module. Or from a terminal:

dnf install cockpit-devsey-samba

Set up the marketplace

  1. Trust the Devsey signing key
    rpm --import https://packages.devsey.com/RPM-GPG-KEY-devsey

    Check that the fingerprint matches before you continue:

    curl -s https://packages.devsey.com/RPM-GPG-KEY-devsey | gpg --show-keys

    92E1 B507 A84A 2A8A A4E3 98A5 AC73 F12D FB9F 48E2

  2. Add the repository
    curl -o /etc/yum.repos.d/devsey.repo https://packages.devsey.com/devsey.repo
  3. Install the marketplace
    dnf install cockpit-devsey-marketplace

    Log out of Cockpit and back in. Devsey Marketplace appears in the menu, ready to install the rest.