Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2005-11-09 19:28:33

  willy - Użytkownik

willy
Użytkownik
Zarejestrowany: 2005-03-03

wins samba itd

Kod:

----internet(provider)--------eth0-[server]--eth1------switch-----siec lokalna-----

eth0 jest 192.168.22.124 od dostawcy na mac
eth1 jest 192.168.2.1
komp 1 192.168.2.2
komp 2 192.168.2.3
komp 3 192.168.2.4 moj

Na serverze zainstalowalem sambe
i doknalem tylko zmian odnoscie

Kod:

workgroup = DOM
wins support = yes
hosts allow = 192.168.2.1 192.168.2.2 192.168.2.3 192.168.2.4

pozniej a na windach dodalem WINS i ustawilem grupe robocza DOM i smiga otoczenie


u siebie zainstalowalem sambe i wpisalem

Kod:

workgroup = DOM
wins support = no
wins server = 192.168.2.1

dopisalem do mego ip

Kod:

gateway 192.168.2.1

no ale cos nie moge sie polaczys i nie mam otoczenia sieciowego

jakie wpisy trzeba pozmieniac
prosze o pomoc

POZDRAWIAM

Offline

 

#2  2005-11-09 21:25:40

  willy - Użytkownik

willy
Użytkownik
Zarejestrowany: 2005-03-03

Re: wins samba itd

Dodam jeszcze jedna rzecz
Jak dziala tylko server i trzy kompy pod windowzem to wszystko jest OK-tzn otoczenie sieciowe jest widoczne.
Jak tylko wlaczam linuxa na swoim kompie to jest kicha. Chlopaki nie widza sieci tylko mojego linuxa i brak jest otoczenia sieciowego.


POZDRAWIAM

Offline

 

#3  2005-11-10 10:06:13

  BiExi - matka przelozona

BiExi
matka przelozona
Skąd: Gorlice
Zarejestrowany: 2004-04-16
Serwis

Re: wins samba itd

najprawfdopodoniej masz zae skonfigurowana sambe
http://dug.net.pl/faq/index.php?kat=3&id=55

Offline

 

#4  2005-11-10 10:19:57

  maverick44 - Moderator

maverick44
Moderator
Skąd: Częstochowa
Zarejestrowany: 2005-08-30
Serwis

Re: wins samba itd

Jezli chodzi o Twojego  kompa w sieci z samba to w pliku /etc/samba/smb.conf ustaw

Kod:

 os level = 20

dzieki temu siec bedzie dzialala normalnie tzn jak wlaczysz swojego kompa z linuksem to nie bedzie sam w sieci :) inne tez sie pojawia ;)


Maverick
Gentoo GCC 4.1.1 KDE 3.5.6 Kernel 2.6.17
AMD Sempron 2400+ 512 MB RAM Seagate 160GB
Linux user number: #415965
http://www.gohome.org/debian_logo_06.gif http://maluch.pcz.pl/~maverick/images/logo_gentoo.png

Offline

 

#5  2005-11-10 23:08:32

  pum - Użytkownik

pum
Użytkownik
Zarejestrowany: 2005-09-30

Re: wins samba itd


Kod:

gateway 192.168.2.1

no ale cos nie moge sie polaczys i nie mam otoczenia sieciowego

nie rozumiem w jakim celu dopisales ta linijkedo samby i co ona ma robic???

napisz na jakich interfejsach ma sie rozglaszac samba:
interfaces = 192.168.2.1/24 (chyba ze masz inna maske, lub eth1) 127.0.0.1/8
i tylko na tych :)
bind interfaces only = yes

pewnie otoczenia sieciowego prowaidera nie widzisz wiec po co samba sie tam ma rozglaszac. Wtedy nawet serwer wins nie bedzie ci potrzebny
Na serwerze ustaw
os level = 90
local master = yes

a u siebie
os level = 20 (tak jak radzi maverick44)
local master = no (zeby ta samba nie byla glowna przegladarka)

hosts allow oczywiscie zostaje dla bezpieczenstwa ;) ale wystarczy ze napiszesz tam adres sieci 192.168.2.

Pozdrawiam!!

Offline

 

#6  2005-11-11 01:20:44

  willy - Użytkownik

willy
Użytkownik
Zarejestrowany: 2005-03-03

Re: wins samba itd

Dzieki za zainteresowanie
Ciagne dalej getway 192.168.2.1 dopisalem do pliku /etc/network/interface

wszystko wzorowalwm sie na artyle
http://forum.dug.net.pl/viewtopic.php?t=769&highlight=wins

teraz przedstawie pliki smb.conf
pierwszy to z serwera

Kod:


[global]

  netbios name = server
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
 
;  printing = bsd
;  printcap name = /etc/printcap
;  load printers = yes
;  guest account = nobody
;   invalid users = root
 
   security = user
   dns proxy = no
 
   workgroup = DOM
     
   server string = %h server (Samba %v)
 
   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
 
;  password level = 15
;  username level = 10
 
  encrypt passwords = true
 
  wins support = yes
 
 
; client code page = 852
 
  dos charset = CP852
  unix charset = ISO8859-2
 
;  name resolve order = Imhosts host wins bcast
 
;  dns proxy = no
 
;  preserve case = yes
;  short preserve case = yes
 
   unix password sync = false
 
   passwd program = /usr/bin/passwd %u
   passwd chat = *Newspassword:* %nn *Re-entersnewspassword:* %n/n
;  *Passwordschanged.*.
 
   max log size = 50
   hosts allow = 192.168.2.1 192.168.2.2 192.168.2.3 192.168.2.4 
   
   interfaces = 192.168.2.1/24
   bind interfaces only = yes 
   os level = 90
   local master = yes 
   
;[homes]
 
;  comment = Home Directories
 
;  browseable = no
 
;  read only = yes
 
;  create mask = 0700
;  directory mask = 0700 

a teraz drugi czyli moj

Kod:

[global]

  netbios name = klient
; message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
 
;  printing = bsd
;  printcap name = /etc/printcap
;  load printers = yes
;  guest account = nobody
;   invalid users = root
 
   security = user
   dns proxy = no
 
   workgroup = DOM
     
   server string = %h server (Samba %v)
 
   socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
 
;  password level = 15
;  username level = 10
 
  encrypt passwords = true
 
  wins support = no
  wins server = 192.168.2.1
 
; client code page = 852
 
  dos charset = CP852
  unix charset = ISO8859-2
 
;  name resolve order = Imhosts host wins bcast
 
;  dns proxy = no
 
;  preserve case = yes
;  short preserve case = yes
 
   unix password sync = false
 
   passwd program = /usr/bin/passwd %u
   passwd chat = *Newspassword:* %nn *Re-entersnewspassword:* %n/n
;  *Passwordschanged.*.
 
   max log size = 50
   hosts allow = 192.168.2.1 192.168.2.2 192.168.2.3 192.168.2.4
   os level = 20
   local master = no
;[homes]
 
;  comment = Home Directories
 
;  browseable = no
 
;  read only = yes
 
;  create mask = 0700
;  directory mask = 0700
 

No i dalej  jest lipa
Nie widze grupy roboczej ani otoczenia sieciowego


POZDRAWIAM

Offline

 

#7  2005-11-11 16:19:12

  pum - Użytkownik

pum
Użytkownik
Zarejestrowany: 2005-09-30

Re: wins samba itd

OK po tych opcjach


dos charset = CP852
unix charset = ISO8859-2

zakladam ze masz sambe w wersji 3. wiec tutaj masz najprostszy conf dla tej wersji ktory nie zawiera niektorych opcji ustawianych przez sambe doyslnie bo ten twoj jest jakos malo czytelny(poczytasz mana to bedziesz widziaj co i jak ustawia na default bo to tam jest podane)
Na poczatek proponuje Ci na przejscie na zabezpieczenia na poziomie zasobow a nie uzytkownika, dodatkowo dopuki nie bedzie dzialalo pomin serwer wins (ustawisz to jak bedzie juz OK) mysle ze chodzi Ci tylko o przegladanie wlasnego locala a nie locala prowaidera wiec wins nie jest tu konieczny i rozglaszamy go dla bezpieczenstwa tylko w twoim localu i tylko z niego wpuszczamy kompy (zakladam macke klasy C 255.255.255.0)
A to conf:

Kod:

# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
   workgroup = DOM
    netbios name = server
    deadtime = 10
    
# server string is the equivalent of the NT Description field
   server string = Samba Server

# Security mode. Defines in which mode Samba will operate. 
#Possible values are share, user, server, domain and ads. Most 
#people will want user level security. See the 
#Samba-HOWTO-Collection for details.
   security = share

# This option is important for security. It allows you to #restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks #and
# the "loopback" interface. For more examples of the 
#syntax see the smb.conf man page
   hosts allow = 192.168.2.0/24 127.

# Uncomment this if you want a guest account, you must add this #to /etc/passwd
# otherwise the user "nobody" is used
;  guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m
    syslog = 0
    pid directory = /var/run
    lock directory = /var/lock/samba

# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Use password server option only with security = server
# The argument list may include:
#   password server = My_PDC_Name [My_BDC_Name]
#[My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server = *
;   password server = <NT-Server-Name>

# Use the realm option only with security = ads
# Specifies the Active Directory realm the host is part of
;   realm = MY_REALM

# Backend to store user information in. New installations #should 
# use either tdbsam or ldapsam. smbpasswd is available for #backwards 
# compatibility. tdbsam requires no further configuration.
   passdb backend = tdbsam
   encrypt passwords = yes 

#dla samby 2.
;   smb passwd file = /usr/local/samba/private/smbpasswd
;   encrypt passwords = yes
        
# 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.
# Note: Consider carefully the location in the configuration #file of
# this line.  The included file is read at that point.
;   include = /usr/local/samba/lib/smb.conf.%m

# Most people will find that this option gives better #performance.
# Se    e the chapter 'Samba performance issues' in the Samba #HOWTO Collection
# and the manual pages for details.
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY 

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list 
#them here. See the man page for details.
   interfaces = 192.168.2.1/24 127.0.0.1/8
   bind interfaces only = yes 

# Browser Control Options:
# set local master to no if you don't want Samba to become a #master
# browser on your network. Otherwise the normal election rules #apply
   local master = yes

# OS Level determines the precedence of this server in master #browser
# elections. The default value should be reasonable
   os level = 95

# Domain Master specifies Samba to be the Domain Master #Browser. This
# allows Samba to collate browse lists between subnets. Don't #use this
# if you already have a Windows NT domain controller doing this #job
;   domain master = yes 

# Preferred Master causes Samba to force a local browser #election on 
#startup and gives it a slightly higher chance of winning 
#the election
;   preferred master = yes

# Enable this if you want Samba to be a domain logon server 
#for Windows95 workstations. 
;   domain logons = yes

# if you enable domain logons then you may want a per-machine 
#or per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script = %m.bat
# run a specific logon batch file per username
;   logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#%L substitutes for this servers netbios name, %U is #username
#You must uncomment the [Profiles] share below
;   logon path = \%LProfiles%U

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable
#it's 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

# WINS Proxy - Tells Samba to answer name resolution queries #on behalf of a non WINS capable client, for this to work there #must be
# at least one WINS Server on the network. The default is NO.
;   wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve 
#NetBIOS names via DNS nslookups. The default is NO.
   dns proxy = no 

#Enabling internationalization
#SAMBA 2.
;    client code page = 852
;    character set = ISO8859-2
    
#SAMBA 3.
    unix charset = ISO8859-2
    dos charset = CP852 

To jest dla serwera dla siebie popraw tylko
local master = no
a os level odkomentuj(;)
Oczywiscie sciezki do plikow musisz sobie ustawic takie jakich chcesz uzywac lokalizacja pliku chasel jest standardowa jak masz inna to zmien. Zanim wystartujesz sprawdz wszystko testparm, no i oczywiscie udostepnij jakies katalogi ;) To jest przykladowy plik udostepniany w zrodlach z malymi modyfikacjami.

Pozdrawiam!!!

Offline

 

#8  2005-11-11 19:48:55

  willy - Użytkownik

willy
Użytkownik
Zarejestrowany: 2005-03-03

Re: wins samba itd

Dzieki  za zainteresowanie i podpowiedzi - wszystko jest juz ok.
Teraz jest tak jak powinno widze wszystkich w otoczeniu
Najwiekszy chyba byl problem z tym local master


POZDRAWIAM

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)