Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Stas Larin                           2:5020/400     15 Feb 2001  11:39:10
 To : All
 Subject : Re: Подскажите smb.conf!
 -------------------------------------------------------------------------------- 
 
 Sergei Kasaurov wrote:
 
 > Ситуация такая. Есть локалка с виндовозами. В ней один сервер на WinNT4,
 > который является PDC, а также на нем висит DHCP и WINS.
 >
 > Ставлю в сетку RedHat Linux 6.2. И хочу настроить в нем Самбу, причем линукс
 > дололжен быть _клиентом_ энтишного DHCP и WINS.
 >
 > До сих пор получается лишь так, что персоналки с Вин видят линух лишь по
 > сетевому адресу (что _очень_ неудобно, т.к. он в общем случае динамический).
 > А по нетбиос-имени - нет :(((
 >
 > Подскажите, как настроить smb.conf (секцию general), чтобы все в линухе
 > рулило. А может где еще крутить надо (в сетевых настройках например)?
 >
 > Заранее огромное спасибо за советы и поддержку.
 >
 > --
 >
 > С уважением,
 > Сергей Касауров
 
 /etc/smb.conf
 
 [global]
     max open Files = 500000
     read size = 65536
     workgroup = sd
     server string = Samba %v on %h
     character set = KOI8-R
     client code page = 866
     hosts allow = 192.168.0.
     printcap name = /etc/printcap
     load printers = yes
 ;  guest account = pcguest
     log file = /var/log/samba/log.%m
     max log size = 500
     security = server
     password server = nameserver
     shared mem size = 5242880
     ole locking compatibility = yes
     locking = no
     share modes = yes
     oplocks = yes
     password level = 3
     dont descend = /usr, /dev, /var
 ;  username level = 8
     encrypt passwords = yes
 ;  smb passwd file = /etc/smbpasswd
     unix password sync = Yes
     passwd program = /usr/bin/passwd %u
 ;  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
 *passwd:*all*authentication*tokens*updated*successfully*
 ;  username map = /etc/smbusers
 ;   include = /etc/smb.conf.%m
     socket options = TCP_NODELAY
 ;   interfaces = 192.168.12.2/24 192.168.13.2/24
 ;   remote browse sync = 192.168.3.25 192.168.5.255
 ;   remote announce = 192.168.1.255 192.168.2.44
     local master = no
 ;   domain controller = <NT-Domain-Controller-SMBName>
 ;   domain logons = yes
 ;   logon script = %m.bat
 ;   logon script = %U.bat
 ;   logon path = \\%L\Profiles\%U
 ;   wins server = w.x.y.z
 ;   wins proxy = yes
 ;    dns proxy = no
     netbios name = youname
     netbios aliases = youname
     map to guest = never
     null passwords = yes
     os level = 0
     preferred master = no
     domain master = yes
     wins support = no
     name resolve order = host, bcast
     add user script = /usr/sbin/adduser -s /bin/false -g popusers -c "smb
 account %u" %u
     delete user script = /usr/sbin/deluser %u
     dead time = 15
     debug level = 0
     domain logons = no
 ;  preserve case = no
 ;  short preserve case = no
 ;  default case = lower
 ;  case sensitive = no
 
 [homes]
     comment = Home Directories
     path = %H
     username = %u
     browseable = no
     read only = 0
     writable = no
     available = yes
     public = no
     only user = no
 
 [cdrom]
     comment = CD-ROM drive
     path = /mnt/cdrom
     username = %u
     create mask = 0755
 
 [netlogon]
     comment = Network Logon Service
     path = /home/netlogon
     available = yes
     guest ok = yes
     writable = no
     share modes = no
 
 ;[Profiles]
 ;    path = /home/profiles
 ;    browseable = no
 ;    guest ok = yes
 [printers]
     comment = All Printers
     path = /var/spool/samba
     browseable = no
 # Set public = yes to allow user 'guest account' to print
     public = no
     writable = no
     printable = yes
     available = no
 
 [1c]
     path = /home/1c
     writable = yes
     browseable = yes
     user = @smbusers
     force group = smbusers
     read list = @smbusers
     write list = @smbusers
     comment = 1c Data Base
     delete readonly = yes
     create mask = 0777
 
 [Test]
     path = /mnt/hda6/Test
     writable = yes
     browseable = yes
     user = @smbusers
     force group = smbusers
     read list = @smbusers
     write list = @smbusers
     comment = 1c Data Base
     delete readonly = yes
     create mask = 0777
 RH 6.2
 
 --
 ...безалкогольное пиво - первый шаг к резиновой женщине...
 Best regards,
  Stas Larin
 --- ifmail v.2.15dev5
  * Origin: Ttust No One (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Подскажите smb.conf!   Sergei Kasaurov   06 Feb 2001 10:30:33 
 Re: Подскажите smb.conf!   Dmitry Gromov   06 Feb 2001 20:51:23 
 Re: Подскажите smb.conf!   Oleg Nesterov   07 Feb 2001 02:31:47 
 Re: Подскажите smb.conf!   Stas Larin   15 Feb 2001 11:39:10 
Архивное /ru.linux/26247fb9ec6e.html, оценка 3 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional