User Tools

Site Tools


servers:samba

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
servers:samba [2021/10/29 20:54] Sean Rhoneservers:samba [2021/12/29 09:28] (current) – Moode Audio Sean Rhone
Line 5: Line 5:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[distros:ubuntu_desktop#server|Ubuntu]]+  * [[distros:fedora_workstation_gnome|Fedora]] ((notes link to Workstation, but this can be done on Server))
   * [[servers:vsftpd|vsftpd]] ((''vsftpd'' isn't specifically required, but these notes expect the shared folder mentioned to already be mounted in ''fstab''))   * [[servers:vsftpd|vsftpd]] ((''vsftpd'' isn't specifically required, but these notes expect the shared folder mentioned to already be mounted in ''fstab''))
 +
 +===== Notes =====
 +
 +  * :!: SMB **cannot** be used to serve media to Kodi clients with this config as it breaks filenames with special characters ((such as the colon in "Title: The Movie")), this can be worked-around, but there's no known benefits over FTP
  
 ====== Dependencies ====== ====== Dependencies ======
Line 12: Line 16:
 **** ****
  
-  sudo apt install 'samba'+  sudo dnf install 'samba'
  
 ====== Firewall ====== ====== Firewall ======
Line 18: Line 22:
 **** ****
  
-  sudo ufw allow 'Samba'+  sudo firewall-cmd --add-service='samba--permanent && sudo firewall-cmd --reload
  
 ====== Service ====== ====== Service ======
Line 24: Line 28:
 **** ****
  
-  sudo systemctl enable 'smbd' --now+  sudo systemctl enable 'smb' --now
  
 ====== Settings ====== ====== Settings ======
Line 30: Line 34:
   * Add to the bottom of the file   * Add to the bottom of the file
  
-  sudo -e '/etc/samba/smb.conf' && sudo systemctl restart 'smbd'+  sudo -e '/etc/samba/smb.conf' && sudo systemctl restart 'smb'
  
 <code> <code>
 [Music] [Music]
     comment = Music at %h     comment = Music at %h
-    path = /srv/ftp/nas2/Music+    path = /var/ftp/nas2/Music
     browsable = yes     browsable = yes
     guest ok = yes     guest ok = yes
Line 41: Line 45:
 </code> </code>
  
-====== Media Test ======+====== Add User ======
  
-  * :!: This is under active testing+  * :!: The password can be anything here, but recommended **not to be an important password**
  
-<code> +  sudo smbpasswd -a 'espionage724'
-[Anime] +
-    comment = Cartoons at %h +
-    path = /srv/ftp/nas2/Anime +
-    browsable = yes +
-    guest ok = yes +
-    read only = yes+
  
-[Cartoons] +====== Moode Audio ======
-    comment Cartoons at %h +
-    path /srv/ftp/nas2/Cartoons +
-    browsable yes +
-    guest ok yes +
-    read only yes+
  
-[Courses] +  * Type: ''SMB'' 
-    comment = Courses at %h +  * Path: ''192.168.1.152/Music'' 
-    path = /srv/ftp/nas2/Courses +  * User ID: ''espionage724''
-    browsable = yes +
-    guest ok = yes +
-    read only = yes+
  
-[Movies] +===== Mount Flags =====
-    comment Movies at %h +
-    path /srv/ftp/nas2/Movies +
-    browsable yes +
-    guest ok yes +
-    read only yes+
  
-[Tests] +****
-    comment = Tests at %h +
-    path = /srv/ftp/nas2/Tests +
-    browsable = yes +
-    guest ok = yes +
-    read only = yes+
  
-[TV Shows] +  ro,dir_mode=0777,file_mode=0777,vers=3.0
-    comment TV Shows at %h +
-    path /srv/ftp/nas2/TV Shows +
-    browsable yes +
-    guest ok = yes +
-    read only = yes +
-</code> +
- +
-====== Add User ====== +
- +
-  * :!: The password can be anything here, but recommended **not to be an important password** +
- +
-  sudo smbpasswd -a 'espionage724'+
  
/var/www/wiki/data/attic/servers/samba.1635555266.txt.gz · Last modified: 2021/10/29 20:54 by Sean Rhone