logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 20-03-2019 17:34:08

ferasouder
Membre
Lieu : Montréal
Distrib. : Debian 6
Noyau : Linux 2.6.32-5-686 sur i686
Inscription : 20-03-2019

Partage impossible avec Samba

J'ai un soucis avec le partage Windows et Samba sur un Debian 6.00, Linux 2.6.26-2-686 sur i686. Je tente de me brancher avec un Mac OS 10.6, le nom du serveur s'affiche dans la fenêtre réseau, mais lorsque je viens pour me connecter, il y a ce message d'erreur : «Une erreur s'est produite à la connexion au serveur «Nom du Serveur». Vérifier le nom ou l'adresse IP du serveur puis réessayer».
Je ne peux voir le nom des partages, seulement celui du serveur, il n'y a plus de fenêtre demandant le nom d'utilisateur et le mot de passe.
J'ai tenté de me brancher avec un PC sur Windows 7 sans succès. Le message du diagnostic est le suivant : «Le périphérique ou la ressource distant n'accepte pas la connexion. ».
J'ai tenté de rebooter le routeur, le serveur ainsi que le serveur Samba. Par contre, je peux me brancher à ce serveur avec Webmin 1.900, ainsi qu'avec le terminal par SSH.

Lors d'une recherche de paquet Samba j'obtiens ce résultat
libwbclient0 3.5.6~dfsg-3squeeze11    K-O    Samba winbind client library
    samba 3.5.6~dfsg-3squeeze11    P-T    SMB/CIFS file, print, and login server for Unix
    samba-common 3.5.6~dfsg-3squeeze11    P-T    common files used by both the Samba server and client
    samba-common-bin 3.5.6~dfsg-3squeeze11    P-T    common files used by both the Samba server and client
    samba-doc 3.5.6~dfsg-3squeeze11

Par ailleurs, je suis  capable de me brancher avec un autre serveur sur Debian 6. Il était possible de se brancher avant que je ne fasse une mise à jour des paquets, ainsi qu'un ménage des utilisateurs des partages et un synchronisation des utilisateurs Unix, ainsi que l'installation de WebMin 1.900.

Je joins le fichier configuration :

#
# 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]
    log file = /var/log/samba/log.%m
    guest account = www-data
    passwd chat = *Enter\snew\s*\spassword:* %n\n **Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully*
    socket options = TCP_NODELAY
    obey pam restrictions = yes
    encrypt passwords = yes
    passwd program = /usr/bin/passwd %u
    passdb backend = tdbsam
    dns proxy = no
    server string = %h server (Samba %v)
    invalid users = root
    path = /home/
    workgroup = WORKGROUP
    os level = 20
    syslog = 0
    panic action = /usr/share/samba/panic-action %d
    max log size = 1000

[homes]
    writeable = yes
    path = /home/jean
    only user = yes
    guest ok = no
    create mask = 0700
    directory mask = 0700
    comment = Home Directories
    valid users = @users
    user = %S

# 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.

# 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.

# 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]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

[printers]
    printable = yes
    writable = no
    path = /tmp
    comment = All Printers
    public = no
    create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
    guest ok = no
    comment = Printer Drivers
    writable = no
    path = /var/lib/samba/printers
# 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



[coffre]
    volume = "coffre %u"
    writeable = yes
    invalid users = root @wheel
    path = /mnt/coffre/%u
    guest ok = no
    create mask = 0700
    directory mask = 0700

[coffre jean]
    guest account = nobody
    browseable = yes
    writeable = yes
    invalid users = root,public,julien
    path = /mnt/coffre/%u
    write list = jean
    create mask = 0700
    directory mask = 0700
    valid users = jean
    user = jean


[coffre julien]
    browseable = yes
    writeable = yes
    only user = yes
    path = /mnt/coffre/%u
    write list = julien jean
    create mask = 0700
    directory mask = 0700
    valid users = julien jean
    user = julien






[JeanHome]
    path = /home/jean


--
Jean Gould 5219, rue Jeanne-Mance Montréal, Qc, H2V 4K3 514-270-8204

Hors ligne

Pied de page des forums