User Tools

Site Tools


picoenterprise:fileserver

Differences

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

Link to this comparison view

Next revision
Previous revision
picoenterprise:fileserver [2016/05/18 21:14]
Luc Nieland created
picoenterprise:fileserver [2016/05/20 17:00] (current)
Luc Nieland
Line 9: Line 9:
  
  
-Configure ​the /​etc/​samba/​smb.conf ​file:+Configure /​etc/​samba/​smb.conf ​(for Samba-4)
  
 <​code>​ <​code>​
 [global] [global]
   workgroup = PICOENTERPRISE   workgroup = PICOENTERPRISE
-  server string = %h server+  ​;server string = %h server
   dns proxy = no   dns proxy = no
   log file = /​var/​log/​samba/​log.%m   log file = /​var/​log/​samba/​log.%m
Line 20: Line 20:
   syslog = 0   syslog = 0
   panic action = /​usr/​share/​samba/​panic-action %d   panic action = /​usr/​share/​samba/​panic-action %d
-  ​;​security ​user +  ​server role standalone server 
-  encrypt passwords = true+  ​;encrypt passwords = true
   passdb backend = tdbsam   passdb backend = tdbsam
   obey pam restrictions = yes   obey pam restrictions = yes
Line 36: Line 36:
   read only = no   read only = no
   guest ok = no    guest ok = no 
-  create ​mode 0664 +  create ​mask 0775 
-  directory ​mode = 0775+  directory ​mask = 0775 
 +  valid users = %S
  
 [data1] [data1]
    ​comment = Data1    ​comment = Data1
    path = /data1    path = /data1
-   write list = @fred +   write list = @fred,@john 
-   valid users = @fred+   valid users = @fred,@john
    force group = "​fred"​    force group = "​fred"​
-   ​create ​mode 664 +   ​create ​mask 0775 
-   ​directory ​mode = 775+   ​directory ​mask = 0775
 </​code>​ </​code>​
 +
 +After this, and possibly some tweaking, check your smb.conf for any syntax errors:
 +  testparm
 +
 +
 +Create a user.
 +
 +Firtst create a unix user:
 +  groupadd -g 1500 fred
 +  useradd ​ -g 1500 -u 1500 -d /home/fred -s /bin/bash fred
 +
 +Add a samba-user
 +
 +  smbpasswd -a fred
 +
 +
 +
 +
  
 ====NFS-protocol==== ====NFS-protocol====
picoenterprise/fileserver.1463598870.txt.gz · Last modified: 2016/05/18 21:14 by Luc Nieland