Опубликовано 19 апреля, 200620 г. comment_2167271 Не могу настроить браузинг. Поделитесь конфигами или любыми советами... Жалоба
Опубликовано 20 апреля, 200620 г. comment_2169792 QUOTE (bugfix @ Apr 19 2006, 19:39) Не могу настроить браузинг. Поделитесь конфигами или любыми советами... Выложи для начала свой конфиг и скажи, что именно ты хочешь от сервера (кому и какой доступ давать). Жалоба
Опубликовано 20 апреля, 200620 г. Автор comment_2171528 here it is: # # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options most of which # are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentary and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command # "testparm" to check that you have not many any basic syntactic # errors. # #======================= Global Settings ======================= [global] ## Browsing/Identification ### # Change this to the workgroup/NT-domain name your Samba server will part of workgroup = USERS # server string is the equivalent of the NT Description field server string = %h server (Samba %v) # Windows Internet Name Serving Support Section: # WINS Support - Tells the NMBD component of Samba to enable its WINS Server wins support = yes # WINS Server - Tells the NMBD components of Samba to be a WINS Client # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both ; wins server = w.x.y.z # This will prevent nmbd to search for NetBIOS names through DNS. dns proxy = no # What naming service and in what order should we use to resolve host names # to IP addresses ; name resolve order = lmhosts host wins bcast #### Debugging/Accounting #### # This tells Samba to use a separate log file for each machine # that connects log file = /var/log/samba/log.%m # Put a capping on the size of the log files (in Kb). max log size = 1000 # If you want Samba to only log through syslog then set the following # parameter to 'yes'. ; syslog only = no # We want Samba to log a minimum amount of information to syslog. Everything # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log # through syslog you should set the following parameter to something higher. syslog = 0 # Do something sensible when Samba crashes: mail the admin a backtrace panic action = /usr/share/samba/panic-action %d ####### Authentication ####### # "security = user" is always a good idea. This will require a Unix account # in this server for every user accessing the server. See # /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html # in the samba-doc package for details. ; security = user # You may wish to use password encryption. See the section on # 'encrypt passwords' in the smb.conf(5) manpage before enabling. encrypt passwords = true # If you are using encrypted passwords, Samba will need to know what # password database type you are using. passdb backend = tdbsam obey pam restrictions = yes ; guest account = nobody invalid users = root # This boolean parameter controls whether Samba attempts to sync the Unix # password with the SMB password when the encrypted SMB password in the # passdb is changed. ; unix password sync = no # For Unix password sync to work on a Debian GNU/Linux system, the following # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for # sending the correct chat script for the passwd program in Debian Sarge). passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* . # This boolean controls whether PAM will be used for password changes # when requested by an SMB client instead of the program listed in # 'passwd program'. The default is 'no'. ; pam password change = no ######## File sharing ######## # Name mangling options ; preserve case = yes ; short preserve case = yes ############ Misc ############ # Using the following line enables you to customise your configuration # on a per machine basis. The %m gets replaced with the netbios name # of the machine that is connecting ; include = /home/samba/etc/smb.conf.%m # Most people will find that this option gives better performance. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html # for details # You may want to add the following on a Linux system: # SO_RCVBUF=8192 SO_SNDBUF=8192 socket options = TCP_NODELAY # The following parameter is useful only if you have the linpopup package # installed. The samba maintainer and the linpopup maintainer are # working to ease installation and configuration of linpopup and samba. ; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' & # Domain Master specifies Samba to be the Domain Master Browser. If this # machine will be configured as a BDC (a secondary logon server), you # must set this to 'no'; otherwise, the default behavior is recommended. ; domain master = auto # Some defaults for winbind (make sure you're not using the ranges # for something else.) ; idmap uid = 10000-20000 ; idmap gid = 10000-20000 ; template shell = /bin/bash #======================= Share Definitions ======================= [homes] comment = Home Directories browseable = no # By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = no # File creation mask is set to 0700 for security reasons. If you want to # create files with group=rw permissions, set next parameter to 0775. create mask = 0700 # Directory creation mask is set to 0700 for security reasons. If you want to # create dirs. with group=rw permissions, set next parameter to 0775. directory mask = 0700 # Un-comment the following and create the netlogon directory for Domain Logons # (you need to configure Samba to act as a domain controller too.) [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = yes writable = no share modes = no [printers] comment = All Printers browseable = no path = /tmp printable = yes public = no writable = no create mode = 0700 # Windows clients look for this share name as a source of downloadable # printer drivers [print$] comment = Printer Drivers path = /var/lib/samba/printers browseable = yes read only = yes guest ok = no # Uncomment to allow remote administration of Windows print drivers. # Replace 'ntadmin' with the name of the group your admin users are # members of. ; write list = root, @ntadmin # A sample share for sharing your CD-ROM with others. [HoldsworthC] comment = Holdsworth's C writable = no locking = no path = /c public = yes # The next two parameters show how to auto-mount a CD-ROM when the # cdrom share is accesed. For this to work /etc/fstab must contain # an entry like this: # # /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0 # # The CD-ROM gets unmounted automatically after the connection to the # # If you don't want to use auto-mounting/unmounting make sure the CD # is mounted on /cdrom # ; preexec = /bin/mount /cdrom ; postexec = /bin/umount /cdrom Хочется чтобы комп был виден в сетевом окружении и чтобы можно было читать шару HoldsworthC. Жалоба
Опубликовано 20 апреля, 200620 г. comment_2172022 a) прописать WINS b) security=user --- раскомментировать c) убрать все shares кроме последней d) domain master = no e) в последний service добавить valid users = bugfix (в системе должен быть юзер bugfix) f) почитать samba-doc Жалоба
Опубликовано 21 апреля, 200620 г. comment_2174098 QUOTE (bugfix @ Apr 20 2006, 16:58) Хочется чтобы комп был виден в сетевом окружении и чтобы можно было читать шару HoldsworthC. Доступ - только себе по паролю. Ты уж определись, что тебе конкретно надо. Если ты поставишь 'security = user', как тебе тут посоветовали, то доступ будет действительно _только_ тебе (ну и реальным системным аккаунтам). Если хочешь давать анонимусам доступ на чтение некоторых шар (как это обычно делают), прописывай 'security = share' и далее расставляй доступ уже . А по хорошему, все это надо читать в документации. Гугл на smb howto выдает кучу ссылок (и на русском тоже). Вот например: http://www.opennet.ru/docs/HOWTO-RU/SMB-HOWTO.html Или воспользоваться первоисточниками: http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/ http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf Описано вполне понятно и доступно, думаю найдешь ответы сам быстрее, чем даже дождешься их на форуме. Жалоба
Опубликовано 4 июня, 200620 г. Автор comment_2365686 Просидел 3 часа. Ничего не получилось настроить. Потом в почтовом ящике обнаружил такое письмо: To: root@localhost.localdomain Subject: Segfault in Samba From: root <root@localhost.localdomain> The Samba 'panic action' script, /usr/share/samba/panic-action, was called for pid 11171 (/usr/sbin/winbindd). Below is a backtrace for this process generated with gdb, which shows the state of the program at the time the error occurred. If the problem persists, you are encouraged to first install the samba-dbg package which contains the debugging symbols for samba binaries. Then submit the provided information as a bug report to +Debian. For information about the procedure for submitting bug reports , please +see http://www.debian.org/Bugs/Reporting or the reportbug(1) manpage. (no debugging symbols found) Using host libthread_db library "/lib/libthread_db.so.1". (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) Что бы это значило? Что делать? Спасибо! Жалоба
Опубликовано 4 июня, 200620 г. comment_2365757 В третьей самбе утилита testparm проверяет синтаксис smb.conf Попробуй это сделать. Ну, и логи посмотреть. Жалоба
Опубликовано 4 июня, 200620 г. Автор comment_2365824 # testparm /etc/samba/smb.conf Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[public]" Processing section "[vsv]" Loaded services file OK. Что дальше? Жалоба
Опубликовано 4 июня, 200620 г. comment_2365931 Утилита testparm синтаксис проверяет и исправляет самостоятельно. И добавить не мешало бы wins server = 85.118.224.98 wins support=no local master = no unix charset = KOI-8 display charset = KOI-8 Хотя, не знаю кодировку вашей локали dos charset = 886 Других идей пока нет Жалоба
Опубликовано 5 июня, 200620 г. comment_2366860 только кто бы включил самбу на 85.118.224.98 139/tcp closed netbios-ssn 445/tcp closed microsoft-ds Жалоба
Опубликовано 5 июня, 200620 г. Автор comment_2367125 85.118.224.98 - кто это такой? 139/tcp closed netbios-ssn 445/tcp closed microsoft-ds - что это такое ? Жалоба
Опубликовано 5 июня, 200620 г. comment_2367429 QUOTE (iDamir @ Jun 5 2006, 10:00) только кто бы включил самбу на 85.118.224.98 139/tcp closed netbios-ssn 445/tcp closed microsoft-ds А какой в сегменте ВЗ wins? Странная хреновина. На stat.academ.org в разделе Абонент––техническая информация у меня написано wins 85.118.224.98 Это техническая дезинформация? Похоже, так. Изменено 5 июня, 200620 г. пользователем Гость Жалоба
Опубликовано 8 июня, 200620 г. Автор comment_2381640 Коллеги, неужели нет никаких советов по моей проблеме? Жалоба
Не могу настроить браузинг.
Поделитесь конфигами или любыми советами...