Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
computer:aunt_server [2015/05/08 16:17]
tdobes
computer:aunt_server [2015/05/08 17:01]
tdobes
Line 60: Line 60:
 </​code>​ </​code>​
   * ''​aptitude install lm-sensors''​   * ''​aptitude install lm-sensors''​
-  * ''​aptitude install samba winbind''​+  * ''​aptitude install samba''​ 
 +  * ''​mv /​etc/​samba/​smb.conf /​etc/​samba/​smb.conf.orig''​ 
 +  * <​code>​cat > /​etc/​samba/​smb.conf 
 +[global] 
 +  security = user 
 +  workgroup = WILLIAMS 
 +  server string = Mini Storage Server 
 + 
 +  # try to become browse master 
 +  local master = yes 
 +  # don't use DNS for NetBIOS lookups 
 +  dns proxy = no 
 +  # don't flood DNS servers with useless queries (see manpage; DC lookup still uses DNS)... also disable broadcast resolution 
 +  # name resolve order = wins 
 +  name resolve order = wins host 
 +  # ensure that we follow PAM rules (hopefully this will enforce home directory auto-creation) 
 +  obey pam restrictions = yes 
 +  # no broadcast announcements (we're not using OS/2) 
 +  lm announce = no 
 + 
 +  # disable print server 
 +  load printers = no 
 +  show add printer wizard = no 
 +  disable spoolss = yes 
 + 
 +  # logging 
 +  log file = /​var/​log/​samba/​log.%m 
 +  # cap logfiles at 1MB 
 +  max log size = 1000 
 +  log level = 2 
 +  # don't send anything to syslog 
 +  syslog = 0 
 +  # mail the admin if we crash 
 +  panic action = /​usr/​share/​samba/​panic-action %d 
 + 
 +  # performance tweaks 
 +  socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE 
 +  use sendfile = yes 
 +  max protocol = SMB3 
 +  strict allocate = yes 
 + 
 +  # obtain permissions from parent dir 
 +  inherit permissions = yes 
 +  # drop connections with no open files after 15 minutes of inactivity 
 +  deadtime = 15 
 +  # allow Windows to handle inheritance correctly 
 +  map acl inherit = yes 
 + 
 +  # hide Apple-specific files from Windows, but delete them if we're deleting a folder 
 +  veto files = /​.AppleDesktop/​Network Trash Folder/​TheVolumeSettingsFolder/​.AppleDouble/​.AppleDB/​.DS_Store/​.TemporaryItems/​ 
 +  delete veto files = yes 
 + 
 +  create mask = 0664 
 +  directory mask = 0775 
 + 
 +  # this wreaks all sorts of havoc with symlinks 
 +  unix extensions = no 
 + 
 +  # emulate DOS attributes using xattr 
 +  store dos attributes = yes 
 + 
 +[share] 
 +  comment = Shared Storage 
 +  writable = yes 
 +  path = /​mnt/​storage 
 +^D 
 +</​code>​ 
 +  * ''​smbpasswd -a -L williams''​ (and enter password) 
 +  * ''​mkdir /​mnt/​storage && chown williams /​mnt/​storage''​ 
 +  * ''​systemctl restart smbd && systemctl restart nmbd''​
computer/aunt_server.txt · Last modified: 2015/05/08 17:15 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS