Linux/Samba: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „== Samba client == * /etc/fstab <blockquote> <pre> //192.168.0.5/backup /mnt/folder cifs auto,passwd='' 0 0 </pre> </blockquote>“)
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Simple Samba Server ==
* installation:
<blockquote>
<pre>
apt install samba
</pre>
</blockquote>
* configuration: /etc/samba/smb.conf
<blockquote>
<pre>
[global]
  workgroup = WORKGROUP
  server string = ""
  ...
[data]
    browsable = yes
    path = /srv/samba/data
    read only = no
    create mask = 0700
    directory mask = 0700
    follow symlinks = yes
    wide links = yes
;    guest ok = yes        ; uncomment for guest access
;[printers]
;  comment = All Printers
;  browseable = no
;  path = /var/spool/samba
;  printable = yes
;  guest ok = no
;  read only = yes
;  create mask = 0700
;[print$]
;  comment = Printer Drivers
;  path = /var/lib/samba/printers
;  browseable = yes
;  read only = yes
;  guest ok = no
;  write list = root, @lpadmin
</pre>
</blockquote>
== Samba client ==
== Samba client ==
* /etc/fstab
* /etc/fstab
Line 6: Line 52:
</pre>
</pre>
</blockquote>
</blockquote>
[[Category:Linux/Services]]
[[Category:Linux]]

Latest revision as of 20:27, 9 February 2018

Simple Samba Server

  • installation:
apt install samba
  • configuration: /etc/samba/smb.conf
[global]
   workgroup = WORKGROUP
   server string = ""
   ...

[data]
    browsable = yes
    path = /srv/samba/data
    read only = no
    create mask = 0700
    directory mask = 0700
    follow symlinks = yes
    wide links = yes
;    guest ok = yes         ; uncomment for guest access

;[printers]
;   comment = All Printers
;   browseable = no
;   path = /var/spool/samba
;   printable = yes
;   guest ok = no
;   read only = yes
;   create mask = 0700

;[print$]
;   comment = Printer Drivers
;   path = /var/lib/samba/printers
;   browseable = yes
;   read only = yes
;   guest ok = no
;   write list = root, @lpadmin

Samba client

  • /etc/fstab
//192.168.0.5/backup			  /mnt/folder cifs auto,passwd='' 0 0