Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 16/10/2005, à 21:29

mythos

[RESOLU] probleme d'acces samba depuis winXP

bonjour a tous !

Je suis sous ubuntu depuis peu de temps.
J'ai un petit reseau domestique composer de 5 PC: 1 sous ubuntu/kubuntu et 4 sous winXP

Samba est installé
Les PCs se voient tous.
Tout le monde se ping aussi bien par IP que par nom Netbios ... pour l'instant, c'est le bonheur ..

Et là, c'est le drame .. depuis les Win XP, je vois mes partages Samba mais impossible d'y acceder
message: \\anubis\public est inaccessible ou vous n'avez pas les droits .. bla bla bla
anubis etant le poste Ubuntu

portant tout me semble correct:
Mon fichier /etc/samba/smb.conf

#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not many any basic syntactic
# errors.
#

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

Netbios Name = anubis
workgroup = WORKGROUP
server string = pc de Mythos

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
;   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast
hosts allow = 192.168.0. 127.

#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d

####### Authentication #######

security = share
encrypt passwords = yes
passdb backend = tdbsam guest
obey pam restrictions = yes
guest account = nobody
; invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
;   unix password sync = no

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
# sending the correct chat script for the passwd program in Debian Potato).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
;   pam password change = no


############ Misc ############

# Personnalisation suivant l'utilisateur connecte
;   include = /home/UsersSambaConf/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY
restrict anonymous = no
preferred master = yes
max protocol = NT
ldap ssl = No
server signing = No
domain master = No

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

#======================= Share Definitions =======================

[homes]
comment = Home Directories
browseable = no
create mask = 0700
directory mask = 0700

[Public]
comment = Repertoire Public
path = /home/mythos/Desktop/Partage
public = yes
guest ok = yes
read only = no
case sensitive = no

[Films]
comment = Films
path = /home/mythos/Video/films
guest ok = yes
read only = yes
case sensitive = no

Le log samba correspondant a un des clients donne:

[2005/10/16 21:11:18, 0] smbd/service.c:make_connection_snum(620)
  '/home/mythos/Video/films' does not exist or is not a directory, when connecting to [Films]
[2005/10/16 21:11:19, 0] smbd/service.c:make_connection_snum(620)
  '/home/mythos/Video/films' does not exist or is not a directory, when connecting to [Films]
[2005/10/16 21:11:19, 0] smbd/service.c:make_connection_snum(620)
  '/home/mythos/Video/films' does not exist or is not a directory, when connecting to [Films]
[2005/10/16 21:11:20, 0] smbd/service.c:make_connection_snum(620)
  '/home/mythos/Desktop/Partage' does not exist or is not a directory, when connecting to [Public]
[2005/10/16 21:11:20, 0] smbd/service.c:make_connection_snum(620)
  '/home/mythos/Desktop/Partage' does not exist or is not a directory, when connecting to [Public]
[2005/10/16 21:11:20, 0] smbd/service.c:make_connection_snum(620)
  '/home/mythos/Desktop/Partage' does not exist or is not a directory, when connecting to [Public]

Helpppp !
Merci d'avance.
EDIT: Je ne prefere pas utiliser d'authentification. Et en local, ca fonctionne ...

Dernière modification par mythos (Le 19/10/2005, à 23:49)


In an Open world, no need for Gates :)

Hors ligne

#2 Le 17/10/2005, à 00:19

PaowZ

Re : [RESOLU] probleme d'acces samba depuis winXP

un truc comme ca, on sait jamais...
ajoute :
browseable = yes
dans tes sections [public] et [Films]

ptetre que ca peut arranger...:/

Dernière modification par PaowZ (Le 17/10/2005, à 00:20)


PaowZ
===========================================

Hors ligne

#3 Le 17/10/2005, à 10:27

mythos

Re : [RESOLU] probleme d'acces samba depuis winXP

Ok, j'essaierais cela en rentrant du boulot ce soir.


In an Open world, no need for Gates :)

Hors ligne

#4 Le 17/10/2005, à 11:13

mythos

Re : [RESOLU] probleme d'acces samba depuis winXP

Je viens de faire tester, même résultat ...

Je post le résultat de testparm, au cas où ...

11:05 mythos@anubis /home/mythos % testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[Public]"
Processing section "[Films]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
        server string = pc de Mythos
        security = SHARE
        obey pam restrictions = Yes
        passdb backend = tdbsam, guest
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        preferred master = Yes
        domain master = No
        dns proxy = No
        ldap ssl = no
        panic action = /usr/share/samba/panic-action %d
        hosts allow = 192.168.0., 127.

[homes]
        comment = Home Directories
        create mask = 0700
        directory mask = 0700
        browseable = No

[Public]
        comment = Repertoire Public
        path = /home/mythos/Desktop/Partage
        read only = No
        guest ok = Yes
        case sensitive = No

[Films]
        comment = Films
        path = /home/mythos/Video/films
        guest ok = Yes
        case sensitive = No

EDIT: Je confirme que les répertoires existent, sont bien en drwxrwxrwx et qu'en passant par konqueror, j'accede a Public ( smb://anubis/public )et films (smb://anubis/films ) sans aucun problèmes... Par contre, en passant par firefox, j'accede a smb://anubis/, je vois Films et Public mais "impossible de trouver le fichier /films. Verifiez son emplacement ... etc", idem avec Public.

Dernière modification par mythos (Le 17/10/2005, à 11:43)


In an Open world, no need for Gates :)

Hors ligne

#5 Le 17/10/2005, à 11:28

R4v3n

Re : [RESOLU] probleme d'acces samba depuis winXP

j'ai pareil, même avec browseable = yes ça marche pas, il me demande un user/pass hmm

Hors ligne

#6 Le 17/10/2005, à 12:54

mythos

Re : [RESOLU] probleme d'acces samba depuis winXP

Si seulement il me demandais un user/pass mais je n'ai même pas cette chance ...


In an Open world, no need for Gates :)

Hors ligne

#7 Le 18/10/2005, à 07:55

mythos

Re : [RESOLU] probleme d'acces samba depuis winXP

UP !
Juste un petit message pour deterrer ce thread smile

Sinon, je ne comprends pas, j'ai monter la même chose sur le serveur de mon boulot, pour testay .. et ca marche ... Je comprends de moins en moins, si vous avez des tests a me proposer, je suis preneur ...


Voici le fichier smb.conf present sur le serveur

administrateur@gate1:~$ cat /etc/samba/smb.conf
#
# Sample configuration file for the Samba suite for Debian GNU/Linux.
#
#
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options most of which
# are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentary and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not many any basic syntactic
# errors.
#

#======================= Global Settings =======================

[global]

## Browsing/Identification ###

netbiosname = XXXXXXXXXX
workgroup = XXXXXXXXXX
server string = serveur de fichiers

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
;   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast


#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d


####### Authentication #######

security = share
encrypt passwords = yes
passdb backend = tdbsam guest
obey pam restrictions = yes
guest account = nobody
invalid users = root

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.
;   unix password sync = no

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
# sending the correct chat script for the passwd program in Debian Potato).
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
;   pam password change = no


############ Misc ############

# Personnalisation suivant l'utilisateur connecte
   include = /home/UsersSambaConf/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
socket options = TCP_NODELAY
restrict anonymous = no
preferred master = yes
max protocol = NT
ldap ssl = No
server signing = Auto
domain master = yes

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

#======================= Share Definitions =======================

[homes]
comment = Home Directories
browseable = no
create mask = 0700
directory mask = 0700

# Si La Gate est configuree en PDC, decommentez le paragraphe suivant
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

[Public]
path = /windows/public
guest ok = yes
read only = no
case sensitive = no
msdfs proxy = no

J'ai masqué volontairement le nom netbios et le workgroup pour des raison de sécurité.

Dernière modification par mythos (Le 18/10/2005, à 08:04)


In an Open world, no need for Gates :)

Hors ligne

#8 Le 18/10/2005, à 08:47

parsec

Re : [RESOLU] probleme d'acces samba depuis winXP

personnellement, j'ai toujours trouvé plus facile de laisser security =users ce qui est la valeur par défaut et de donner éventuellement des droits de lectures/ecriture à tout le monde sur un répertoire.

Hors ligne

#9 Le 18/10/2005, à 09:25

LR

Re : [RESOLU] probleme d'acces samba depuis winXP

parsec a écrit :

personnellement, j'ai toujours trouvé plus facile de laisser security =users ce qui est la valeur par défaut et de donner éventuellement des droits de lectures/ecriture à tout le monde sur un répertoire.

Tu veux dire que comme ça c'est plus facile à gérer et que de toute façon, toute personne qui veut accéder à un partage doit s'identifier ?

Y a pas un moyen de gérer tout ça graphiquement ? Enfin si, il y a swat mais j'espére une solution plus...... ubuntu big_smile

Hors ligne

#10 Le 19/10/2005, à 02:27

mythos

Re : [RESOLU] probleme d'acces samba depuis winXP

travailler les fichiers de conf, c'est bien ce que je prefere sous Linux ... je prefere ne pas avoir d'interface graphique et avoir un fichier sous les yeux, mais là, chacun ses gouts smile

Sinon, je pense effectivement passer en security=users avec une synchro des mots de passe samba et win, j'ai lu ce qu'il faut dessus ... je test ca ce soir, si cela fonctionne je passerais le thread en "résolu".

Merci pour vos conseils smile


In an Open world, no need for Gates :)

Hors ligne

#11 Le 19/10/2005, à 19:03

mythos

Re : [RESOLU] probleme d'acces samba depuis winXP

une petite question: y a t'il une difference entre un partage sur partition fat32 et un partage sur partition ext 3 ? Car c'est la seule difference que je vois entre les deux conf que je vous ai cité précédement ...


In an Open world, no need for Gates :)

Hors ligne

#12 Le 19/10/2005, à 20:57

manatlan

Re : [RESOLU] probleme d'acces samba depuis winXP

moi j'ai un partage SMB que je traine depuis la hoary ... et qui fonctionne
mes amis windowsiens arrivent à s'y connecter ...
j'ai défini un user ... je crois que j'ai du faire un "smd add user" (qqchose du style(mais c t y a longtemps, et j'ai pas pris de note)

toujours utile que je pense que c'est lié au domaine ...
par defaut ton samba propose le domaine MSHOME

les gens pour se connecter chez moi via windows, doivent saisir :
login : MSHOME\login
passwd : ********

bon j'ai pas essayé sans user, donc c pas tout à fait pareil ...
mais dès fois que ça aide ?!


"Oui, oui."
                -- Shakespeare (Richard III, Acte I, Scène IV)

Hors ligne

#13 Le 19/10/2005, à 23:44

mythos

Re : [RESOLU] probleme d'acces samba depuis winXP

Merci a tous,

J'ai finalement réussi a faire fonctionner en security = share ... les partages etant dans ma home ... j'ai simplement modifier "guest account = nobody" par "guest account = mythos" et tous c'est mis a fonctionner ... Films en read only et Public en R/W tels que configuré ... c'est beau quand ca marche tout de même ^^

Encore une fois, merci a tous qui m'avez mis sur la voie de la solution smile

Passage du sujet en RESOLU


In an Open world, no need for Gates :)

Hors ligne