Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
home_server:home_server_setup:other_services:samba [2021-12-28 Tue wk52 12:42] baumkphome_server:home_server_setup:other_services:samba [2023-04-30 Sun wk17 17:43] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +{{tag>linux samba}}
 ======samba====== ======samba======
-I have not look at samba much since I first attempted to set up my home sever circa 2011 on Fedora before I moved to Ubuntu.  I stopped using Fedora as I had nood pain with Selinux, coupled with the short service life of Fedora, so I moved to Ubuntu, where I had a lot more success.\\+I have not look at samba much since I first attempted to set up my home sever circa 2011 on Fedora before I moved to Ubuntu.  I stopped using Fedora as I had noob pain with Selinux, coupled with the short service life of Fedora, so I moved to Ubuntu, where I had a lot more success.\\
 Samba seems to pretty much just work.  I was lazy and tended to just use Webmin to set this up.  However as I did not use Webmin for much else I have elected to to set it up now that I moved my server to Debian.  So now I need to learn about Samba again\\ Samba seems to pretty much just work.  I was lazy and tended to just use Webmin to set this up.  However as I did not use Webmin for much else I have elected to to set it up now that I moved my server to Debian.  So now I need to learn about Samba again\\
-Samba is pretty much mandatory, as a lot of services smb use it as default. +Samba is pretty much mandatory, as a lot of services smb use it as default.\\ 
 +My main form of security it to limit external access to my lan, hence samba security is low. More focused on easy use.\\ 
 +====samba basic setup====
 High level requirements: High level requirements:
   * To install: ''sudo apt install samba samba-client''   * To install: ''sudo apt install samba samba-client''
- +  * Adjust the smb.conf file: ''sudo vim /etc/samba/smb.conf'' 
- +  * Add and enable users: ''sudo smbpasswd -a USER'', ''​sudo smbpasswd -e USER'' I use the same user name and passwords as main Linux log. 
-''sudo vim /etc/samba/smb.conf'' +++++smb.conf|
-++++|smb.conf+
 <code># <code>#
 # Sample configuration file for the Samba suite for Debian GNU/Linux. # Sample configuration file for the Samba suite for Debian GNU/Linux.
Line 67: Line 68:
 # option cannot handle dynamic or non-broadcast interfaces correctly. # option cannot handle dynamic or non-broadcast interfaces correctly.
 ;   bind interfaces only = yes ;   bind interfaces only = yes
- 
- 
  
 #### Debugging/Accounting #### #### Debugging/Accounting ####
Line 90: Line 89:
 # Do something sensible when Samba crashes: mail the admin a backtrace # Do something sensible when Samba crashes: mail the admin a backtrace
    panic action = /usr/share/samba/panic-action %d    panic action = /usr/share/samba/panic-action %d
- 
  
 ####### Authentication ####### ####### Authentication #######
Line 269: Line 267:
 # to the drivers directory for these users to have write rights in it # to the drivers directory for these users to have write rights in it
 ;   write list = root, @lpadmin ;   write list = root, @lpadmin
- 
  
 [home] [home]
Line 294: Line 291:
  path = /media/deluge/Downloads  path = /media/deluge/Downloads
         writeable = yes         writeable = yes
-<\code>+</code>
 ++++ ++++
 +====samba check commands====
 +Some samba check commands:
 +  * ''smbclient -L 192.168.1.10'' list the available shares on the host IP
 +  * ''pdbedit -w -L'' list the current users on the samba host
 +  * ''sudo systemctl status smbd'' smdb.service is the systemd services name.....
 +  * ''testparm'' will list the samba configuration parameters.
  
-Links:+====Links====
   * [[https://wiki.debian.org/Samba/ServerSimple|Samba Server Simple]]   * [[https://wiki.debian.org/Samba/ServerSimple|Samba Server Simple]]
- +  * [[https://www.server-world.info/en/note?os=Debian_11&p=samba&f=2|Samba : Limited Shared Folder]]
  
 ---- ----
  
-<- home_server:home_server_setup:other_services:apt|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:misc|Next ->+<- home_server:home_server_setup:other_services:apt|Prev ^ home_server:home_server_setup:other_services:index|Start page ^ home_server:home_server_setup:other_services:logrotate|Next ->