Thanks to visit codestin.com
Credit goes to github.com

Skip to content

eugeniogiusti/samba-almalinux-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

samba-almalinux-installer

A bash script for automated Samba server installation and configuration on AlmaLinux 9.5

Status Last Commit License Top Language Platform Tool Shell Script

Introduction

This script automates the setup and configuration of a Samba file server on a Linux machine. It is designed for Almalinux 9.5, but can be adapted for other Red Hat distributions. It is suitable for various environments, such as Raspberry Pi, virtual machines, or physical servers.

Features

  • Installs and configures Samba.

  • Creates a shared directory (/opt/share).

  • Sets up a dedicated Samba user.

  • Configures SELinux and firewall rules for Samba.

  • Provides a secure and easily customizable setup.

Prerequisites

  • A Linux system with DNF package manager.

  • Root privileges to execute the script.

  • VM with 2core, 2gb ram, 32gb hdd/ssd.

How to Run the Script

  1. Update the system
    sudo su
    dnf update -y
    dnf install git
    
  2. Clone the repository:
    git clone https://github.com/eugeniogiusti/samba-almalinux-installer.git
    cd samba-almalinux-installer
    
    
  3. Make the script executable:
    chmod +x samba.sh
    
    
  4. Run the script as root:
    sudo ./samba.sh
    
    
  5. Access to the share:

image

image

image

\\<SERVER-IP>\share   # for Windows machine
smb://<SERVER-IP>/share # for Linux machine
Username: samba
Password: samba (Change it using smbpasswd samba).

About

A bash script for automated Samba server installation and configuration on AlmaLinux 9.5

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages