[quote=“RedX42”]IOP,
quand tu dit :
non, je bloque en fonction du sous réseau, ça marche pour tous les autres sous réseaux, sauf celui que je viens de rajouter
c’est que ton partage a deja marché?[/quote]
oui exact il marche très bien pour tous les autres…
[quote=“RedX42”]
si “non”, soi plus laxiste autorise tout lesmonde pour les test…[/quote]
c’est ce que j’ai essayé de faire mais il revient tout seul à la config de départ 
[quote=“RedX42”]
les machine son a ajouter seulement en domaine (si tu transforme samba en DC) et faut pas oublier le “&” a la fin 
pour faire simple… t’a un user “toto” sur linux et ben tu lui cré un compte pour samba :
smbpasswd -a toto[/quote]
oui c’est fait ça aussi, ça marche pour mes 300 utilisateurs sauf celui ci qui est sur ce sous réseau et qui se connecte sur mon serveur en VPN (et ce PC n’est pas sur le domaine)
l’accès jusqu’au serveur se fait bien, on voit la requête arriver mais elle est bloqué par le serveur, par contre la messagerie passe bien ( sur le même serveur)
[quote=“RedX42”]
ca donne quoi la commande “testparm” ?[/quote]
ça donne ça :
[DOCS COMMUNS]
comment = Temporary file space
path = /home/DOCS COMMUNS
read only = No
create mask = 0766
directory mask = 0777
guest ok = Yes
hosts allow = 192.168.3., 192.168.8., 10.254.1., 10.0.2., 10.0.3., 10.0.4., 192.168.100., 194.250.183., 192.168.244., 172.16.1., 127.
mon réseau en question c’est le 10.254.1
par exemple le réseau 10.0.4. est aussi en VPN et fonctionne bien !
pour info, j’ai essayé aussi avec un répertoire dans lequel il n’y a pas d’espace et c’est pareil 
[quote=“RedX42”]
et tes partage ils sont en “browsable”?[/quote]
oui
ci joint mon smb.conf :
[color=#408040]
#======================= Global Settings =======================
[global]
name resolve order = wins host bcast
passwd chat = Enter\snew\sUNIX\spassword: %n\n Retype\snew\sUNIX\spassword: %n\n
obey pam restrictions = yes
admin users = root
domain admin users = root, cedric.c
domain admin group = @wheel
show add printer wizard = yes
time server = yes
veto files = /.AppleDouble/.AppleDesktop/Network Trash Folder/TheVolumeSettingsFolder/Desktop/.bash_logout/.bash_profile/.bashrc/.screenrc/.emacs/TheFindByContentFolder/.nautilus-metafile.xml/Maildir/.AppleDB/.kde/
passwd program = /usr/bin/passwd %u
allow hosts = 192.168.3. 192.168.8. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127.
use client driver = yes
dns proxy = no
netbios name = monserveur
printing = cups
logon script = global.bat
min passwd length = 4
remote announce = 192.168.244.252 172.16.1.253 10.254.1.
local master = yes
workgroup = mondomaine
os level = 70
printcap name = cups
security = user
max log size = 1000
log level = 2
log file = /var/log/samba/log.%m
mangled names = no
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
logon drive = H:
domain master = yes
username map = /etc/samba/smbusers
encrypt passwords = yes
logon home = \\monserveur\%u
printer admin = @ntadmin
wins support = true
server string = monserveur
password server = monserveur
unix password sync = yes
logon path = \\monserveur\Profiles\%U
syslog = 0
panic action = /usr/share/samba/panic-action %d
domain logons = yes
[homes]
comment = Home Directories
browseable = no
writeable = yes
create mode = 766
allow hosts = 192.168.3. 192.168.8. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127. 10.254.1.
directory mode = 777
By default, the home directories are exported read-only. Change next
parameter to ‘yes’ if you want to be able to write to them.
File creation mask is set to 0700 for security reasons. If you want to
create files with group=rw permissions, set next parameter to 0775.
create mask = 0700
Directory creation mask is set to 0700 for security reasons. If you want to
create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 700
Un-comment the following and create the netlogon directory for Domain Logons
(you need to configure Samba to act as a domain controller too.)
[netlogon]
create mask = 0644
directory mask = 0755
comment = Network Logon Service
browsable = no
write list = @ntadmin
path = /home/netlogon
allow hosts = 192.168.3. 192.168.8. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127. 10.254.1.
; guest ok = yes
; writable = no
; share modes = no
; admin users = root, cedric.c
[Profiles]
profile acls = yes
browseable = no
writeable = yes
path = /home/profiles
write list = cedric.c
create mask = 0600
directory mask = 0700
allow hosts = 192.168.3. 192.168.8. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127. 10.254.1.
[printers]
comment = All Printers
path = /var/spool/samba
printable = yes
write list = @mondomaine
Windows clients look for this share name as a source of downloadable
printer drivers
[print$]
path = /var/spool/printers
public = yes
; comment = Printer Drivers
; path = /var/lib/samba/printers
; browseable = yes
; read only = yes
; guest ok = no
Uncomment to allow remote administration of Windows print drivers.
Replace ‘ntadmin’ with the name of the group your admin users are
members of.
write list = root, @ntadmin
A sample share for sharing your CD-ROM with others.
;[cdrom]
; comment = Samba server’s CD-ROM
; writable = no
; locking = no
; path = /cdrom
; public = yes
The next two parameters show how to auto-mount a CD-ROM when the
cdrom share is accesed. For this to work /etc/fstab must contain
an entry like this:
/dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
The CD-ROM gets unmounted automatically after the connection to the
If you don’t want to use auto-mounting/unmounting make sure the CD
is mounted on /cdrom
; preexec = /bin/mount /cdrom
; postexec = /bin/umount /cdrom
[DOCS COMMUNS]
create mask = 766
comment = Temporary file space
directory mask = 0777
writeable = yes
public = yes
path = /home/DOCS COMMUNS
allow hosts = 192.168.3. 192.168.8. 10.254.1. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127.
[PARTAGE]
create mode = 766
path = /home/PARTAGE
write list = thierry.b
directory mode = 0777
allow hosts = 192.168.3. 192.168.8. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127. 10.254.1.
[OCS]
writeable = yes
create mode = 0766
path = /home/OCS
allow hosts = 192.168.3. 192.168.8. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127. 10.254.1.
directory mode = 0777
[EGEE]
writeable = yes
path = /home/EGEE
force directory mode = 777
force create mode = 777
comment = Mise a jour client egee
public = yes
create mode = 777
allow hosts = 192.168.3. 192.168.8. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127. 10.254.1.
directory mode = 777
[home]
valid users = cedric.c
writeable = yes
path = /home
allow hosts = 194.250.183.217 194.250.183.228 10.254.1.1
[ghost]
writeable = yes
public = yes
path = /home2/GHOST
allow hosts = 192.168.3. 192.168.8. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127. 10.254.1.
[MARCO]
force create mode = 777
writeable = yes
create mode = 777
public = yes
path = /home/marco
force directory mode = 777
directory mode = 777
[FTP]
writeable = yes
path = /home/DOCS COMMUNS/Dossier Partage/ftp
force directory mode = 777
force create mode = 777
public = yes
create mode = 777
allow hosts = 192.168.3. 192.168.8. 10.0.2. 10.0.3. 10.0.4. 192.168.100. 194.250.183. 192.168.244. 172.16.1. 127. 10.0.0.63 10.254.1
directory mode = 777[/color]