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
computer:aunt_server [2015/05/08 16:17]
tdobes
computer:aunt_server [2015/05/08 17:15] (current)
tdobes
Line 60: Line 60:
 </​code>​ </​code>​
   * ''​aptitude install lm-sensors''​   * ''​aptitude install lm-sensors''​
-  * ''​aptitude install samba winbind''​+  ​* allow connections on 2nd NIC:<​code>​ 
 +echo >> /​etc/​network/​interfaces 
 +echo '#​allow-hotplug eth1' >> /​etc/​network/​interfaces 
 +echo 'iface eth1 inet dhcp' >> /​etc/​network/​interfaces 
 + 
 +sed -i -e '​s/​^INTERFACES="​eth0"​$/​INTERFACES="​eth0 eth1"/​g'​ /​etc/​default/​ifplugd</​code>​ 
 +  ​* ''​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.1431119858.txt.gz · Last modified: 2015/05/08 16:17 by tdobes
Recent changes RSS feed Driven by DokuWiki Valid XHTML 1.0 Valid CSS