Samba Server on Debian Server

  • Installing Samba Server
    root@storage:~# apt-get install libcups2 samba samba-common cups
  • Backup default configuration of samba
    root@storage:~# mv /etc/samba/smb.conf /etc/samba/smb.conf.bak
  • Masukan konfigurasi simple berikut ke /etc/samba/smb.conf
    workgroup = WORKGROUP
    server string = Samba Server %v by Sys.Admin
    netbios name = debian
    security = user
    map to guest = bad user
    dns proxy = no
    comment = All Users
    path = /home/sharefolder/
    valid users = @users
    force group = users
    create mask = 0660
    directory mask = 0771
    writable = yes
  • Sesuaikan workgroup name agar sama dengan workgroup yang digunakan
  • Restart services samba
    root@storage:~# systemctl restart smbd.service


0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your e-mail address will not be published. Required fields are marked *