daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest May 26th, 2017 607 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [global]
  2.  
  3.    workgroup = AD
  4.    realm = AD.LOCALDOMAIN.COM
  5.    kerberos method = secrets and keytab
  6.  
  7. # server string is the equivalent of the NT Description field
  8.    server string = Samba Server
  9.  
  10. # allow connections from these subnets
  11.    hosts allow = 127.0.0.1 172.30.0.0/16 172.18.10.0/24 10.80.8.0/24 10.20.17.11 10.20.17.21 10.20.17.23 10.20.17.24 10.21.30.0/24 10.80.12.101 10.23.30.0/24 10.23.63.0/24 10.27.30.0/24 10.124.220.0/24 10.23.32.0/24
  12.  
  13. # printer configuration
  14.    printcap name = /dev/null
  15.    load printers = no
  16.  
  17.    guest account = nobody
  18.    browseable = yes
  19.  
  20. # open file/directory permissions, etc
  21.    force create mode = 0777
  22.    force directory mode = 0777
  23.    guest ok = no
  24.    hide dot files = no
  25.  
  26. # disable loggging via syslog
  27.    syslog = 0
  28.  
  29. # this tells Samba to use a separate log file for each machine
  30. # that connects
  31.    log file = /var/log/samba/samba.%m
  32. # this tells samba to use one log file for everything
  33. #  log file = /var/log/samba/log.smbd
  34. # set the log level, 3 is good for debugging
  35.   log level = 10
  36.  
  37. # Put a capping on the size of the log files (in Kb).
  38.    max log size = 50
  39.  
  40. # Security mode, ADS as this host is joined to the domain via realmd/sssd
  41.     security = ADS
  42.     map to guest = Bad User
  43.  
  44. # No passwords should be sent in plaintext, would break older versions of windows.
  45. encrypt passwords = yes
  46.  
  47. # Most people will find that this option gives better performance.
  48. # See speed.txt and the manual pages for details
  49.   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  50.  
  51. # Browser Control Options:
  52. # set local master to no if you don't want Samba to become a master
  53. # browser on your network. Otherwise the normal election rules apply
  54.    local master = no
  55.  
  56. # OS Level determines the precedence of this server in master browser
  57. # elections. The default value should be reasonable
  58. ;   os level = 33
  59.    os level = 0
  60.  
  61. # Domain Master specifies Samba to be the Domain Master Browser. This
  62. # allows Samba to collate browse lists between subnets. Don't use this
  63. # if you already have a Windows NT domain controller doing this job
  64. ;   domain master = yes
  65.    domain master = no
  66.  
  67. # Preferred Master causes Samba to force a local browser election on startup
  68. # and gives it a slightly higher chance of winning the election
  69. ;   preferred master = yes
  70.    preferred master = no
  71.  
  72. # Windows Internet Name Serving Support Section:
  73. # WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
  74. ;   wins support = yes
  75.    wins support = no
  76.  
  77. #============================ Share Definitions ==============================
  78.  
  79. [root]
  80.    comment = nfs
  81.    path = /
  82.    read only = no
  83.    public = yes
  84.    writable = yes
  85.    browseable = yes
  86.    guest ok = yes
  87.  
  88.  
  89. [user_data]
  90.    comment = user_data
  91.    path = /user_data
  92.    public = no
  93.    writable = yes
  94.    guest ok = no
  95.    browseable = yes
  96.    valid users = @"alias_tech@ad.LOCALDOMAIN.com"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top