|
|
|
|
Bonjour tous !!
J'ai installer Mandriva 2006 sur un poste de mon réseau comportant en plus 2 postes xpsp2.
Le problème vient des partage. Mon poste linux est visible depuis les favoris réseaux des postes xp, mais il est impossible d'y accéder, alors que ca fonctionne dans l'autre sens.
Ca fait 3 jour que je cherche des solutions sur le web, mais sans résultat.
Je serai donc infiniment reconnaissant à la personne qui pourrat me sortir de ce pétrain.
Merci d'avance.
Salut,
|
Bonjour,
|
Voici mon smb.conf :
#======================= Global Settings =====================================
# [global]
# log file = /var/log/samba/%m.log
# ldap ssl = No
# restrict anonymous = no
# socket options = TCP_NODELAY SO_SNDBUF=8192 SO_RCVBUF=8192
# username map = /etc/samba/user.map
# domain master = no
# map to guest = Bad User
# printcap cache time = 60
# dns proxy = no
# max protocol = NT
# server string = SvrSsamba
# password server = 06290108
# path = /home/manu
# workgroup = PARTAGE
# server signing = Auto
# printcap name = cups
# security = share
# max log size = 50
# hosts allow = 192.168.2. 127
# You can enable VFS recycle bin and on-access virus-scanning on a per
# share basis:
# Uncomment the next 2 lines (make sure you create a .recycle folder in
# the base of the share and ensure all users will have write access to it.
# For virus scanning, install samba-vscan-clamav and ensure the clamd service
# is running
# vfs objects = vscan-clamav recycle
# vscan-clamav: config-file = /etc/samba/vscan-clamav.conf
# Un-comment the following and create the netlogon directory for Domain Logons
# [netlogon]
# comment = Network Logon Service
# path = /var/lib/samba/netlogon
# guest ok = yes
# writable = no
#Uncomment the following 2 lines if you would like your login scripts to
#be created dynamically by ntlogon (check that you have it in the correct
#location (the default of the ntlogon rpm available in contribs)
#root preexec = /usr/bin/ntlogon -u '%u' -g '%g' -o %a -d /var/lib/samba/netlogon/
#root postexec = rm -f '/var/lib/samba/netlogon/%u.bat'
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
#[Profiles]
# path = /var/lib/samba/profiles
# browseable = no
# guest ok = yes
# writable = yes
# This script can be enabled to create profile directories on the fly
# You may want to turn off guest acces if you enable this, as it
# hasn't been thoroughly tested.
#root preexec = PROFILE='/var/lib/samba/profiles/%u'; if [ ! -e $PROFILE ]; # then mkdir -pm700 $PROFILE; chown '%u':'%g' $PROFILE;fi
# If you want read-only profiles, fake permissions so windows clients think
# they have written to the files
# vfs objects = fake_perms
# NOTE: If you have a CUPS print system there is no need to
# specifically define each individual printer.
# You must configure the samba printers with the appropriate Windows
# drivers on your Windows clients or upload the printer driver to the
# server from Windows (NT/2000/XP). On the Samba server no filtering is
# done. If you wish that the server provides the driver and the clients
# send PostScript ("Generic PostScript Printer" under Windows), you have
# to use 'printcap name = cups' or swap the 'print command' line below
# with the commented one. Note that print commands only work if not using
# 'printing=cups'
[global]
# même nom de groupe que celui sous Windows (Voisinage réseau)
workgroup = PARTAGE
# aucun compte invité
guest account = nobody ;
# accès multi-utilisateur
share modes = yes
# Adresse IP de la carte réseau du serveur
# et masque de sous-réseau
interfaces = 192.168.2.2/255.255.255.0
# emplacement du fichier printcap (imprimantes sur le serveur Linux)
#printcap = /etc/printcap
# partage de toutes les imprimantes définies dans printcap
#load printers = yes
# fichier journal de Samba
log level = 1
log file = /var/log/samba/log.%m
# mode de sécurité : (user / share / server)
security = SHARE
# restreindre l'accès a certains sous-réseaux
hosts allow = 192.168.2. 127.
# empecher l'accès à certaines machines
#hosts allow = 15.144. EXCEPT 155.144.179.2
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
# to allow user 'guest account' to print.
guest ok = yes
printable = yes
create mask = 0700
# =====================================
# print command: see above for details.
# =====================================
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
# print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
# If you install drivers on the server, you will want to uncomment this so
# clients request the driver
use client driver = yes
# This share is used for Windows NT-style point-and-print support.
# To be able to install drivers, you need to be either root, or listed
# in the printer admin parameter above. Note that you also need write access
# to the directory and share definition to be able to upload the drivers.
# For more information on this, please see the Printing Support Section of
# /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf
#
# A special case is using the CUPS Windows Postscript driver, which allows
# all features available via CUPS on the client, by publishing the ppd file
# and the cups driver by using the 'cupsaddsmb' tool. This requires the
# installation of the CUPS driver (http://www.cups.org/windows.php)
# on the server, but doesn't require you to use Windows at all :-).
[print$]
path = /var/lib/samba/printers
write list = @adm root
guest ok = yes
inherit permissions = yes
# Settings suitable for Winbind:
# write list = @"Domain Admins" root
# force group = +@"Domain Admins"
# A useful application of samba is to make a PDF-generation service
# To streamline this, install windows postscript drivers (preferably colour)
# on the samba server, so that clients can automatically install them.
# Note that this only works if 'printing' is *not* set to 'cups'
[pdf-gen]
path = /var/tmp
printable = Yes
comment = PDF Generator (only valid users)
printing = bsd
#print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP &
print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" &
lpq command = /bin/true
[VIDEO]
path = /home/manu/Vidéo/
comment = test
guest ok = yes
read only = no
valid users = manu
case sensitive = no
msdfs proxy = no
[homes]
comment = Home Directories
guest ok = yes
[WOW_FIX]
path = /home/manu/wow_fix/
guest ok = yes
guest account = manu
hide files = wow.sh~/
case sensitive = no
guest only = yes
msdfs proxy = no |
Re-
[VIDEO] path = /home/manu/Vidéo/ comment = test #guest ok = yes #read only = no valid users = manu #case sensitive = no #msdfs proxy = no browseable = Yes [homes] comment = Home Directories guest ok = yes [WOW_FIX] path = /home/manu/wow_fix/ #guest ok = yes #guest account = manu #hide files = wow.sh~/ #case sensitive = no #guest only = yes #msdfs proxy = no browseable = YesDans un premier temps, puis si ça marche, tu affines les permissions et tout ce que tu veux... N'oublie pas de relancer le serveur après chaque modif : /etc/init.d/samba restart(ou "/etc/init.d/smb(d) restart", je sais plus). Z'@+...che. JP : Zen, my Nuggets ! ;-) Le savoir n'est bon que s'il est partagé. |
Merci de t interressé à mon cas, mais ca ne fonctionne toujours pas.
|
G remarqué aussi que quand je tape : samba stop, g pour réponse : shutting down smb service : echec; et shuting down nmb service : ok.
|
Salut à tous !!!
[global] workgroup = PARTAGE guest account = nobody ; share modes = yes interfaces = 192.168.2.2/255.255.255.0 log level = 1 log file = /var/log/samba/log.%m security = SHARE hosts allow = 192.168.2. 127. [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = yes printable = yes create mask = 0700 [print$] path = /var/lib/samba/printers write list = @adm root guest ok = yes inherit permissions = yes [pdf-gen] path = /var/tmp printable = Yes comment = PDF Generator (only valid users) printing = bsd #print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP & print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" & lpq command = /bin/true [VIDEO] path = /home/manu/Vidéo/ comment = test valid users = manu broseable = yes [homes] comment = Home Directories guest ok = yes [WOW_FIX] path = /home/manu/wow_fix/ browseable = yes Fichier smb.conf fonctionnant et épuré de ses commentaires : [global] workgroup = Partage netbios name = cerber server string = Samba Server %v printcap name = cups printcap cache time = 60 printing = cups printer admin = @adm log file = /var/log/samba/log.%m max log size = 50 map to guest = bad use encrypt passwords = yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = no [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = yes printable = yes create mask = 0700 use client driver = yes [print$] path = /var/lib/samba/printers write list = @adm root guest ok = yes inherit permissions = yes [pdf-gen] path = /var/tmp printable = Yes comment = PDF Generator (only valid users) printing = bsd #print command = /usr/share/samba/scripts/print-pdf file path win_path recipient IP & print command = /usr/share/samba/scripts/print-pdf "%s" "%H" "//%L/%u" "%m" "%I" "%J" & lpq command = /bin/true [VIDEO] path = /home/manu/Vidéo comment = /home/manu/Vidéo guest ok = yes wide links = no broseable = yes |