SERVEUR
eth0 Lien encap:Ethernet HWaddr 00:01:29:4E:62:3F
inet adr:192.168.1.1 Bcast:192.168.1.255 Masque:255.255.255.0
adr inet6: fe80::201:29ff:fe4e:623f/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1253096 errors:0 dropped:0 overruns:0 frame:0
TX packets:150237 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:95319218 (90.9 Mi
TX bytes:110431211 (105.3 Mi
Interruption:11 Adresse de base:0x6000
eth1 Lien encap:Ethernet HWaddr 00:40:F4:A8:63:ED
inet adr:81.56.255.123 Bcast:81.56.255.255 Masque:255.255.255.0
adr inet6: fe80::240:f4ff:fea8:63ed/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:749673 errors:0 dropped:0 overruns:0 frame:0
TX packets:1996824 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:377136145 (359.6 Mi
TX bytes:316177329 (301.5 Mi
Interruption:11 Adresse de base:0x2000
eth2 Lien encap:Ethernet HWaddr 00:40:F4:93:4A:E1
inet adr:192.168.0.1 Bcast:192.168.0.255 Masque:255.255.255.0
adr inet6: fe80::240:f4ff:fe93:4ae1/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19287 errors:0 dropped:0 overruns:0 frame:0
TX packets:30211 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
RX bytes:2357092 (2.2 Mi
TX bytes:8950678 (8.5 Mi
Interruption:12 Adresse de base:0x4000
lo Lien encap:Boucle locale
inet adr:127.0.0.1 Masque:255.0.0.0
adr inet6: ::1/128 Scope:Hôte
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:18712 errors:0 dropped:0 overruns:0 frame:0
TX packets:18712 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:0
RX bytes:2016074 (1.9 Mi
TX bytes:2016074 (1.9 Mi
POSTE XP 1
-----------------------------------------------------------------------
Configuration IP de Windows
Carte Ethernet Connexion au réseau local:
Statut du média . . . . . . . . . : Média déconnecté
Carte Ethernet Connexion au réseau local 2:
Suffixe DNS propre à la connexion : xtremity.org
Adresse IP. . . . . . . . . . . . : 192.168.1.2
Masque de sous-réseau . . . . . . : 255.255.255.0
Passerelle par défaut . . . . . . : 192.168.0.1
192.168.1.1
POSTE 2
------------------------------------------------------------------------
Configuration IP de Windows
Carte Ethernet Connexion au réseau local:
Statut du média . . . . . . . . . : Média déconnecté
Carte Ethernet Connexion au réseau local 2:
Suffixe DNS propre à la connexion : xtremity.org
Adresse IP. . . . . . . . . . . . : 192.168.0.2
Masque de sous-réseau . . . . . . : 255.255.255.0
Passerelle par défaut . . . . . . : 192.168.0.1
192.168.1.1
smb.conf
------------------------------------------------------------------------
[global]
workgroup = xtremity
server string = %h server (Samba %v)
wins support = yes
dns proxy = yes
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 1
panic action = /usr/share/samba/panic-action %d
security = user
encrypt passwords = true
passdb backend = tdbsam guest
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
interfaces = eth0, eth2, lo
hosts allow = 192. 127.
socket options = TCP_NODELAY
;linpopup-removed message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
domain master = yes
local master = yes
domain logons = yes
logon drive = H:
os level = 33
preferred master = yes
[homes]
comment = Home Directories
browseable = no
writable = no
create mask = 0700
directory mask = 0700
[netlogon]
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = yes
writable = no
share modes = no
[profiles]
path = /home/%u
writeable = yes
create mask = 0600
directory mask = 0700
[printers]
comment = All Printers
browseable = no
path = /tmp
printable = yes
public = no
writable = no
create mode = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no
; write list = root, @ntadmin
[cdrom]
comment = Samba server's CD-ROM
writable = no
locking = no
path = /cdrom
public = yes
preexec = /bin/mount /cdrom
postexec = /bin/umount /cdrom
[opt]
comment = rep opt
writeable = no
path = /opt
public = yes
[transit]
comment = rep write transit
writeable = yes
path = /opt/transit
public = yes
[foulela]
comment = rep foulela
writeable = no
path = /mnt/foulela
public = yes
[mp3]
comment = rep mp3
writeable = no
path = /mnt/mp3
public = yes
[stockage1]
comment = rep stockage1
writeable = no
path = /mnt/stockage1
public = yes
[stockage3]
comment = rep stockage3
writeable = no
path = /mnt/stockage3
public = yes
[usr]
comment = rep /mnt/usr
writeable = no
path = /mnt/usr
public = yes
[Incoming]
comment = Rep Incoming de aMule
writeable = no
path = /home/warren/.aMule/Incoming
public = yes
les tests :
------------------------------------------------------------------------
warren:~# smbclient -L \\192.168.1.2 -N
Domain=[KRAN] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_OK
session request to 192.168.1.2 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[KRAN] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------
warren:~# smbclient -L \\192.168.0.2 -N
Anonymous login successful
Domain=[XTREMITY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
session request to 192.168.0.2 failed (Called name not present)
session request to 192 failed (Called name not present)
Anonymous login successful
Domain=[XTREMITY] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Server Comment
--------- -------
Workgroup Master
--------- -------