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 09/05/2013, à 17:05

Pierre771

[Résolu] Samba et réseau avec une machine Windows

Bonsoir

Je voudrais établir un réseau entre ma machine Ubuntu et une autre en Windows et notamment pouvoir imprimer sur mon imprimante depuis la machine Windows (réseau Livebox)

J'ai installé Samba comme indiqué ci-dessous

http://doc.ubuntu-fr.org/samba

J'ai bien déverrouillé ce qu'il fallait dans le pare-feu (ufw-gufw) et il y a du trafic samba

Mais ma machine Ubuntu est toujours invisible depuis la machine Windows et chez moi je n'obtiens pas l'écran réseau annoncé dans la doc (cf ci-dessous : l'écran réseau est un écran minimum sur le connexion filaire ou wifi)

1368110587.png

J'avais pourtant réussi la manip en KDE sur Kubuntu il y a un an
Pourriez-vous m'aider svp merci

Dernière modification par Pierre771 (Le 11/05/2013, à 20:44)


C'est trop injuste !
Mes configs
Asus X73S - Windows 10 famille 64 bits + Manjaro KDE - Intel core i5 2,4 Ghz - Intel Graphics 3000 + GEFORCE GT 540M (Optimus) - 600 Go + 600 Go - RAM 10 Go - Ecran 1600x900

Hors ligne

#2 Le 09/05/2013, à 17:50

toutafai

Re : [Résolu] Samba et réseau avec une machine Windows

Bonjour,

il nous faudrait quelques infos supplementaire pour te repondre ...
quel version d'ubuntu et dans quel architecture est-elle :

cat /etc/lsb-release && uname -r -m

Ensuite on regarde un peu la conf de samba :

cat /etc/samba/smb.conf
sudo smbtree #si on a mis un mot de passe au compte root, le mettre, sinon laisser vide
testparm
groups xxxxxx #remplacer les xxxx par le nom de l'utilisateur

coté pare feu :

sudo ufw status #si cette commande repond une erreur faire la 2 em
sudo iptables -L

Enfin coté réseau :

Es-ce qu'un ping entre les pc sont ok ?
es-ce qu'un ping nom_netbios_des-pc est ok ?

Evidement, coté windows : parefeu bien configuré ou désactivé est aussi indispensable.


Tombé dans l'informatique étant petit, j'en ai fait mon métier. Utilisateur d'Ubuntu depuis novembre 2006, actuellement sous 20.04 x64 (Que d'évolution
depuis Dapper Drake ! Ça rajeunit pas ^^^).

Hors ligne

#3 Le 09/05/2013, à 19:03

Pierre771

Re : [Résolu] Samba et réseau avec une machine Windows

Bonsoir et merci de ta réponse

Voili-voilou

La machine claude-vaio apparaît bien

pierre@pierre-K73SV:~$ cat /etc/lsb-release && uname -r -m
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.04
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="Ubuntu 13.04"
3.8.0-19-generic x86_64
pierre@pierre-K73SV:~$
pierre@pierre-K73SV:~$ 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
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic 
# errors. 
# A well-established practice is to name the original file
# "smb.conf.master" and create the "real" config file with
# testparm -s smb.conf.master >smb.conf
# This minimizes the size of the really used smb.conf file
# which, according to the Samba Team, impacts performance
# However, use this with caution if your smb.conf file contains nested
# "include" statements. See Debian bug #483187 for a case
# where using a master file is not a good idea.
#

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

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
	workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
	server string = %h server (Samba, Ubuntu)

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

# 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

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes



#### Debugging/Accounting ####

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

# Cap the size of the individual log files (in KiB).
	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 = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
#   security = user

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
	encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
;	passdb backend = tdbsam

	obey pam restrictions = yes

# 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 = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# 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 = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
	map to guest = bad user

########## Domains ###########

# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the 'domain master' setting to no
#
;   domain logons = yes
#
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of the user's profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the 
# SAMR RPC pipe.  
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.  
; add group script = /usr/sbin/addgroup --force-badname %g

########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
#   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;	printing = cups
;   printcap name = cups

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

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/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

# 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' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
#   domain master = auto

# 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

# The following was the default behaviour in sarge,
# but samba upstream reverted the default because it might induce
# performance issues in large organizations.
# See Debian bug #368251 for some of the consequences of *not*
# having this setting and smb.conf(5) for details.
;   winbind enum groups = yes
;   winbind enum users = yes

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;	usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
	usershare allow guests = yes
	username map = /etc/samba/smbusers

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

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each 
# user's home director as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# 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 = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server. Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# The following parameter makes sure that only "username" can connect
#
# This might need tweaking when using external authentication schemes
;   valid users = %S

# 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
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
	comment = All Printers
	browseable = no
	path = /var/spool/samba
	printable = yes
;	guest ok = no
;	read only = yes
	create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
;	browseable = yes
	writeable = yes
	guest ok = yes
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = 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

pierre@pierre-K73SV:~$ sudo smbtree 
[sudo] password for pierre: 
Enter root's password: 
WORKGROUP
	\\CLAUDE-VAIO    		
pierre@pierre-K73SV:~$ testparm
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	server string = %h server (Samba, Ubuntu)
	map to guest = Bad User
	obey pam restrictions = Yes
	pam password change = Yes
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
	username map = /etc/samba/smbusers
	unix password sync = Yes
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	dns proxy = No
	usershare allow guests = Yes
	panic action = /usr/share/samba/panic-action %d
	idmap config * : backend = tdb

[printers]
	comment = All Printers
	path = /var/spool/samba
	create mask = 0700
	printable = Yes
	print ok = Yes
	browseable = No

[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
	read only = No
	guest ok = Yes
pierre@pierre-K73SV:~$ groups pierre
pierre : pierre adm cdrom sudo dip plugdev lpadmin netdev sambashare bumblebee
pierre@pierre-K73SV:~$ sudo ufw status
État : actif

Vers                       Action      Depuis
----                       ------      ------
Samba                      ALLOW       Anywhere
49862/udp                  ALLOW       Anywhere
5353/udp                   ALLOW       Anywhere
64220/udp                  ALLOW       Anywhere
68/udp                     ALLOW       Anywhere
43092/udp                  ALLOW       Anywhere
55269/udp                  ALLOW       Anywhere
Samba (v6)                 ALLOW       Anywhere (v6)
49862/udp                  ALLOW       Anywhere (v6)
5353/udp                   ALLOW       Anywhere (v6)
64220/udp                  ALLOW       Anywhere (v6)
68/udp                     ALLOW       Anywhere (v6)
43092/udp                  ALLOW       Anywhere (v6)
55269/udp                  ALLOW       Anywhere (v6)

pierre@pierre-K73SV:~$ 

Voici le ping de Ubuntu vers Windows

pierre@pierre-K73SV:~$ ping claude-vaio
PING claude-vaio.home (192.168.1.12) 56(84) bytes of data.
64 bytes from Claude-VAIO.home (192.168.1.12): icmp_req=1 ttl=128 time=0.614 ms
64 bytes from Claude-VAIO.home (192.168.1.12): icmp_req=2 ttl=128 time=0.617 ms
64 bytes from Claude-VAIO.home (192.168.1.12): icmp_req=3 ttl=128 time=0.685 ms
64 bytes from Claude-VAIO.home (192.168.1.12): icmp_req=4 ttl=128 time=0.734 ms
64 bytes from Claude-VAIO.home (192.168.1.12): icmp_req=5 ttl=128 time=0.663 ms

Et voici maintenant le ping de Windows vers Ubuntu et la copie d'écran du réseau vu de Windows

1368118905.png

1368118951.png

PS le pare-feu Windows est actif (c'est le pare-feu Windows). Je n'ai jamais eu besoin d'y toucher...

Dernière modification par Pierre771 (Le 09/05/2013, à 19:09)


C'est trop injuste !
Mes configs
Asus X73S - Windows 10 famille 64 bits + Manjaro KDE - Intel core i5 2,4 Ghz - Intel Graphics 3000 + GEFORCE GT 540M (Optimus) - 600 Go + 600 Go - RAM 10 Go - Ecran 1600x900

Hors ligne

#4 Le 09/05/2013, à 20:52

toutafai

Re : [Résolu] Samba et réseau avec une machine Windows

Il n'y a aucun partage definit coté ubuntu (dans le smb.conf) , donc normal que tu ne vois pas la machine ubuntu sur un windows (je te mets mon smb.conf a la fin de ce post, si cela peut t'aider)

Ensuite coté pare feu ubuntu, je n'aime vraiement pas ce coté "simpliste" de configuration du parefeu....autoriser un service comme samba, c'est bien, mais finalement tu ne sais pas (enfin moi je suis pas sur) exactement ce que tu autorise ou non. Normalement, c'est ok, mais bon comme on ne sait pas (enfin moi), je préféré configuré mon pare feu en "avancé" c'est a dire autorisé non pas les services, mais les ports utilisés, voila a quoi ressemble ma config pour ce qui est de samba

135,139,445/tcp            ALLOW       Anywhere
137,138/udp                ALLOW       Anywhere
53                  ALLOW     Anywhere

mon smb.conf

#======================= Global Settings =======================
[global]
	wide links = yes
	unix extensions = no
	workgroup = workgroup
	server string = %h server (Samba, Ubuntu)
	dns proxy = no
	log file = /var/log/samba/log.%m
	max log size = 1000
	syslog = 0
	panic action = /usr/share/samba/panic-action %d
####### Authentication #######
	security = share
	obey pam restrictions = yes
	invalid users = root
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .

#======================= Share Definitions =======================
[printers]
	comment = All Printers
	browseable = no
	path = /tmp
	printable = yes
	create mode = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[saturne-partage]
	path = /home/saturne/partage
	guest ok = yes
	writeable = yes
	force user = saturne
	comment = dossier de partage

Coté windows
Pour le pare feu windows, je ne saurais te dire n'ayant jamais utilisé ce pare feu, le plus simple etant soit de le désactiver (oui, je sais pas top, mais au moins on est sur) soit d'autoriser toutes les com venant et allant vers ton reseau local, soit (et l'idéal) d'etre sur à 200% que c'est ok..
donne aussi le retour de

ipconfig /all

Dernière modification par toutafai (Le 09/05/2013, à 20:58)


Tombé dans l'informatique étant petit, j'en ai fait mon métier. Utilisateur d'Ubuntu depuis novembre 2006, actuellement sous 20.04 x64 (Que d'évolution
depuis Dapper Drake ! Ça rajeunit pas ^^^).

Hors ligne

#5 Le 09/05/2013, à 21:01

Pierre771

Re : [Résolu] Samba et réseau avec une machine Windows

Merci, je verrai ça demain et je te tiendrai au courant.

ipconfig il n'a pas trouvé

J'avais fait un tel réseau en Kubuntu (kde) mais j'avais un peu oublié
Je n'ai jamais eu à toucher au pare-feu Windows (il se règle tout seul)

Dernière modification par Pierre771 (Le 09/05/2013, à 21:06)


C'est trop injuste !
Mes configs
Asus X73S - Windows 10 famille 64 bits + Manjaro KDE - Intel core i5 2,4 Ghz - Intel Graphics 3000 + GEFORCE GT 540M (Optimus) - 600 Go + 600 Go - RAM 10 Go - Ecran 1600x900

Hors ligne

#6 Le 10/05/2013, à 08:50

Pierre771

Re : [Résolu] Samba et réseau avec une machine Windows

Bonjour

Il y a un progrès : j'ai la visibilité sur le réseau Workgroup et sur la machine Windows claude-vaio non pas depuis l'écran réseau qui a dû changer depuis la rédaction de la doc mais depuis le gestionnaire de fichiers "fichiers"/files, ex-Nautilus, je suppose. J'ai accès à tous les fichiers de la machine en saisissant le code utilisateur + mdp

Par contre toujours rien depuis la machine Windows (ni visibilité ni impression). J'ai bien regardé en détail pour le cas où ça viendrait de lui, le pare-feu Windows, extrêmement complet et compliqué, qui est censé signaler quand il bloque quelque chose et une fois de plus, lors de mon utilisation de Kubuntu, "avant ça marchait", comme disent toujours les utilisateurs ! Tout a l'air normal.

Voici l'état actuel de mon smb.conf
Merci de ton aide

#
# 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
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic 
# errors. 
# A well-established practice is to name the original file
# "smb.conf.master" and create the "real" config file with
# testparm -s smb.conf.master >smb.conf
# This minimizes the size of the really used smb.conf file
# which, according to the Samba Team, impacts performance
# However, use this with caution if your smb.conf file contains nested
# "include" statements. See Debian bug #483187 for a case
# where using a master file is not a good idea.
#

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

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
	workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
	server string = %h server (Samba, Ubuntu)

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

# 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

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes



#### Debugging/Accounting ####

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

# Cap the size of the individual log files (in KiB).
	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 = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
#   security = user

    security = share 

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
	encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
;	passdb backend = tdbsam

	obey pam restrictions = yes

# 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 = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# 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 = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
	map to guest = bad user

########## Domains ###########

# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the 'domain master' setting to no
#
;   domain logons = yes
#
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of the user's profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the 
# SAMR RPC pipe.  
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.  
; add group script = /usr/sbin/addgroup --force-badname %g

########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
#   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;	printing = cups
;   printcap name = cups

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

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/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

# 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' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
#   domain master = auto

# 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

# The following was the default behaviour in sarge,
# but samba upstream reverted the default because it might induce
# performance issues in large organizations.
# See Debian bug #368251 for some of the consequences of *not*
# having this setting and smb.conf(5) for details.
;   winbind enum groups = yes
;   winbind enum users = yes

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;	usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
	usershare allow guests = yes
	username map = /etc/samba/smbusers

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

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each 
# user's home director as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# 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 = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server. Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# The following parameter makes sure that only "username" can connect
#
# This might need tweaking when using external authentication schemes
;   valid users = %S

# 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
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
	comment = All Printers
	browseable = yes
	path = /var/spool/samba
	printable = yes
;	guest ok = no
;	read only = yes
	create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
;	browseable = yes
	writeable = yes
	guest ok = yes
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = 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

C'est trop injuste !
Mes configs
Asus X73S - Windows 10 famille 64 bits + Manjaro KDE - Intel core i5 2,4 Ghz - Intel Graphics 3000 + GEFORCE GT 540M (Optimus) - 600 Go + 600 Go - RAM 10 Go - Ecran 1600x900

Hors ligne

#7 Le 10/05/2013, à 18:20

toutafai

Re : [Résolu] Samba et réseau avec une machine Windows

pour voir la machine ubuntu depuis un windows, il faut qu'il y ai quelque chose de partagé sur ton ubuntu. Or comme je te le disais , pour l'instant il n'y a rien de partager (enfin rien dans le fichier smb.conf) donc il faut créer un partage sous ubuntu !!!

D'autre part concernant ton imprimante, elle est branchée comment ? directement sur le pc ubuntu ou connecté à la livebox (soit en wifi soit avec cable usb)


Tombé dans l'informatique étant petit, j'en ai fait mon métier. Utilisateur d'Ubuntu depuis novembre 2006, actuellement sous 20.04 x64 (Que d'évolution
depuis Dapper Drake ! Ça rajeunit pas ^^^).

Hors ligne

#8 Le 10/05/2013, à 19:03

Pierre771

Re : [Résolu] Samba et réseau avec une machine Windows

Je ne comprends pas : que faut-il donc lui déclarer ??
La machine Windows, elle, est non seulement visible depuis la machine Ubuntu mais je peux ouvrir tous les dossiers et tous les fichiers !
Dans ma précédente installation (où ça marchait), on  voyait depuis la machine Windows claude-vaio la machine linux (Kubuntu à l'époque) pierre-K73SV et on pouvait aller chercher l'imprimante et imprimer (but de la manip). Par contre on ne pouvait pas voir les dossiers et les fichiers, ce qui est normal, Windows ne sachant pas lire le système de fichiers EXT4.

L'imprimante, je l'ai précisé plus haut mais ce n'est peut-être pas clair, est connectée à la machine où il y a Ubuntu (en usb).


C'est trop injuste !
Mes configs
Asus X73S - Windows 10 famille 64 bits + Manjaro KDE - Intel core i5 2,4 Ghz - Intel Graphics 3000 + GEFORCE GT 540M (Optimus) - 600 Go + 600 Go - RAM 10 Go - Ecran 1600x900

Hors ligne

#9 Le 11/05/2013, à 10:35

toutafai

Re : [Résolu] Samba et réseau avec une machine Windows

peux tu donner le retour (sur la machine windows) de

net config workstation

et bizarre que ipconfig /all ne reponde rien...


Tombé dans l'informatique étant petit, j'en ai fait mon métier. Utilisateur d'Ubuntu depuis novembre 2006, actuellement sous 20.04 x64 (Que d'évolution
depuis Dapper Drake ! Ça rajeunit pas ^^^).

Hors ligne

#10 Le 11/05/2013, à 10:47

Pierre771

Re : [Résolu] Samba et réseau avec une machine Windows

Voici net config workstation

1368261902.png

et la commande demandée sur Linux

pierre@pierre-K73SV:~$ ipconfig /all
Commande 'ipconfig' non trouvée, vouliez-vous dire :
 La commande 'iwconfig' du paquet 'wireless-tools' (main)
 La commande 'ifconfig' du paquet 'net-tools' (main)
 La commande 'tpconfig' du paquet 'tpconfig' (universe)
ipconfig : commande introuvable
pierre@pierre-K73SV:~$ ifconfig /all
/all: erreur lors de la recherche d'infos sur l'interface: Périphérique non trouvé
pierre@pierre-K73SV:~$ iwconfig /all
/all      No such device

pierre@pierre-K73SV:~$ tpconfig /all
Le programme 'tpconfig' n'est pas encore installé. Vous pouvez l'installer en tapant :
sudo apt-get install tpconfig
pierre@pierre-K73SV:~$ sudo apt-get install tpconfig
[sudo] password for pierre: 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Les NOUVEAUX paquets suivants seront installés :
  tpconfig
0 mis à jour, 1 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 66,2 ko dans les archives.
Après cette opération, 169 ko d'espace disque supplémentaires seront utilisés.
Réception de : 1 http://fr.archive.ubuntu.com/ubuntu/ raring/universe tpconfig amd64 3.1.3-15 [66,2 kB]
66,2 ko réceptionnés en 0s (178 ko/s)
Préconfiguration des paquets...
Sélection du paquet tpconfig précédemment désélectionné.
(Lecture de la base de données... 167983 fichiers et répertoires déjà installés.)
Dépaquetage de tpconfig (à partir de .../tpconfig_3.1.3-15_amd64.deb) ...
Traitement des actions différées (« triggers ») pour « ureadahead »...
ureadahead will be reprofiled on next reboot
Traitement des actions différées (« triggers ») pour « man-db »...
Paramétrage de tpconfig (3.1.3-15) ...
update-rc.d: warning: tpconfig stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)
Traitement des actions différées (« triggers ») pour « ureadahead »...
pierre@pierre-K73SV:~$ tpconfig /all
Could not open PS/2 Port [/dev/psaux].
pierre@pierre-K73SV:~$ 

C'est trop injuste !
Mes configs
Asus X73S - Windows 10 famille 64 bits + Manjaro KDE - Intel core i5 2,4 Ghz - Intel Graphics 3000 + GEFORCE GT 540M (Optimus) - 600 Go + 600 Go - RAM 10 Go - Ecran 1600x900

Hors ligne

#11 Le 11/05/2013, à 16:07

Pierre771

Re : [Résolu] Samba et réseau avec une machine Windows

Ayé, c'est bon pour l'imprimante !! (fallait (ré)installer le pilote à partir du CD-rom sur la machine Windows)

Reste le "mot de passe réseau" dans Windows pour la machine linux

On avance : les deux machines sont désormais visibles de chacune d'entre elles et j'ai même eu la surprise de pouvoir lire tous mes fichiers Linux (ceux de /home) depuis "réseau" de la machine Windows. Seul défaut : sur le poste Windows je ne m'en sors pas avec le code utilisateur et le mot de passe (il me sort le mot de passe en erreur quoi que je fasse) et pour pouvoir accéder il faut rendre la machine Linux visible de tous les utilisateurs.

J'ai utilisé le configurateur graphique de Samba proposé quand on tape samba dans les applications Unity.
Comme code utilisateur Samba (avahi) j'ai mis pierre + le même mot de passe que pour l'utilisateur Ubuntu
Quand je tape pierre + mdp sur Windows, il me jette, cf copies d"écran.

C'est un peu du fignolage mais comme j'y ai passé des plombes, ce serait dommage de laisser traîner une erreur.

1368281993.png

1368281144.png

Je ne sais pas ce que fabrique ce configurateur graphique.

Au cas où il écrirait dans smb.conf, le voici ci-dessous

PS C'est curieux parce qu'en KDE j'avais eu beaucoup moins de pb

#
# 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
#
# Some options that are often worth tuning have been included as
# commented-out examples in this file.
#  - When such options are commented with ";", the proposed setting
#    differs from the default Samba behaviour
#  - When commented with "#", the proposed setting is the default
#    behaviour of Samba but the option is considered important
#    enough to be mentioned here
#
# NOTE: Whenever you modify this file you should run the command
# "testparm" to check that you have not made any basic syntactic 
# errors. 
# A well-established practice is to name the original file
# "smb.conf.master" and create the "real" config file with
# testparm -s smb.conf.master >smb.conf
# This minimizes the size of the really used smb.conf file
# which, according to the Samba Team, impacts performance
# However, use this with caution if your smb.conf file contains nested
# "include" statements. See Debian bug #483187 for a case
# where using a master file is not a good idea.
#

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

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
	workgroup = WORKGROUP

# server string is the equivalent of the NT Description field
	server string = %h server (Samba, Ubuntu)

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

# 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

#### Networking ####

# The specific set of interfaces / networks to bind to
# This can be either the interface name or an IP address/netmask;
# interface names are normally preferred
;   interfaces = 127.0.0.0/8 eth0

# Only bind to the named interfaces and/or networks; you must use the
# 'interfaces' option above to use this.
# It is recommended that you enable this feature if your Samba machine is
# not protected by a firewall or is a firewall itself.  However, this
# option cannot handle dynamic or non-broadcast interfaces correctly.
;   bind interfaces only = yes



#### Debugging/Accounting ####

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

# Cap the size of the individual log files (in KiB).
	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 = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
#   security = user

	security = share

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
	encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
;	passdb backend = tdbsam

	obey pam restrictions = yes

# 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 = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
# sending the correct chat script for the passwd program in Debian Sarge).
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

# 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 = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
	map to guest = bad user

########## Domains ###########

# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the 'domain master' setting to no
#
;   domain logons = yes
#
# The following setting only takes effect if 'domain logons' is set
# It specifies the location of the user's profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
;   logon path = \\%N\profiles\%U
# Another common choice is storing the profile in the user's home directory
# (this is Samba's default)
#   logon path = \\%N\%U\profile

# The following setting only takes effect if 'domain logons' is set
# It specifies the location of a user's home directory (from the client
# point of view)
;   logon drive = H:
#   logon home = \\%N\%U

# The following setting only takes effect if 'domain logons' is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in 'DOS' file format convention
;   logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe.  The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u

# This allows machine accounts to be created on the domain controller via the 
# SAMR RPC pipe.  
# The following assumes a "machines" group exists on the system
; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.  
; add group script = /usr/sbin/addgroup --force-badname %g

########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;	load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;	printing = cups
;   printcap name = cups

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

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/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

# 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' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
#   domain master = auto

# 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

# The following was the default behaviour in sarge,
# but samba upstream reverted the default because it might induce
# performance issues in large organizations.
# See Debian bug #368251 for some of the consequences of *not*
# having this setting and smb.conf(5) for details.
;   winbind enum groups = yes
;   winbind enum users = yes

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.

# Maximum number of usershare. 0 (default) means that usershare is disabled.
;	usershare max shares = 100

# Allow users who've been granted usershare privileges to create
# public shares, not just authenticated ones
	usershare allow guests = yes
	username map = /etc/samba/smbusers

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

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each 
# user's home director as \\server\username
;[homes]
;   comment = Home Directories
;   browseable = no

# By default, the home directories are exported read-only. Change the
# next parameter to 'no' if you want to be able to write to them.
;   read only = yes

# 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 = 0700

# By default, \\server\username shares can be connected to by anyone
# with access to the samba server. Un-comment the following parameter
# to make sure that only "username" can connect to \\server\username
# The following parameter makes sure that only "username" can connect
#
# This might need tweaking when using external authentication schemes
;   valid users = %S

# 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
;   read only = yes

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

[printers]
	comment = All Printers
;	browseable = yes
	path = /var/spool/samba
	printable = yes
;	guest ok = no
;	read only = yes
	create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
[print$]
	comment = Printer Drivers
	path = /var/lib/samba/printers
;	browseable = yes
	writeable = yes
	guest ok = yes
# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace 'lpadmin' with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
;   write list = root, @lpadmin

# A sample share for sharing your CD-ROM with others.
;[cdrom]
;   comment = Samba server's CD-ROM
;   read only = yes
;   locking = no
;   path = /cdrom
;   guest ok = 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

[Machine Linux]
	comment = Visibilité Ubuntu depuis Windows
	path = /home
;	writeable = no
;	browseable = yes
	guest ok = yes 

Dernière modification par Pierre771 (Le 11/05/2013, à 19:50)


C'est trop injuste !
Mes configs
Asus X73S - Windows 10 famille 64 bits + Manjaro KDE - Intel core i5 2,4 Ghz - Intel Graphics 3000 + GEFORCE GT 540M (Optimus) - 600 Go + 600 Go - RAM 10 Go - Ecran 1600x900

Hors ligne

#12 Le 11/05/2013, à 20:44

Pierre771

Re : [Résolu] Samba et réseau avec une machine Windows

Ayé, entièrement résolu

J'ai créé dans Samba un nouvel utilisateur pierre (et non pas avahi), pierre, <mdp>
Et j'ai appelé avec succès pierre, <mdp> dans la machine Windows : visibilité sur mon /home.
Résumé : j'ai utilisé l'interface graphique au lieu de m'user les nerfs sur smb.conf (très mal vu, je sais mais efficace !)

Merci de ton aide


C'est trop injuste !
Mes configs
Asus X73S - Windows 10 famille 64 bits + Manjaro KDE - Intel core i5 2,4 Ghz - Intel Graphics 3000 + GEFORCE GT 540M (Optimus) - 600 Go + 600 Go - RAM 10 Go - Ecran 1600x900

Hors ligne

#13 Le 12/05/2013, à 12:48

toutafai

Re : [Résolu] Samba et réseau avec une machine Windows

c'est une manière de faire, le principal est que cela fonctionne


Tombé dans l'informatique étant petit, j'en ai fait mon métier. Utilisateur d'Ubuntu depuis novembre 2006, actuellement sous 20.04 x64 (Que d'évolution
depuis Dapper Drake ! Ça rajeunit pas ^^^).

Hors ligne