Difference between revisions of "Debian: samba"

From OnnoWiki
Jump to navigation Jump to search
 
Line 11: Line 11:
  
 
Edit /etc/samba/smb.conf
 
Edit /etc/samba/smb.conf
 
+
 
 
 
  [share]
 
  [share]
 
     path = /home/share
 
     path = /home/share
Line 18: Line 17:
 
     read only = no
 
     read only = no
 
     guest ok = yes
 
     guest ok = yes
 
+
 
  [share]
 
  [share]
 
     path = /home/share
 
     path = /home/share
Line 25: Line 24:
 
     guest ok = yes
 
     guest ok = yes
 
     valid users = onno,derry,reza
 
     valid users = onno,derry,reza
 
+
[share1]
+
[share1]
 
     path = /home/share1
 
     path = /home/share1
 
     browseable = yes
 
     browseable = yes
Line 32: Line 31:
 
     guest ok = yes
 
     guest ok = yes
 
     valid users = onno,derry,reza
 
     valid users = onno,derry,reza
 +
 +
 +
Tambahkan SMBuser
 +
 +
adduser username
 +
smbpasswd -a username

Latest revision as of 18:27, 26 February 2022

Install

apt -y install samba


Enable saat start

systemctl enable smbd


Edit /etc/samba/smb.conf

[share]
    path = /home/share
    browseable = yes
    read only = no
    guest ok = yes

[share]
    path = /home/share
    browseable = yes
    read only = no
    guest ok = yes
    valid users = onno,derry,reza

[share1]
    path = /home/share1
    browseable = yes
    read only = no
    guest ok = yes
    valid users = onno,derry,reza


Tambahkan SMBuser

adduser username
smbpasswd -a username