Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.80 KB | None | 0 0
  1. grep -vE ';|\#|^$' /etc/samba/smb.conf
  2. [global]
  3. workgroup = workgroup
  4. realm = workgroup
  5. server string = samba
  6. printcap name = /dev/null
  7. load printers = no
  8. show add printer wizard = no
  9. log file = /var/log/samba/%m.log
  10. max log size = 50
  11. hosts allow = 192.168.2. 127.0.0.
  12. map to guest = bad user
  13. encrypt passwords = true
  14. idmap uid = 10000-20000
  15. idmap gid = 10000-20000
  16. local master = yes
  17. os level = 33
  18. domain master = yes
  19. preferred master = yes
  20. wins support = yes
  21. dns proxy = no
  22. security = user
  23. dos charset = UTF-8
  24. display charset = UTF-8
  25. [homes]
  26. comment = Home Directories
  27. browseable = no
  28. writable = yes
  29. [printers]
  30. comment = All Printers
  31. path = /var/spool/samba
  32. browseable = no
  33. guest ok = yes
  34. printable = yes
  35. create mode = 0700
  36. use client driver = yes
  37. [250GB_public]
  38. path = /mnt/250GB/public
  39. comment = shara
  40. guest ok = yes
  41. writeable = yes
  42. [250GB_soft]
  43. path = /mnt/250GB/soft
  44. comment = shara
  45. guest ok = yes
  46. writeable = no
  47. [250GB_shared]
  48. path = /mnt/250GB/shared
  49. comment = shara
  50. guest ok = yes
  51. writeable = yes
  52. [250GB_torrent]
  53. path = /mnt/250GB/torrent
  54. comment = shara
  55. guest ok = yes
  56. writeable = yes
  57. [160GB_shared]
  58. path = /mnt/160GB/shared
  59. comment = shara
  60. guest ok = yes
  61. writeable = yes
  62. [160GB_torrent]
  63. path = /mnt/160GB/torrent
  64. comment = shara
  65. guest ok = yes
  66. writeable = no
  67. [40GB_shared]
  68. path = /mnt/40GB/shared
  69. comment = shara
  70. guest ok = yes
  71. writeable = yes
  72.  
  73. ^C
  74. root@maknas:~# testparm --verbose
  75. Load smb config files from /etc/samba/smb.conf
  76. rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
  77. WARNING: The "idmap uid" option is deprecated
  78. WARNING: The "idmap gid" option is deprecated
  79. ERROR: invalid DOS charset: 'dos charset' must not be UTF8, using (default value ) CP850 instead.
  80. Unknown parameter encountered: "display charset"
  81. Ignoring unknown parameter "display charset"
  82. Processing section "[homes]"
  83. Processing section "[printers]"
  84. Processing section "[250GB_public]"
  85. Processing section "[250GB_soft]"
  86. Processing section "[250GB_shared]"
  87. Processing section "[250GB_torrent]"
  88. Processing section "[160GB_shared]"
  89. Processing section "[160GB_torrent]"
  90. Processing section "[40GB_shared]"
  91. Loaded services file OK.
  92. WARNING: You have some share names that are longer than 12 characters.
  93. These may not be accessible to some older clients.
  94. (Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
  95. Warning: Service printers defines a print command, but parameter is ignored when using CUPS libraries.
  96.  
  97. Server role: ROLE_STANDALONE
  98.  
  99. Press enter to see a dump of your service definitions
  100.  
  101. # Global parameters
  102. [global]
  103. bind interfaces only = No
  104. config backend = file
  105. dos charset = CP850
  106. enable core files = Yes
  107. interfaces =
  108. multicast dns register = Yes
  109. netbios aliases =
  110. netbios name = MAKNAS
  111. netbios scope =
  112. realm = WORKGROUP
  113. server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate, dns
  114. server string = samba
  115. share backend = classic
  116. unix charset = UTF-8
  117. workgroup = WORKGROUP
  118. browse list = Yes
  119. domain master = Yes
  120. enhanced browsing = Yes
  121. lm announce = Auto
  122. lm interval = 60
  123. local master = Yes
  124. os level = 33
  125. preferred master = Yes
  126. allow dns updates = secure only
  127. dns forwarder =
  128. dns update command = /usr/sbin/samba_dnsupdate
  129. machine password timeout = 604800
  130. nsupdate command = /usr/bin/nsupdate -g
  131. rndc command = /usr/sbin/rndc
  132. spn update command = /usr/sbin/samba_spnupdate
  133. mangle prefix = 1
  134. mangling method = hash2
  135. max stat cache size = 256
  136. stat cache = Yes
  137. client ldap sasl wrapping = sign
  138. ldap admin dn =
  139. ldap connection timeout = 2
  140. ldap delete dn = No
  141. ldap deref = auto
  142. ldap follow referral = Auto
  143. ldap group suffix =
  144. ldap idmap suffix =
  145. ldap machine suffix =
  146. ldap page size = 1000
  147. ldap passwd sync = no
  148. ldap replication sleep = 1000
  149. ldap server require strong auth = Yes
  150. ldap ssl = start tls
  151. ldap ssl ads = No
  152. ldap suffix =
  153. ldap timeout = 15
  154. ldap user suffix =
  155. lock spin time = 200
  156. oplock break wait time = 0
  157. smb2 leases = Yes
  158. debug class = No
  159. debug hires timestamp = Yes
  160. debug pid = No
  161. debug prefix timestamp = No
  162. debug uid = No
  163. ldap debug level = 0
  164. ldap debug threshold = 10
  165. log file = /var/log/samba/%m.log
  166. logging =
  167. log level = 2
  168. max log size = 50
  169. syslog = 1
  170. syslog only = No
  171. timestamp logs = Yes
  172. abort shutdown script =
  173. add group script =
  174. add machine script =
  175. add user script =
  176. add user to group script =
  177. allow nt4 crypto = No
  178. delete group script =
  179. delete user from group script =
  180. delete user script =
  181. domain logons = No
  182. enable privileges = Yes
  183. init logon delay = 100
  184. init logon delayed hosts =
  185. logon drive =
  186. logon home = \\%N\%U
  187. logon path = \\%N\%U\profile
  188. logon script =
  189. reject md5 clients = No
  190. set primary group script =
  191. shutdown script =
  192. add share command =
  193. afs token lifetime = 604800
  194. afs username map =
  195. allow insecure wide links = No
  196. async smb echo handler = No
  197. auto services =
  198. cache directory = /var/cache/samba
  199. change notify = Yes
  200. change share command =
  201. cluster addresses =
  202. clustering = No
  203. config file =
  204. ctdbd socket =
  205. ctdb locktime warn threshold = 0
  206. ctdb timeout = 0
  207. default service =
  208. delete share command =
  209. homedir map = auto.home
  210. kernel change notify = Yes
  211. lock directory = /var/run/samba
  212. log writeable files on exit = No
  213. message command =
  214. nbt client socket address = 0.0.0.0
  215. ncalrpc dir = /var/run/samba/ncalrpc
  216. NIS homedir = No
  217. nmbd bind explicit broadcast = Yes
  218. panic action =
  219. perfcount module =
  220. pid directory = /var/run/samba
  221. registry shares = No
  222. remote announce =
  223. remote browse sync =
  224. reset on zero vc = No
  225. smbd profiling level = off
  226. state directory = /var/lib/samba
  227. usershare allow guests = No
  228. usershare max shares = 100
  229. usershare owner only = Yes
  230. usershare path = /var/lib/samba/usershares
  231. usershare prefix allow list =
  232. usershare prefix deny list =
  233. usershare template share =
  234. utmp = No
  235. utmp directory =
  236. wtmp directory =
  237. addport command =
  238. addprinter command =
  239. cups connection timeout = 30
  240. cups encrypt = No
  241. cups server =
  242. deleteprinter command =
  243. disable spoolss = No
  244. enumports command =
  245. iprint server =
  246. load printers = No
  247. lpq cache time = 30
  248. os2 driver map =
  249. printcap cache time = 750
  250. printcap name = /dev/null
  251. show add printer wizard = No
  252. cldap port = 389
  253. client ipc max protocol = default
  254. client ipc min protocol = default
  255. client max protocol = default
  256. client min protocol = CORE
  257. client use spnego = Yes
  258. dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr, netlogon, lsarpc, drsuapi, dssetup, unixinfo, browser, eventlog6, backupkey, dnsserver
  259. defer sharing violations = Yes
  260. dgram port = 138
  261. disable netbios = No
  262. enable asu support = No
  263. eventlog list =
  264. large readwrite = Yes
  265. max mux = 50
  266. max ttl = 259200
  267. max wins ttl = 518400
  268. max xmit = 16644
  269. min receivefile size = 0
  270. min wins ttl = 21600
  271. name resolve order = lmhosts wins host bcast
  272. nbt port = 137
  273. nt pipe support = Yes
  274. nt status support = Yes
  275. read raw = Yes
  276. rpc big endian = No
  277. server max protocol = SMB3
  278. server min protocol = LANMAN1
  279. server multi channel support = No
  280. smb2 max credits = 8192
  281. smb2 max read = 8388608
  282. smb2 max trans = 8388608
  283. smb2 max write = 8388608
  284. smb ports = 445 139
  285. svcctl list =
  286. time server = No
  287. unicode = Yes
  288. unix extensions = Yes
  289. use spnego = Yes
  290. web port = 901
  291. write raw = Yes
  292. algorithmic rid base = 1000
  293. allow dcerpc auth level connect = No
  294. allow trusted domains = Yes
  295. auth methods =
  296. check password script =
  297. client ipc signing = default
  298. client lanman auth = No
  299. client NTLMv2 auth = Yes
  300. client plaintext auth = No
  301. client schannel = Auto
  302. client signing = default
  303. client use spnego principal = No
  304. dedicated keytab file =
  305. encrypt passwords = Yes
  306. guest account = nobody
  307. kerberos method = default
  308. kpasswd port = 464
  309. krb5 port = 88
  310. lanman auth = No
  311. log nt token command =
  312. map to guest = Bad User
  313. map untrusted to domain = No
  314. ntlm auth = No
  315. ntp signd socket directory = /var/lib/samba/ntp_signd
  316. null passwords = No
  317. obey pam restrictions = No
  318. old password allowed period = 60
  319. pam password change = No
  320. passdb backend = tdbsam
  321. passdb expand explicit = No
  322. passwd chat = *new*password* %n\n *new*password* %n\n *changed*
  323. passwd chat debug = No
  324. passwd chat timeout = 2
  325. passwd program =
  326. password hash gpg key ids =
  327. password server = *
  328. preload modules =
  329. private dir = /var/lib/samba/private
  330. raw NTLMv2 auth = No
  331. rename user script =
  332. restrict anonymous = 0
  333. root directory =
  334. samba kcc command = /usr/sbin/samba_kcc
  335. security = USER
  336. server role = auto
  337. server schannel = Auto
  338. server signing = default
  339. smb passwd file = /etc/samba/smbpasswd
  340. tls cafile = tls/ca.pem
  341. tls certfile = tls/cert.pem
  342. tls crlfile =
  343. tls dh params file =
  344. tls enabled = Yes
  345. tls keyfile = tls/key.pem
  346. tls priority = NORMAL:-VERS-SSL3.0
  347. tls verify peer = as_strict_as_possible
  348. unix password sync = No
  349. username level = 0
  350. username map =
  351. username map cache time = 0
  352. username map script =
  353. aio max threads = 100
  354. deadtime = 0
  355. getwd cache = Yes
  356. hostname lookups = No
  357. keepalive = 300
  358. max disk size = 0
  359. max open files = 16384
  360. max smbd processes = 0
  361. name cache timeout = 660
  362. socket options = TCP_NODELAY
  363. use mmap = Yes
  364. get quota command =
  365. host msdfs = Yes
  366. set quota command =
  367. create krb5 conf = Yes
  368. idmap backend = tdb
  369. idmap cache time = 604800
  370. idmap gid = 10000-20000
  371. idmap negative cache time = 120
  372. idmap uid = 10000-20000
  373. include system krb5 conf = Yes
  374. neutralize nt4 emulation = No
  375. reject md5 servers = No
  376. require strong key = Yes
  377. template homedir = /home/%D/%U
  378. template shell = /bin/false
  379. winbind cache time = 300
  380. winbindd privileged socket directory = /var/lib/samba/winbindd_privileged
  381. winbindd socket directory = /var/run/samba/winbindd
  382. winbind enum groups = No
  383. winbind enum users = No
  384. winbind expand groups = 0
  385. winbind max clients = 200
  386. winbind max domain connections = 1
  387. winbind nested groups = Yes
  388. winbind normalize names = No
  389. winbind nss info = template
  390. winbind offline logon = No
  391. winbind reconnect delay = 30
  392. winbind refresh tickets = No
  393. winbind request timeout = 60
  394. winbind rpc only = No
  395. winbind sealed pipes = Yes
  396. winbind separator = \
  397. winbind trusted domains only = No
  398. winbind use default domain = No
  399. dns proxy = No
  400. wins hook =
  401. wins proxy = No
  402. wins server =
  403. wins support = Yes
  404. idmap config * : range = 10000-20000
  405. idmap config * : backend = tdb
  406. comment =
  407. path =
  408. administrative share = No
  409. browseable = Yes
  410. case sensitive = Auto
  411. default case = lower
  412. delete veto files = No
  413. hide dot files = Yes
  414. hide files =
  415. hide special files = No
  416. hide unreadable = No
  417. hide unwriteable files = No
  418. mangled names = Yes
  419. mangling char = ~
  420. map archive = Yes
  421. map hidden = No
  422. map readonly = yes
  423. map system = No
  424. preserve case = Yes
  425. short preserve case = Yes
  426. store dos attributes = No
  427. veto files =
  428. veto oplock files =
  429. blocking locks = Yes
  430. csc policy = manual
  431. fake oplocks = No
  432. kernel oplocks = No
  433. kernel share modes = Yes
  434. level2 oplocks = Yes
  435. locking = Yes
  436. oplock contention limit = 2
  437. oplocks = Yes
  438. posix locking = Yes
  439. strict locking = Auto
  440. afs share = No
  441. available = Yes
  442. copy =
  443. delete readonly = No
  444. dfree cache time = 0
  445. dfree command =
  446. directory name cache size = 100
  447. dmapi support = No
  448. dont descend =
  449. dos filemode = No
  450. dos filetime resolution = No
  451. dos filetimes = Yes
  452. fake directory create times = No
  453. follow symlinks = Yes
  454. fstype = NTFS
  455. include =
  456. magic output =
  457. magic script =
  458. postexec =
  459. preexec =
  460. preexec close = No
  461. root postexec =
  462. root preexec =
  463. root preexec close = No
  464. spotlight = No
  465. volume =
  466. wide links = No
  467. cups options =
  468. default devmode = Yes
  469. force printername = No
  470. lppause command =
  471. lpq command = %p
  472. lpresume command =
  473. lprm command =
  474. max print jobs = 1000
  475. max reported print jobs = 0
  476. printable = No
  477. print command =
  478. printer name =
  479. printing = cups
  480. printjob username = %U
  481. print notify backchannel = No
  482. queuepause command =
  483. queueresume command =
  484. use client driver = No
  485. acl allow execute always = No
  486. acl check permissions = Yes
  487. acl map full control = Yes
  488. durable handles = Yes
  489. ea support = No
  490. map acl inherit = No
  491. nt acl support = Yes
  492. profile acls = No
  493. access based share enum = No
  494. acl group control = No
  495. admin users =
  496. create mask = 0744
  497. directory mask = 0755
  498. force create mode = 0000
  499. force directory mode = 0000
  500. force group =
  501. force unknown acl user = No
  502. force user =
  503. guest ok = No
  504. guest only = No
  505. hosts allow = 192.168.2. 127.0.0.
  506. hosts deny =
  507. inherit acls = No
  508. inherit owner = No
  509. inherit permissions = No
  510. invalid users =
  511. read list =
  512. read only = Yes
  513. smb encrypt = default
  514. valid users =
  515. write list =
  516. aio read size = 0
  517. aio write behind =
  518. aio write size = 0
  519. allocation roundup size = 1048576
  520. block size = 1024
  521. max connections = 0
  522. min print space = 0
  523. strict allocate = No
  524. strict rename = No
  525. strict sync = No
  526. sync always = No
  527. use sendfile = No
  528. write cache size = 0
  529. msdfs proxy =
  530. msdfs root = No
  531. msdfs shuffle referrals = No
  532. ntvfs handler = unixuid, default
  533. vfs objects =
  534.  
  535.  
  536. [homes]
  537. comment = Home Directories
  538. browseable = No
  539. read only = No
  540.  
  541.  
  542. [printers]
  543. comment = All Printers
  544. path = /var/spool/samba
  545. browseable = No
  546. printable = Yes
  547. print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
  548. use client driver = Yes
  549. create mask = 0700
  550. guest ok = Yes
  551.  
  552.  
  553. [250GB_public]
  554. comment = shara
  555. path = /mnt/250GB/public
  556. guest ok = Yes
  557. read only = No
  558.  
  559.  
  560. [250GB_soft]
  561. comment = shara
  562. path = /mnt/250GB/soft
  563. guest ok = Yes
  564.  
  565.  
  566. [250GB_shared]
  567. comment = shara
  568. path = /mnt/250GB/shared
  569. guest ok = Yes
  570. read only = No
  571.  
  572.  
  573. [250GB_torrent]
  574. comment = shara
  575. path = /mnt/250GB/torrent
  576. guest ok = Yes
  577. read only = No
  578.  
  579.  
  580. [160GB_shared]
  581. comment = shara
  582. path = /mnt/160GB/shared
  583. guest ok = Yes
  584. read only = No
  585.  
  586.  
  587. [160GB_torrent]
  588. comment = shara
  589. path = /mnt/160GB/torrent
  590. guest ok = Yes
  591.  
  592.  
  593. [40GB_shared]
  594. comment = shara
  595. path = /mnt/40GB/shared
  596. guest ok = Yes
  597. read only = No
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement