Guest User

Untitled

a guest
Jan 23rd, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. [global]
  2. bind interfaces only = yes
  3. interfaces = lo eth0
  4. netbios name = OURSERVER
  5. server string = Office Intranet (OURSERVER) Server Version %v
  6. workgroup = WORKGROUP
  7. domain master = yes
  8. preferred master = yes
  9. os level = 34
  10. dns proxy = no
  11. log level = 3
  12. log file = /var/log/samba/log.%m
  13. max log size = 50
  14. nmbd bind explicit broadcast = No
  15. printcap name = cups
  16. name resolve order = wins hosts
  17. passdb backend = tdbsam:/etc/samba/passdb.tdb
  18. obey pam restrictions = yes
  19. passwd chat debug = yes
  20. unix password sync = yes
  21. passwd program = /usr/bin/passwd %u
  22. passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
  23. pam password change = yes
  24. security = user
  25. encrypt passwords = yes
  26. map to guest = Bad User
  27. wins support = Yes
  28. idmap config * : backend = tdb
  29. cups options = raw
  30. use client driver = Yes
  31. hosts allow = 127.0.0.1 192.168.0.0/24
  32. case sensitive = no
  33. invalid users = root
  34. username map script = /bin/echo
  35. restrict anonymous = 2
  36.  
  37. [homes]
  38. comment = Home Directories
  39. path = /data/home/%u
  40. hide files = /.*/
  41. veto files = /.*/lost+found/bin/httpd/public/.vacation.*/.forward/
  42. follow symlinks = No
  43. create mask = 0755
  44. read only = No
  45.  
  46. [Stuff]
  47. comment = All your base are belong to us
  48. path = /data/shares/stuff
  49. hide files = /.*/
  50. veto files = /.*/lost+found/bin/httpd/public/.vacation.*/.forward/
  51. follow symlinks = No
  52. access based share enum = Yes
  53. create mask = 0770
  54. directory mask = 0770
  55. force group = entitled
  56. force user = docman
  57. read only = No
  58. valid users = @entitled
  59.  
  60. $ smbclient -L OURSERVER
  61. WARNING: The "syslog" option is deprecated
  62. Enter WORKGROUPfunster's password:
  63. Domain=[OURSERVER] OS=[Windows 6.1] Server=[Samba 4.4.16]
  64.  
  65. Sharename Type Comment
  66. --------- ---- -------
  67. homes Disk Home Directories
  68. funster Disk Home Directories
  69. Stuff Disk All your base are belong to us
  70. IPC$ IPC IPC Service (Office Intranet (OURSERVER) Server Version 4.4.16)
  71.  
  72. Server Comment
  73. --------- -------
  74.  
  75. Workgroup Master
  76. --------- -------
  77. WORKGROUP
  78.  
  79. $ smbtree
  80. WORKGROUP
  81. \OURSERVER Office Intranet (OURSERVER) Server Version 4.4.16
  82.  
  83. $ smbtree -Ufunster%p4ssw0rd
  84. WORKGROUP
  85. \OURSERVER Office Intranet (OURSERVER) Server Version 4.4.16
  86. \OURSERVERfunster Home Directories
  87. \OURSERVERIPC$ IPC Service (Office Intranet (OURSERVER) Server Version 4.4.16)
  88. \OURSERVERhomes Home Directories
  89. \OURSERVERStuff All your base are belong to us
Add Comment
Please, Sign In to add comment