LINUX.ORG.RU
ФорумAdmin

самба - вопрос по броузингу сетей


0

0

Я понимаю, что наверно этот вопрос уже поднимался, но все же: самба смотрит в две подсетки. 10.1.0.0 и 10.2.0.0 Там организовано 2 раб. группы. group1 & group2. Хочется, чтобы в обеих подсетках в сетевом окружении были обе рабочие группы. что прописать в smb.conf? я так понимаю, что нужно указать параметр remout announce 10.1.255.255/group1 10.2.255.255/group2 ? но не работает:((( может еще что-то нужно?

вот мои остальные параметры: client code page = 866 workgroup = group1 server string = Samba interfaces = 10.1.0.1/16 10.2.0.1/16 security = SHARE debug level = 2 log file = /var/log/samba/%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 load printers = No character set = KOI8-R os level = 67 preferred master = Yes domain master = Yes wins support = Yes hosts allow = 10. printing = lprng

anonymous

Поставь прогу komba2 - это удовная прога под графику для сканирования компов в сетке(там задается диапазон ип -любой)подключения откючения дисков--- она использует сабму (тоесть без самбы не пашет)

ns
()

sdfdfgdsfg
sdfgsdfgsdf
sdfgsdfgdsgsdfg
sdfgsdfg
sdfgsdfg

anonymous
()

Привожу полный работающий конфиг с роутера. ------------------------------------------- # Global parameters [global] client code page = 866 code page directory = /usr/local/samba/lib/codepages workgroup = NET netbios name = SERVER server string = Samba 2.2.0 on the Debian Linux interfaces = eth0 192.168.1.1/255.255.255.0 192.168.2.1/255.255.255.0 bind interfaces only = No security = USER encrypt passwords = Yes update encrypted = No allow trusted domains = Yes min passwd length = 5 map to guest = Bad User null passwords = No smb passwd file = /usr/local/samba/private/smbpasswd passwd program = /bin/passwd passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No password level = 0 username level = 0 unix password sync = No restrict anonymous = No lanman auth = Yes use rhosts = No log level = 0 syslog = 1 syslog only = No log file = max log size = 5000 timestamp logs = Yes debug hires timestamp = No debug pid = No debug uid = No protocol = NT1 min protocol = CORE read bmpx = No read raw = Yes write raw = Yes nt smb support = Yes nt pipe support = Yes nt acl support = Yes announce version = 4.5 announce as = NT max mux = 50 max xmit = 65535 name resolve order = lmhosts host wins bcast max packet = 65535 max ttl = 259200 max wins ttl = 21600 min wins ttl = 21600 time server = Yes change notify timeout = 60 deadtime = 0 getwd cache = Yes keepalive = 300 lpq cache time = 10 max smbd processes = 0 max disk size = 0 max open files = 10000 read size = 16384 socket options = TCP_NODELAY stat cache size = 50 total print jobs = 0 load printers = No printcap name = /etc/printcap show add printer wizard = Yes strip dot = No character set = KOI8-R mangled stack = 50 stat cache = Yes machine password timeout = 604800 domain logons = No os level = 128 lm announce = Auto lm interval = 60 preferred master = True local master = Yes domain master = True browse list = Yes dns proxy = Yes wins proxy = No wins support = Yes kernel oplocks = Yes oplock break wait time = 0 lock dir = /usr/local/samba/var/locks remote announce = 192.168.1.255/NET 192.168.2.255/NET remote browse sync = 192.168.1.255 192.168.2.255 time offset = 0 unix realname = Yes NIS homedir = No hide local users = No host msdfs = No template homedir = /home/%D/%U template shell = /bin/false winbind separator = \ winbind cache time = 15 alternate permissions = No guest account = nobody read only = Yes create mask = 0744 force create mode = 00 security mask = -1 force security mode = -1 directory mask = 0755 force directory mode = 00 directory security mask = -1 force directory security mode = -1 inherit permissions = No guest only = No guest ok = No only user = No hosts allow = hosts deny = status = Yes max connections = 0 min print space = 0 strict sync = No sync always = No write cache size = 0 max print jobs = 1000 printable = No postscript = No printing = bsd print command = lpr -r -P%p %s lpq command = lpq -P%p lprm command = lprm -P%p %j printer driver file = /usr/local/samba/lib/printers.def default case = lower case sensitive = No preserve case = Yes short preserve case = Yes mangle case = No mangling char = ~ hide dot files = Yes delete veto files = No map system = No map hidden = No map archive = Yes mangled names = Yes browseable = Yes blocking locks = Yes fake oplocks = No locking = Yes oplocks = Yes level2 oplocks = Yes oplock contention limit = 2 posix locking = Yes strict locking = No share modes = Yes preexec close = No root preexec close = No available = Yes fstype = NTFS set directory = No wide links = Yes follow symlinks = Yes delete readonly = No dos filemode = No dos filetimes = No dos filetime resolution = No fake directory create times = No msdfs root = No

[homes] comment = Home Directories read only = No browseable = No

[soft] path = /home/samba/soft guest ok = Yes

anonymous
()

Привожу полный работающий конфиг с роутера.
-------------------------------------------
# Global parameters
[global]
	client code page = 866
	code page directory = /usr/local/samba/lib/codepages
	workgroup = NET
	netbios name = SERVER
	server string = Samba 2.2.0 on the Debian Linux
	interfaces = eth0 192.168.1.1/255.255.255.0 192.168.2.1/255.255.255.0
	bind interfaces only = No
	security = USER
	encrypt passwords = Yes
	update encrypted = No
	allow trusted domains = Yes
	min passwd length = 5
	map to guest = Bad User
	null passwords = No
	smb passwd file = /usr/local/samba/private/smbpasswd
	passwd program = /bin/passwd
	passwd chat = *new*password* %n\n *new*password* %n\n *changed*
	passwd chat debug = No
	password level = 0
	username level = 0
	unix password sync = No
	restrict anonymous = No
	lanman auth = Yes
	use rhosts = No
	log level = 0
	syslog = 1
	syslog only = No
	log file = 
	max log size = 5000
	timestamp logs = Yes
	debug hires timestamp = No
	debug pid = No
	debug uid = No
	protocol = NT1
	min protocol = CORE
	read bmpx = No
	read raw = Yes
	write raw = Yes
	nt smb support = Yes
	nt pipe support = Yes
	nt acl support = Yes
	announce version = 4.5
	announce as = NT
	max mux = 50
	max xmit = 65535
	name resolve order = lmhosts host wins bcast
	max packet = 65535
	max ttl = 259200
	max wins ttl = 21600
	min wins ttl = 21600
	time server = Yes
	change notify timeout = 60
	deadtime = 0
	getwd cache = Yes
	keepalive = 300
	lpq cache time = 10
	max smbd processes = 0
	max disk size = 0
	max open files = 10000
	read size = 16384
	socket options = TCP_NODELAY
	stat cache size = 50
	total print jobs = 0
	load printers = No
	printcap name = /etc/printcap
	show add printer wizard = Yes
	strip dot = No
	character set = KOI8-R
	mangled stack = 50
	stat cache = Yes
	machine password timeout = 604800
	domain logons = No
	os level = 128
	lm announce = Auto
	lm interval = 60
	preferred master = True
	local master = Yes
	domain master = True
	browse list = Yes
	dns proxy = Yes
	wins proxy = No
	wins support = Yes
	kernel oplocks = Yes
	oplock break wait time = 0
	lock dir = /usr/local/samba/var/locks
	remote announce = 192.168.1.255/NET 192.168.2.255/NET 	remote browse sync = 192.168.1.255 192.168.2.255 
	time offset = 0
	unix realname = Yes
	NIS homedir = No
	hide local users = No
	host msdfs = No
	template homedir = /home/%D/%U
	template shell = /bin/false
	winbind separator = \
	winbind cache time = 15
	alternate permissions = No
	guest account = nobody
	read only = Yes
	create mask = 0744
	force create mode = 00
	security mask = -1
	force security mode = -1
	directory mask = 0755
	force directory mode = 00
	directory security mask = -1
	force directory security mode = -1
	inherit permissions = No
	guest only = No
	guest ok = No
	only user = No
	hosts allow = 
	hosts deny = 
	status = Yes
	max connections = 0
	min print space = 0
	strict sync = No
	sync always = No
	write cache size = 0
	max print jobs = 1000
	printable = No
	postscript = No
	printing = bsd
	print command = lpr -r -P%p %s
	lpq command = lpq -P%p
	lprm command = lprm -P%p %j
	printer driver file = /usr/local/samba/lib/printers.def
	default case = lower
	case sensitive = No
	preserve case = Yes
	short preserve case = Yes
	mangle case = No
	mangling char = ~
	hide dot files = Yes
	delete veto files = No
	map system = No
	map hidden = No
	map archive = Yes
	mangled names = Yes
	browseable = Yes
	blocking locks = Yes
	fake oplocks = No
	locking = Yes
	oplocks = Yes
	level2 oplocks = Yes
	oplock contention limit = 2
	posix locking = Yes
	strict locking = No
	share modes = Yes
	preexec close = No
	root preexec close = No
	available = Yes
	fstype = NTFS
	set directory = No
	wide links = Yes
	follow symlinks = Yes
	delete readonly = No
	dos filemode = No
	dos filetimes = No
	dos filetime resolution = No
	fake directory create times = No
	msdfs root = No

[homes]
	comment = Home Directories
	read only = No
	browseable = No

[soft]
	path = /home/samba/soft
	guest ok = Yes

anonymous
()

у меня ситуация примерно похожая

чтоб обе группы друг друга видели - надо (по ms) чтоб
1) у обеих групп был domain browser(именно он и собирает бровзинг групп по сетям от master browserov)
2) в первой сети был master browser для второй группы , и во второй сети был master brovser для первой группы (тоесть в сетях должны быть копмы из других групп)

вроде так - и у меня такая ситуация

одна сеть (большая) - с доменон
вторая сеть (маленькая) - с линукс роутером(domain brovser) и отдельна сеть w2000/w98

в большой сети много различных групп , в маленькой - одна группа

так вот
из маленьеой сети при бровзинге видно всех и вся , из большой сети - группу мелкой сети не видно - но если найти какойнить комп из мелкой сети - то ее группа сразу проявляеться и все нормально видна

вот так вот у меня работает :)
если чо icq:79296695

ae
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.