Skip to content

ammerscm68/Samba-Server-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Samba-Server Tools for easy Management a "Raspberry Pi" --- Simple NAS

The following commands can be executed:

  1. smbusermanager (Interactive creation or deletion of a user for Linux and SAMBA)
  2. smbconfig (Interactive configuration of the Samba-Server)
  3. format /dev/sdb or sdb (sdb is an example)
  4. samba-config (Displays the current contents of the "smb.conf" file)
  5. getfstab (Displays the current contents of the fstab file)
  6. setfstab /dev/sdb or sdb (sdb is an example)
  7. smbmount /dev/sdb or sdb (sdb is an example)
  8. smbdismount /dev/sdb or sdb (sdb is an example - only dismount partition 1)
  9. smballpartdismount /dev/sdb or sdb (sdb is an example - dismounts all partitions)
  10. smbcontrol start (allowed parameters start, stop, restart)
  11. autoupdate -c | -d (Parameter [-c] = create autoupdate - [-d] = delete autoupdate
  12. smbsetstaticip (interactively switch to a static IP address)
  13. webmininstall (interactive Installation of the graphical user Interface "Webmin")

Many more simplified commands can be found in the aliases of the .bashrc file.

**************************************************************************************************************
Version 2.5 - interactive Installation of the graphical user Interface "Webmin"
**************************************************************************************************************
Version 2.4 - Upon request, it is now possible to interactively switch to a static IP address.
**************************************************************************************************************
Version 2.3 - A new feature has been added, named: "autoupdate" - Automatic Update Raspberry PI OS.
**************************************************************************************************************
Version 2.2 - Interactive User Manager - add a new Menu entry. SAMBA installation now interactive
**************************************************************************************************************
Version 2.1 - Interactive User Manager added.
**************************************************************************************************************
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Version 2.0 has been completely redesigned. Samba server configuration is <<< now entirely interactive >>>.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
**************************************************************************************************************
Version 1.1 included some improvements to the logic and a bug fix.
On Version 1.1 allows the management of a maximum of 3 shares.
**************************************************************************************************************

Simply copy the aliases and functions into the [.bashrc] file of the mainuser, restart the
Raspberry Pi, and you'll have a simple NAS-Server.

The tools will of course need to be customized for the main user.
In my case, I simply named the user "samba".
You can then create multiple users who, for example, are only allowed
to connect to a single share but are not allowed to log in via SSH or
directly to the Raspberry Pi.