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.

#26 Le 28/02/2013, à 20:10

toutafai

Re : [Résolus] Pbrs Samba

De rien. Bravo aussi a toi d'avoir persévéré et bonne continuation.

PS : Peut tu peux éditer ton 1 er message, et rajouter "Résolu" au sujet, merci.


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

#27 Le 06/03/2013, à 08:55

lilp

Re : [Résolus] Pbrs Samba

Je suis vraiment désolé, mais, je n'ai de nouveau plus aucun partage sad. Je ne voit ni le poste Xubuntu depuis Windows, ni le poste Windows depuis Xubuntu.
QUand je suis passé en mode DHCP pour avoir le bon DNS (192.168.0.254), mon poste Xubuntu a changer d'IP, or j'avais quelques ports qui étaient redirigés vers ce poste depuis l'interface de la Freebox, du coup, je suis aller sur l'interface de gestion de la box, et je lui est attribué l'ancienne @ IP par rapport a son @Mac.
Mes redirections de ports depuis la box, fonctionnent, mais je n'ai plus de partage. Et dans le fichier ou je devrais avoir mon DNS de la box, je n'ai plus que l'@ 127.0.0.1. sad
Et depuis que j'ai installer ugfw, je n'arrive plus à avoir accès a OwnCloud depuis l'extérieure (il est installer sur le poste en Xubuntu). En tapant l'@ local j'y arrive, mais pas depuis l'extérieure.

Dernière modification par lilp (Le 06/03/2013, à 08:57)


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#28 Le 06/03/2013, à 16:06

toutafai

Re : [Résolus] Pbrs Samba

je suis pas sur d'avoir bien compris :
tu est passé en dhcp a quel niveau ? au niveau d'ubuntu ou de la freebox ? as tu pensé a redémarré ton réseau (on etteint tout, on redemarre la freebox, puis les pc) ?
Tu me parle redirection de ports au niveau de ta freebox mais en ce qui concerne samba et les partages, il n'y a pas besoin de rediriger de port, donc j'en déduis que tes redirection concerne d'autre services/protocole

tu me parle d'un fichier ou tu devrait avoir le DNS, de quel fichier tu parle, le resolv.conf ?

Enfin OwnCloud, je connais pas trop, (mais j'imagine que c'est pour lui la redirection de port ?) creuse du coté de la configuration d'apache (le fichier port.conf peut-etre).

Et si cela ne fonctionne toujours pas, donne les retours
sur pc ubuntu

ifconfig
route -n
cat /etc/resolv.conf
smbtree
ping IPFREEBOX
ping IPPCWINDOWS
sudo ufw status
cat /etc/hosts

coté windows (s'assurer que le pare feu est ok)

ping freebox
ping IPUBUNTU
ipconfig /all
route print

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

#29 Le 06/03/2013, à 22:01

lilp

Re : [Résolus] Pbrs Samba

Le DHCP a été activé au niveau d'Ubuntu, sur la freebox j'ai assigner une @ IP fixe selon une @ MAc (celle d'Ubuntu).
J'ai redémarré freebox et pc, ils ont les bonnes @ que j'ai configuré.
Les autres ports concerne des services tels que SickBeard, SabNzb( ceux ci fonctionne) et Owncloud (ne fonctionne pas en externe).
Je parle effectivement du fichier resolv.conf.
Ifconfig :

eth0      Link encap:Ethernet  HWaddr 00:1c:c0:21:*:*
          inet adr:192.168.0.5  Bcast:192.168.0.255  Masque:255.255.255.0
          adr inet6: 2a01:e35:2e2d:10a0:21c:c0ff:fe21:d680/64 Scope:Global
          adr inet6: fe80::21c:c0ff:fe21:d680/64 Scope:Lien
          adr inet6: 2a01:e35:2e2d:10a0:59d8:6d23:2125:bb46/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Packets reçus:6909927 erreurs:0 :4 overruns:0 frame:0
          TX packets:5998266 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:1000
          Octets reçus:1593263682 (1.5 GB) Octets transmis:492158581 (492.1 MB)

lo        Link encap:Boucle locale
          inet adr:127.0.0.1  Masque:255.0.0.0
          adr inet6: ::1/128 Scope:Hôte
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          Packets reçus:196900 erreurs:0 :0 overruns:0 frame:0
          TX packets:196900 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 lg file transmission:0
          Octets reçus:116588240 (116.5 MB) Octets transmis:116588240 (116.5 MB)

Route -n :

Table de routage IP du noyau
Destination     Passerelle      Genmask         Indic Metric Ref    Use Iface
0.0.0.0         192.168.0.254   0.0.0.0         UG    0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth0
192.168.0.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0

Resolv.conf :

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

Smbtree :

WORKGROUP
        \\SERVEUR                       Serveur server (Samba, Ubuntu)
                \\SERVEUR\IPC$                  IPC Service (Serveur server (Samba, Ubuntu))
                \\SERVEUR\Downloads
                \\SERVEUR\Series
                \\SERVEUR\Films

Les pings fonctionnent

ufw status :

Ãtat : actif

Vers                       Action      Depuis
----                       ------      ------
445                        ALLOW       Anywhere
137                        ALLOW       Anywhere
135                        ALLOW       Anywhere
139/tcp                    ALLOW       Anywhere
53                         ALLOW       Anywhere
5050/tcp                   ALLOW       Anywhere
8081/tcp                   ALLOW       Anywhere
8082/tcp                   ALLOW       Anywhere
8082                       ALLOW       Anywhere
8081                       ALLOW       Anywhere
5050                       ALLOW       Anywhere
80                         ALLOW       Anywhere
443                        ALLOW       Anywhere
22/tcp                     ALLOW       Anywhere
445                        ALLOW       Anywhere (v6)
137                        ALLOW       Anywhere (v6)
135                        ALLOW       Anywhere (v6)
139/tcp                    ALLOW       Anywhere (v6)
53                         ALLOW       Anywhere (v6)
8082                       ALLOW       Anywhere (v6)
8081                       ALLOW       Anywhere (v6)
5050                       ALLOW       Anywhere (v6)
80                         ALLOW       Anywhere (v6)
443                        ALLOW       Anywhere (v6)
22/tcp                     ALLOW       Anywhere (v6)

445                        ALLOW OUT   Anywhere
137                        ALLOW OUT   Anywhere
135                        ALLOW OUT   Anywhere
139/tcp                    ALLOW OUT   Anywhere
138/udp                    ALLOW OUT   Anywhere
53                         ALLOW OUT   Anywhere
80                         ALLOW OUT   Anywhere
443                        ALLOW OUT   Anywhere
22/tcp                     ALLOW OUT   Anywhere
445                        ALLOW OUT   Anywhere (v6)
137                        ALLOW OUT   Anywhere (v6)
135                        ALLOW OUT   Anywhere (v6)
139/tcp                    ALLOW OUT   Anywhere (v6)
138/udp                    ALLOW OUT   Anywhere (v6)
53                         ALLOW OUT   Anywhere (v6)
80                         ALLOW OUT   Anywhere (v6)
443                        ALLOW OUT   Anywhere (v6)
22/tcp                     ALLOW OUT   Anywhere (v6)

/etc/hosts :

127.0.0.1       localhost
127.0.1.1       Serveur

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Coté Windows, les pings répondent aussi.

Ipconfig /all :

Configuration IP de Windows

   Nom de l'hôte . . . . . . . . . . : PCLilPhoenix
   Suffixe DNS principal . . . . . . :
   Type de noeud. . . . . . . . . .  : Hybride
   Routage IP activé . . . . . . . . : Non
   Proxy WINS activé . . . . . . . . : Non

Carte Ethernet Connexion au réseau local :

   Suffixe DNS propre à la connexion. . . :
   Description. . . . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Adresse physique . . . . . . . . . . . : 00-24-1D-D3-4C-*
   DHCP activé. . . . . . . . . . . . . . : Non
   Configuration automatique activée. . . : Oui
   Adresse IPv6. . . . . . . . . . . . . .: 2a01:e35:2e2d:10a0:d9ca:8aa2:6a26:*
f2(préféré)
   Adresse IPv6 temporaire . . . . . . . .: 2a01:e35:2e2d:10a0:55f7:dfee:ba64:*
6b(préféré)
   Adresse IPv6 de liaison locale. . . . .: fe80::d9ca:*:6a26:f6f2%10(préféré
)
   Adresse IPv4. . . . . . . . . . . . . .: 192.168.0.1(préféré)
   Masque de sous-réseau. . . . . . . . . : 255.255.255.0
   Passerelle par défaut. . . . . . . . . : 192.168.0.254
   Serveurs DNS. . .  . . . . . . . . . . : 192.168.0.254
   NetBIOS sur Tcpip. . . . . . . . . . . : Activé

Carte Tunnel isatap.{827F586F-5D37-42C7-A470-D0ED68D8B0C4} :

   Statut du média. . . . . . . . . . . . : Média déconnecté
   Suffixe DNS propre à la connexion. . . :
   Description. . . . . . . . . . . . . . : Carte Microsoft ISATAP
   Adresse physique . . . . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP activé. . . . . . . . . . . . . . : Non
   Configuration automatique activée. . . : Oui

Carte Tunnel Connexion au réseau local* 4 :

   Suffixe DNS propre à la connexion. . . :
   Description. . . . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Adresse physique . . . . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP activé. . . . . . . . . . . . . . : Non
   Configuration automatique activée. . . : Oui
   Adresse IPv6 de liaison locale. . . . .: fe80::14ff:1b8d:3f57:fffe%12(préféré
)
   Passerelle par défaut. . . . . . . . . :
   IAID DHCPv6 . . . . . . . . . . . : 301989888
   DUID de client DHCPv6. . . . . . . . : 00-01-00-01-18-6E-0B-54-00-24-1D-D3-4C
-A4
   NetBIOS sur TCPIP. . . . . . . . . . . : Désactivé

C:\Users\lilphoenix>clear
'clear' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

Route print :

===========================================================================
Liste d'Interfaces
 10...00 24 1d d3 4c a4 ......Realtek PCIe GBE Family Controller
  1...........................Software Loopback Interface 1
 11...00 00 00 00 00 00 00 e0 Carte Microsoft ISATAP
 12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
===========================================================================

IPv4 Table de routage
===========================================================================
Itinéraires actifs :
Destination réseau    Masque réseau  Adr. passerelle   Adr. interface Métrique
          0.0.0.0          0.0.0.0    192.168.0.254      192.168.0.1    276
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.0.0    255.255.255.0         On-link       192.168.0.1    276
      192.168.0.1  255.255.255.255         On-link       192.168.0.1    276
    192.168.0.255  255.255.255.255         On-link       192.168.0.1    276
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link       192.168.0.1    276
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link       192.168.0.1    276
===========================================================================
Itinéraires persistants :
  Adresse réseau    Masque réseau  Adresse passerelle Métrique
          0.0.0.0          0.0.0.0    192.168.0.254  Par défaut
===========================================================================

IPv6 Table de routage
===========================================================================
Itinéraires actifs :
 If Metric Network Destination      Gateway
  1    306 ::1/128                  On-link
 10     28 2a01:e35:2e2d:10a0::/64  On-link
 10    276 2a01:e35:2e2d:10a0:55f7:dfee:ba64:1e6b/128
                                    On-link
 10    276 2a01:e35:2e2d:10a0:d9ca:8aa2:6a26:f6f2/128
                                    On-link
 10    276 fe80::/64                On-link
 12    306 fe80::/64                On-link
 12    306 fe80::14ff:1b8d:3f57:fffe/128
                                    On-link
 10    276 fe80::d9ca:8aa2:6a26:f6f2/128
                                    On-link
  1    306 ff00::/8                 On-link
 12    306 ff00::/8                 On-link
 10    276 ff00::/8                 On-link
===========================================================================
Itinéraires persistants :
  Aucun

Désolé pour la lenteur de ma réponse.
Merci de ton temps et de ton écoute.


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#30 Le 06/03/2013, à 22:56

toutafai

Re : [Résolus] Pbrs Samba

bizarre samba ne voit plus que lui meme...., Cela peut venir de plusieurs choses.

Essaye de modifier ta connexion eth0 dans network-manager, clic droit sur l'icone > modifier les connexions. Onglet "Filaire", double-clique sur ta connexion , puis dans l'onglet "Parametres IPv4". La mets-toi dans le champs "Méthode" et choisit "Adresses Automatiques uniquement (DHCP), et dans le champs DNS, tu met 192.168.0.254, valide le tout, redemarre ubuntu et re-test samba.

Que tu ai 127.0.0.1 dans le resolv.conf n'est pas anormal, et n'empeche pas (a ma connaissance) samba de fonctionner....

Dernière modification par toutafai (Le 06/03/2013, à 23:00)


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

#31 Le 06/03/2013, à 23:19

lilp

Re : [Résolus] Pbrs Samba

La connexion était déjà en DHCP ac le DNS supplémentaire de renseigner, j'ai tout de même redémarrer le poste, mais etc/resolv.conf, tjrs pas de ligne ac 192.168.0.254 et tjrs aucune vision sur le réseau local ds les 2 sens.


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#32 Le 07/03/2013, à 10:24

toutafai

Re : [Résolus] Pbrs Samba

laisse tomber pour le resolv.conf...du moment qu'il  fait sont boulot (pointer vers un endroit valide ou on saura résoudre/faire resoudre les noms en IP, c'est tout ce qu'on lui demande) et encore une fois, c'est pas lui qui empêche samba de fonctionner.
Aurais tu touché au règles du pare feu (ou tu as installé quelque chose qui l'a fait implicitement a ta place) ? Y a pas le port 138, des regles que dans un seul sens ... bref, tu devrait plutôt avoir cela :

135,139,445/tcp            ALLOW       Anywhere
137,138/udp                ALLOW       Anywhere
80                         ALLOW       Anywhere
53                         ALLOW       Anywhere
135,139,445/tcp            ALLOW       Anywhere (v6)
137,138/udp                ALLOW       Anywhere (v6)
80                         ALLOW       Anywhere (v6)
53                         ALLOW       Anywhere (v6)

vérifie la chose :-)


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

#33 Le 07/03/2013, à 21:32

lilp

Re : [Résolus] Pbrs Samba

J'ai du rajouer le port 80 et 443 depuis notre dernière convers, mais sinon non.
Je devrais annuler tt mes règles et refaire celle que tu m'a donner?


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#34 Le 07/03/2013, à 21:42

toutafai

Re : [Résolus] Pbrs Samba

bizarre, assure toi d'avoir au moins ceuuxqui sont indispensables a samba, c'est a dire :
135,139,445/tcp            ALLOW       Anywhere
137,138/udp                ALLOW       Anywhere
53                         ALLOW       Anywher


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

#35 Le 07/03/2013, à 22:33

lilp

Re : [Résolus] Pbrs Samba

Ils sont tous ouvert et pour la plupart en TCP et UDP


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#36 Le 07/03/2013, à 23:46

toutafai

Re : [Résolus] Pbrs Samba

si tu est sur ? as tu redemarré samba ? si non fait le et re test ? si oui et toujourrs rien donne de retour de

testparm
cat /etc/samba/smb.conf

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

#37 Le 08/03/2013, à 09:00

lilp

Re : [Résolus] Pbrs Samba

Effectivement, il manque le port 138 en retour.
Depuis WIndows je voit le poste Ubuntu, avec tous les partages, mais je n'ai accès que a un seul dossier sur les 3, pourtant dans "dossier partagés", les 3 dossiers ont la même configuration.
Depuis Ubuntu lorsque je clique sur "partage windows", j'ai le message : l'obtention de la liste des partages du serveur a échoué.
Retour de 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 "[Films]"
Processing section "[Series]"
Processing section "[Downloads]"
WARNING: The security=share option is deprecated
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)
	security = SHARE
	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

[Films]
	path = /media/lilphoenix/Films
	read only = No
	guest ok = Yes

[Series]
	path = /media/lilphoenix/Series
	read only = No
	guest ok = Yes

[Downloads]
	path = /home/lilphoenix/Downloads
	read only = No
	guest ok = Yes

Retour de 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 = share

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

# 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

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

;	wins support = no
;	wins support = no
	security = share
;	guest ok = no
;	guest account = nobody
	username map = /etc/samba/smbusers
;	guest ok = no
;	guest account = nobody
;	guest ok = no
;	guest account = nobody
wins support = no
[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

;	browseable = yes
;	browseable = yes


[Films]
path = /media/lilphoenix/Films
available = yes
browsable = yes
public = yes
writable = yes

[Series]
path = /media/lilphoenix/Series
available = yes
browsable = yes
public = yes
writable = yes

[Downloads]
path = /home/lilphoenix/Downloads
available = yes
browsable = yes
public = yes
writable = yes

Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#38 Le 08/03/2013, à 10:40

toutafai

Re : [Résolus] Pbrs Samba

oui pour le port 138 il est nécessaire à samba, c'est pour cela que je te demandais si tu été bien sur de toi sur ce coup !
Sinon le fichier smb.conf a été modifié !
Regarde dans ton fichier smb.conf, la directive workgroup est passée de WORKGROUP à workgroup : Sous Ubuntu, une majuscule n'est pas la même chose qu'une minuscule, et donc tu ne dois plus être sous le même workgroup que ton windows. Modifie ton fichier smb.conf, redémarre samba (voir ubuntu pour être sur) et re test...


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

#39 Le 08/03/2013, à 18:27

lilp

Re : [Résolus] Pbrs Samba

Je viens de modifier le fichier smb.conf pour que sqa donne cela :

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

J'ai redémarrer, mais même soucis depuis WIndows je voit Ubuntu mais accès que a un seul dossier, et depuis Ubuntu je ne voit pas le poste Windows.


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#40 Le 08/03/2013, à 19:38

toutafai

Re : [Résolus] Pbrs Samba

Bon pour le port si tu as bien comme indiqué dans mon post #32, c'est ok..

rajoute cela dons ton fichier smb.conf (juste apres le [Global])

wide links = yes
unix extensions = no

redemmare samba avec

sudo service smbd restart

que dit a nouveau un

sudo smbtree

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

#41 Le 08/03/2013, à 20:36

lilp

Re : [Résolus] Pbrs Samba

Voici le retour de sudo smbtree :

lilphoenix@Serveur:~$ sudo smbtree
Enter root's password: 

Puis rien.


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#42 Le 08/03/2013, à 21:19

toutafai

Re : [Résolus] Pbrs Samba

heu.... essaye apres avoir rebooté....
as tout hasard donne aussi ces retour

cat /etc/hosts
cat /etc/hostname
smbclient --version

le seul partage vu par windows est celui dans ton /home ?

Dernière modification par toutafai (Le 08/03/2013, à 21:20)


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

#43 Le 08/03/2013, à 21:58

lilp

Re : [Résolus] Pbrs Samba

Fichier hosts :

lilphoenix@Serveur:~$  cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	Serveur

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Hostname :

Serveur

SmbVersion :

smbclient --version

OUi le seul partage que je voit est celui de mon /home. "Downloads".


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#44 Le 09/03/2013, à 00:23

toutafai

Re : [Résolus] Pbrs Samba

tu as rien a un "smbtree", et "smbclient --version" ne te renvoi rien ???
que dit un (et on check a nouveau  le parfeu)

testparm
sudo ufw status

PS : je sens que je vais finir par te refaire ré-installer samba si cela continue


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

#45 Le 09/03/2013, à 15:00

lilp

Re : [Résolus] Pbrs Samba

Smbclient : 3.6.6
Et oui, je n'ai plus rien avec smbtree, il me demande un mdp, mais aucun ne passe (vide, ou ceux habituel).
Voici mon 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 "[Films]"
Processing section "[Series]"
Processing section "[Downloads]"
WARNING: The security=share option is deprecated
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)
	security = SHARE
	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
	unix extensions = No
	dns proxy = No
	usershare allow guests = Yes
	panic action = /usr/share/samba/panic-action %d
	idmap config * : backend = tdb
	wide links = Yes

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

[Films]
	path = /media/lilphoenix/Films
	read only = No
	guest ok = Yes

[Series]
	path = /media/lilphoenix/Series
	read only = No
	guest ok = Yes

[Downloads]
	path = /home/lilphoenix/Downloads
	read only = No
	guest ok = Yes

Et voici donc mes règlesz de parefeu :

État : actif

Vers                       Action      Depuis
----                       ------      ------
445                        ALLOW       Anywhere
137                        ALLOW       Anywhere
135                        ALLOW       Anywhere
139/tcp                    ALLOW       Anywhere
53                         ALLOW       Anywhere
5050/tcp                   ALLOW       Anywhere
8081/tcp                   ALLOW       Anywhere
8082/tcp                   ALLOW       Anywhere
8082                       ALLOW       Anywhere
8081                       ALLOW       Anywhere
5050                       ALLOW       Anywhere
80                         ALLOW       Anywhere
443                        ALLOW       Anywhere
22/tcp                     ALLOW       Anywhere
138/udp                    ALLOW       Anywhere
445                        ALLOW       Anywhere (v6)
137                        ALLOW       Anywhere (v6)
135                        ALLOW       Anywhere (v6)
139/tcp                    ALLOW       Anywhere (v6)
53                         ALLOW       Anywhere (v6)
8082                       ALLOW       Anywhere (v6)
8081                       ALLOW       Anywhere (v6)
5050                       ALLOW       Anywhere (v6)
80                         ALLOW       Anywhere (v6)
443                        ALLOW       Anywhere (v6)
22/tcp                     ALLOW       Anywhere (v6)

445                        ALLOW OUT   Anywhere
137                        ALLOW OUT   Anywhere
135                        ALLOW OUT   Anywhere
139/tcp                    ALLOW OUT   Anywhere
138/udp                    ALLOW OUT   Anywhere
53                         ALLOW OUT   Anywhere
80                         ALLOW OUT   Anywhere
443                        ALLOW OUT   Anywhere
22/tcp                     ALLOW OUT   Anywhere
445                        ALLOW OUT   Anywhere (v6)
137                        ALLOW OUT   Anywhere (v6)
135                        ALLOW OUT   Anywhere (v6)
139/tcp                    ALLOW OUT   Anywhere (v6)
138/udp                    ALLOW OUT   Anywhere (v6)
53                         ALLOW OUT   Anywhere (v6)
80                         ALLOW OUT   Anywhere (v6)
443                        ALLOW OUT   Anywhere (v6)
22/tcp                     ALLOW OUT   Anywhere (v6)

Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#46 Le 10/03/2013, à 19:57

lilp

Re : [Résolus] Pbrs Samba

Je me demande si j'annule toutes les règles du parefeu avec ufgw, puis que je supprime Samba et que je le réinstalle ,cela serait-il utile?


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#47 Le 11/03/2013, à 18:17

toutafai

Re : [Résolus] Pbrs Samba

Bonjour,

Désolé pour le délais de réponse, mais week end "tres chargé" oblige...je vois pas ce qui merdasse.....

Oui, c'est ce que je ferais si j'étais à ta place : purge complète de samba, y compris des fichiers de conf (tu peux eventuellement sauvegarder ton smb.conf), puis réinstallation.


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

#48 Le 12/03/2013, à 08:25

lilp

Re : [Résolus] Pbrs Samba

J''espère que le week-end a été bon, je ne vais pas râler car tu n'a pas répondus durant un weekend-end, tu passes déjà beaucoup de temps sur mon problème, tout a fait normal que tu n'est pas que mon soucis dans ta vie.
J'ai supprimer toutes les règles du parefeu, supprimez Samba "apt-get remove --purge samba" et "apt-get autoremove", puis j'ai redémarré, j'ai remis seulement les règles que tu 'avais dit, puis installer Samba, redémarré.
Et maintenant depuis Windiws je voit tous les partages mais n'ai accès qu'a ceux présent dans /home, mais depuis Xubuntu, je ne voit pas mon poste Windows.


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#49 Le 12/03/2013, à 12:10

lilp

Re : [Résolus] Pbrs Samba

J'ai désactiver le parefeu que j'avais sous Windows (oui je suis bête), et jai accès depuis Ubuntu a mon poste Windows. Mais depuis Windiws toujours impossible de se connecter au dossiers autres que ceux présent dans /home, si je fait un liens symbolique de /media/lilphoenix vers /home/media, cela pourrait-il fonctionner?


Boitié : Silvertstone Grandria GD06B/Alimentation : Antec Earthwatts Green 380W/Ram : 4Go Kingston ValueRam DDRII PC6400/CG : MSI GeForce GT610 2Go/HDD OS: Seagate Barracuda SATA 2TB 3.5in. HDD/CM :  Intel D946gzis/HDD Data: 2*4To de WD avec 64Mo de cache et 7200trs/mns.
Rsync des data sur 2HDD USB de 2*2To/Timeshift de l'os/Owncloud+Serveur ProjectZomboid+Plex+VPN+Flexget

Hors ligne

#50 Le 12/03/2013, à 14:17

toutafai

Re : [Résolus] Pbrs Samba

oui, bien vue pour le lien symbolique, j'aurais aussi opté pour cette option...car a mon avis c'est une question de droit sur les dossiers montés...


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