Fórum Ubuntu CZ/SK
Ubuntu pro osobní počítače => Internet a sítě => Téma založeno: nettezzaumana 05 Ledna 2009, 15:47:36
-
fujtajbl vespolek ..
tak o5 placu zde na foru .. jiz dlouho jsem nenastavoval sambu (vlastne sambu nekolik let nepouzivam) ale ted jsem ji potreboval nastavit.
mam divny problem, doplnil jsem do smb.conf volbu interfaces a deklaroval rozhrani, ale sambi sdileni je i presto dostupne i pres ostatni rozhrani .. vubec nechapu proc ..
diky a cures ;) by ntz
# cat /etc/samba/smb.conf | sed '/^#/d;/^$/d'
[global]
workgroup = DMTSIT
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
interfaces = vmnet8
[sun]
comment = Sun Software
inherit acls = Yes
path = /mnt/data/Sun/
read only = Yes
# ip a s vmnet8
3: vmnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:50:56:c0:00:08 brd ff:ff:ff:ff:ff:ff
inet 192.168.185.1/24 brd 192.168.185.255 scope global vmnet8
-
vraž do toho ještě řádek
bind interfaces only = Yes
-
neodpovím UTFG ;D
.. dik. v tomto pripade teda popravde nevim jak bych to googlil pac uz jsem to googlil ale tvoje opsna nize me teda netrkla, ac jsem par smb.conf nasel ..
dokonce ani RTFM by mi nepomohlo, pac nejsem uplne hovado (jen poradne) a cetl jsem i manual a muzu teda rict, ze u popisu a prikladu k volbe interfaces by tam teda inzenyri z NDR mohli dat poznamku, ze to zavisi na veci nize ..
ale vraž do toho ještě řádek
bind interfaces only = Yes
.. uff. funguje. dik podruhe ..
-
Mno vtípek jsem smazal pozdě ;)
Jednou jsem to už řešil a tenkrát jsem nadával jak špaček ;D
Tak jsem si šel sednout před barák na cigárko s tabletem, tam skvělou knížku Samba 3 by Example Practical Excercises (v pdf se opravdu lépe hledá než v papíru, ke stažení na rootu) a něco jsem si přečetl.
Prostě rád vím jak věci kolem počítačů fungují ;)
-
JFYI :: sambu jsem vzdy nastavoval na debianu a mam dokonce ulozene nejake sambi konfiguraky, ktere kdyz potrebuju tak recykluju, ale v tomto pripade jsem prvne v zivote pouzil defaultni susi smb.conf a proste me to netrklo, ac jsem s tim stravil 20 minut, `man smb.conf` jsem cetl a neco i googlil ..
interfaces (G)
This option allows you to override the default network interfaces list that Samba will use for browsing, name registration and other NetBIOS over TCP/IP (NBT)
traffic. By default Samba will query the kernel for the list of all active interfaces and use any interfaces except 127.0.0.1 that are broadcast capable.
The option takes a list of interface strings. Each string can be in any of the following forms:
· a network interface name (such as eth0). This may include shell-like wildcards so eth* will match any interface starting with the substring "eth"
· an IP address. In this case the netmask is determined from the list of interfaces obtained from the kernel
· an IP/mask pair.
· a broadcast/mask pair.
The "mask" parameters can either be a bit length (such as 24 for a C class network) or a full netmask in dotted decimal form.
The "IP" parameters above can either be a full dotted decimal IP address or a hostname which will be looked up via the OS´s normal hostname resolution mechanisms.
By default Samba enables all active interfaces that are broadcast capable except the loopback adaptor (IP address 127.0.0.1).
The example below configures three network interfaces corresponding to the eth0 device and IP addresses 192.168.2.10 and 192.168.3.10. The netmasks of the latter
two interfaces would be set to 255.255.255.0.
Default: interfaces =
Example: interfaces = eth0 192.168.2.10/24 192.168.3.10/255.255.255.0