Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.95 KB | None | 0 0
  1. root@maknas:~# smbcontrol all reload-config
  2. ERROR: invalid DOS charset: 'dos charset' must not be UTF8, using (default value) CP850 instead.
  3. Unknown parameter encountered: "display charset"
  4. Ignoring unknown parameter "display charset"
  5.  
  6. root@maknas:~# grep -iE '^;|^\#' /etc/samba/smb.conf
  7. # This is the main Samba configuration file. You should read the
  8. # smb.conf(5) manual page in order to understand the options listed
  9. # here. Samba has a huge number of configurable options (perhaps too
  10. # many!) most of which are not shown in this example
  11. #
  12. # Any line which starts with a ; (semi-colon) or a # (hash)
  13. # is a comment and is ignored. In this example we will use a #
  14. # for commentry and a ; for parts of the config file that you
  15. # may wish to enable
  16. #
  17. # NOTE: Whenever you modify this file you should run the command "testparm"
  18. # to check that you have not made any basic syntactic errors.
  19. #
  20. #======================= Global Settings =====================================
  21. ; netbios name = maknas
  22. ; smb passwd file = /etc/samba/smbpasswd
  23. ; socket options = tcp_nodelay
  24. # 8. File Naming Options:
  25. # Case Preservation can be handy - system default is _no_
  26. # NOTE: These can be set on a per share basis
  27. # preserve case = no
  28. # short preserve case = no
  29. # Default case is normally upper case for all DOS files
  30. # default case = lower
  31. # Be very careful with case sensitivity - it can break things!
  32. # case sensitive = no
  33. # Enabling internationalization:
  34. # you can match a Windows code page with a UNIX character set.
  35. # Windows: 437 (US), 737 (GREEK), 850 (Latin1 - Western European),
  36. # 852 (Eastern Eu.), 861 (Icelandic), 932 (Cyrillic - Russian),
  37. # 936 (Japanese - Shift-JIS), 936 (Simpl. Chinese), 949 (Korean Hangul),
  38. # 950 (Trad. Chin.).
  39. # UNIX: ISO8859-1 (Western European), ISO8859-2 (Eastern Eu.),
  40. # ISO8859-5 (Russian Cyrillic), KOI8-R (Alt-Russ. Cyril.)
  41. # This is an example for french users:
  42. ; unix charset = UTF-8
  43. #============================ Share Definitions ==============================
  44. # You can enable VFS recycle bin and on-access virus-scanning on a per
  45. # share basis:
  46. # Uncomment the next 2 lines (make sure you create a .recycle folder in
  47. # the base of the share and ensure all users will have write access to it.
  48. # For virus scanning, install samba-vscan-clamav and ensure the clamd service
  49. # is running
  50. # vfs objects = vscan-clamav recycle
  51. # vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
  52. # Un-comment the following and create the netlogon directory for Domain Logons
  53. # [netlogon]
  54. # comment = Network Logon Service
  55. # path = /var/lib/samba/netlogon
  56. # guest ok = yes
  57. # writable = no
  58. #Uncomment the following 2 lines if you would like your login scriptsПароль: # they have written to the files
  59. # vfs objects = fake_perms
  60. # NOTE: If you have a CUPS print system there is no need to
  61. # specifically define each individual printer.
  62. # You must configure the samba printers with the appropriate Windows
  63. # drivers on your Windows clients or upload the printer driver to the
  64. # server from Windows (NT/2000/XP). On the Samba server no filtering is
  65. # done. If you wish that the server provides the driver and the clients
  66. # send PostScript ("Generic PostScript Printer" under Windows), you have
  67. # to use 'printcap name = cups' or swap the 'print command' line below
  68. # with the commented one. Note that print commands only work if not using
  69. # 'printing=cups'
  70. ; wr
  71. itable = No
  72. # This share is used for Windows NT-style point-and-print support.
  73. # To be able to install drivers, you need to be either root, or listed
  74. # in the printer admin parameter above. Note that you also need write access
  75. # to the directory and share definition to be able to upload the drivers.
  76. # For more information on this, please see the Printing Support Section of
  77. # /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf
  78. #
  79. # A special case is using the CUPS Windows Postscript driver, which allows
  80. # all features available via CUPS on the client, by publishing the ppd file
  81. # and the cups driver by using the 'cupsaddsmb' tool. This requires the
  82. # installation of the CUPS driver (http://www.cups.org/windows.php)
  83. # on the server, but doesn't require you to use Windows at all :-).
  84. #[print$]
  85. # path = /var/lib/samba/printers
  86. #; browseable = yes
  87. # write list = @adm root
  88. # guest ok = yes
  89. # inherit permissions = yes
  90. # Settings suitable for Winbind:
  91. # write list = @"Domain Admins" root
  92. # force group = +@"Domain Admins"
  93. # A useful application of samba is to make a PDF-generation service
  94. # To streamline this, install windows postscript drivers (preferably colour)
  95. # on the samba server, so that clients can automatically install them.
  96. # Note that this only works if 'printing' is *not* set to 'cups'
  97. #[pdf-gen]
  98. # path = /var/tmp
  99. #; guest ok = no
  100. # printable = Yes
  101. # comment = PDF Generator (only valid users)
  102. # printing = bsd
  103. # #prinroott command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
  104. # print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" " %m" "%I" "%J" &
  105. # lpq command = /bin/true
  106. ; browseable = yes
  107. ; browseable = yes
  108. ; browseable = yes
  109. ; browseable = yes
  110. ; browseable = yes
  111. ; browseable = yes
  112. ; browseable = yes
  113. #[Drivers]
  114. # path = /mnt/160GB/Drivers
  115. # comment = shara
  116. #; browseable = yes
  117. # guest ok = yes
  118. # writeable = no
  119. #[soft]
  120. # path = /mnt/160GB/soft
  121. # comment = shara
  122. #; browseable = yes
  123. # guest ok = yes
  124. # writeable = no
  125. #[DRP]
  126. # path = /media/cdrom0
  127. # comment = cdrom-virt
  128. # browseable = yes
  129.  
  130. Неверное имя пользователя
  131. # guest ok = yes
  132. # writable = no
  133. root@maknas:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement