https://github.com/vroncevic/samba_manager
Shell script for Samba server management
https://github.com/vroncevic/samba_manager
administration bash linux manager samba shell
Last synced: about 1 year ago
JSON representation
Shell script for Samba server management
- Host: GitHub
- URL: https://github.com/vroncevic/samba_manager
- Owner: vroncevic
- License: gpl-3.0
- Created: 2016-05-06T20:02:11.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T19:15:35.000Z (about 2 years ago)
- Last Synced: 2025-05-12T07:59:20.030Z (about 1 year ago)
- Topics: administration, bash, linux, manager, samba, shell
- Language: Shell
- Homepage:
- Size: 6.82 MB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Samba server management

**samba_manager** is shell tool for control/operating Samba Server.
Developed in **[bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))** code: **100%**.
[](https://github.com/vroncevic/samba_manager/actions/workflows/samba_manager_shell_checker.yml)
The README is used to introduce the tool and provide instructions on
how to install the tool, any machine dependencies it may have and any
other information that should be provided before the tool is installed.
[](https://github.com/vroncevic/samba_manager/issues) [](https://github.com/vroncevic/samba_manager/graphs/contributors)
**Table of Contents**
- [Installation](#installation)
- [Usage](#usage)
- [Dependencies](#dependencies)
- [Shell tool structure](#shell-tool-structure)
- [Docs](#docs)
- [Copyright and licence](#copyright-and-licence)
### Installation

Navigate to release **[page](https://github.com/vroncevic/samba_manager/releases)** download and extract release archive.
To install **samba_manager** type the following
```bash
tar xvzf samba_manager-x.y.tar.gz
cd samba_manager-x.y
cp -R ~/sh_tool/bin/ /root/scripts/samba_manager/ver.x.y/
cp -R ~/sh_tool/conf/ /root/scripts/samba_manager/ver.x.y/
cp -R ~/sh_tool/log/ /root/scripts/samba_manager/ver.x.y/
```
Self generated setup script and execution
```bash
./samba_manager_setup.sh
[setup] installing App/Tool/Script samba_manager
Thu 25 Nov 2021 08:49:54 PM CET
[setup] clean up App/Tool/Script structure
[setup] copy App/Tool/Script structure
[setup] remove github editor configuration files
[setup] set App/Tool/Script permission
[setup] create symbolic link of App/Tool/Script
[setup] done
/root/scripts/samba_manager/ver.2.0/
├── bin/
│ ├── center.sh
│ ├── display_logo.sh
│ ├── nmb_operation.sh
│ ├── samba_manager.sh
│ ├── smb_info.sh
│ ├── smb_list.sh
│ ├── smb_operation.sh
│ ├── smb_version.sh
│ └── winbind_operation.sh
├── conf/
│ ├── samba_manager.cfg
│ ├── samba_manager.logo
│ └── samba_manager_util.cfg
└── log/
└── samba_manager.log
3 directories, 13 files
lrwxrwxrwx 1 root root 56 Nov 25 20:49 /root/bin/samba_manager -> /root/scripts/samba_manager/ver.2.0/bin/samba_manager.sh
```
Or You can use docker to create image/container.
### Usage
```bash
# Create symlink for shell tool
ln -s /root/scripts/samba_manager/ver.x.y/bin/samba_manager.sh /root/bin/samba_manager
# Setting PATH
export PATH=${PATH}:/root/bin/
# Available options
samba_manager
samba_manager ver.2.0
Thu Nov 25 20:51:21 UTC 2021
[check_root] Check permission for current session? [ok]
[check_root] Done
██
░██ █████
██████ ██████ ██████████ ░██ ██████ ██████████ ██████ ███████ ██████ ██░░░██ █████ ██████
██░░░░ ░░░░░░██ ░░██░░██░░██░██████ ░░░░░░██ ░░██░░██░░██ ░░░░░░██ ░░██░░░██ ░░░░░░██ ░██ ░██ ██░░░██░░██░░█
░░█████ ███████ ░██ ░██ ░██░██░░░██ ███████ ░██ ░██ ░██ ███████ ░██ ░██ ███████ ░░██████░███████ ░██ ░
░░░░░██ ██░░░░██ ░██ ░██ ░██░██ ░██ ██░░░░██ ░██ ░██ ░██ ██░░░░██ ░██ ░██ ██░░░░██ ░░░░░██░██░░░░ ░██
██████ ░░████████ ███ ░██ ░██░██████ ░░████████ █████ ███ ░██ ░██░░████████ ███ ░██░░████████ █████ ░░██████░███
░░░░░░ ░░░░░░░░ ░░░ ░░ ░░ ░░░░░ ░░░░░░░░ ░░░░░ ░░░ ░░ ░░ ░░░░░░░░ ░░░ ░░ ░░░░░░░░ ░░░░░ ░░░░░░ ░░░
Info github.io/samba_manager ver.2.0
Issue github.io/issue
Author vroncevic.github.io
[USAGE] samba_manager [OPTIONS]
[OPTIONS]
[PR] smb | nmb | winbind | all
[OP] start | stop | restart | status | version
# Restart smb service
samba_manager smb restart
[help | h] print this option
```
### Dependencies
**samba_manager** requires next modules and libraries
* samba_manager [https://github.com/vroncevic/samba_manager](https://github.com/vroncevic/samba_manager)
### Shell tool structure
**samba_manager** is based on MOP.
Shell tool structure
```bash
sh_tool/
├── bin/
│ ├── center.sh
│ ├── display_logo.sh
│ ├── nmb_operation.sh
│ ├── samba_manager.sh
│ ├── smb_info.sh
│ ├── smb_list.sh
│ ├── smb_operation.sh
│ ├── smb_version.sh
│ └── winbind_operation.sh
├── conf/
│ ├── samba_manager.cfg
│ ├── samba_manager.logo
│ └── samba_manager_util.cfg
└── log/
└── samba_manager.log
```
### Docs
[](https://samba-manager.readthedocs.io/projects/samba_manager/en/latest/?badge=latest)
More documentation and info at
* [https://samba_manager.readthedocs.io/en/latest/](https://samba-manager.readthedocs.io/en/latest/)
* [https://www.gnu.org/software/bash/manual/](https://www.gnu.org/software/bash/manual/)
### Copyright and licence
[](https://www.gnu.org/licenses/gpl-3.0) [](https://opensource.org/licenses/Apache-2.0)
Copyright (C) 2016 - 2024 by [vroncevic.github.io/samba_manager](https://vroncevic.github.io/samba_manager)
**samba_manager** is free software; you can redistribute it and/or modify
it under the same terms as Bash itself, either Bash version 4.2.47 or,
at your option, any later version of Bash 4 you may have available.
Lets help and support FSF.
[](https://my.fsf.org/)
[](https://my.fsf.org/donate/)