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 23/08/2014, à 19:26

Neibaf41

Probleme partage smb

Bonsoir à tous,
Je m'arrache les cheveux depuis cette après midi sur le partage de mes dossiers en smb.
J'ai un pc de stockage (sous Ubuntu 14 / LinuxMint 17) sur lequel je veux partager certains dossiers et un Raspberry Pi en media center (OpenElec 4.0.7).
Le probleme est que lorsque je veux accèder aux dossiers (depuis le Rpi ou depuis le pc en passant par le réseau), il me demande l'identifiant/mdp. J'ai rentré mes identifiants de connexion mais il me les redemande sans arrêt. Si je modifie les paramètres de partage, il me dit qu'il ne peut accèder au dossier

Impossible de monter le partage Windows : Permission non accordée

Comment puis je corriger ça ?

PS : j'ai réinstaller samba et j'ai aussi installé la GUI pour samba mais même résultat.

Hors ligne

#2 Le 26/08/2014, à 21:57

Neibaf41

Re : Probleme partage smb

Re
J'avance un petit peu dans mon probleme de partage.
J'arrive à accèder a mes dossiers partagés sur le disque system mais toujours pas aux dossiers partagés sur mes 2 disques. Est c e que le montage automatique des 2 disques peut poser probleme ? Car la je ne vois pas o_O

Hors ligne

#3 Le 26/08/2014, à 22:55

toutafai

Re : Probleme partage smb

Bonsoir,

Les droit samba sont un peu particulier car ils dependent de plusieurs choses (droit des utilisateur samba, les droits et proprietaire du/des dossiers partagé. De plus il faut distinguer deux type de partage, les partages utilisateurs (fait pour etre simple d'utilisation mais pas beaucoup parametrables et pas vraiement standart), et les partages administrateurs, les vrai partage samba.

Ton problème est que tu as juste la partie partage utilisateur, et que maintenant il te faut la partie administrateur. Les docs suivantes te diront tous ce que tu dois savoir :
comment configurer samba

Pour bien faire et a condition d'être un barbu ^^ ,il faudrait editer le fichier smb.conf a la main pour configurer les partages et le serveur, mais bon tu peux utiliser cela xD


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

#4 Le 27/08/2014, à 06:56

Neibaf41

Re : Probleme partage smb

OK, je vais regarder ça ce soir.
J'ai dejà utiliser system-config-samba et ça change rien :-(

Hors ligne

#5 Le 27/08/2014, à 13:39

toutafai

Re : Probleme partage smb

Normal que cele ne change rien, il faut configurer samba  : le fichier smb.conf + configurer son systeme (reseau au "p'tits oignons" nmbd et pare feu)


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

#6 Le 27/08/2014, à 13:43

PPdM

Re : Probleme partage smb

Le partage est sur un Windows ?

Impossible de monter le partage Windows : Permission non accordée

La critique est facile, mais l'art est difficile !
L'humanité étant ce qu'elle est, la liberté ne sera jamais un acquit, mais toujours un droit à défendre !
Pour résoudre un problème commence par poser les bonnes questions, la bonne solution en découlera

Hors ligne

#7 Le 27/08/2014, à 18:41

Neibaf41

Re : Probleme partage smb

C'est un partage smb sous ubuntu pour partager avec un Rpi et le PC de mon fils sous LXLE.

Dernière modification par Neibaf41 (Le 27/08/2014, à 23:28)

Hors ligne

#8 Le 27/08/2014, à 23:33

Neibaf41

Re : Probleme partage smb

Re, je vois pas o_O
Ou bien j'ai les yeux qui ne sont plus en fasse des trous lol
Voici mon fichier 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. 

#======================= 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, Linux Mint)

# 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

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

# Server role. Defines in which mode Samba will operate. Possible
# values are "standalone server", "member server", "classic primary
# domain controller", "classic backup domain controller", "active
# directory domain controller". 
#
# Most people will want "standalone sever" or "member server".
# Running as "active directory domain controller" will require first
# running "samba-tool domain provision" to wipe databases and create a
# new domain.
	server role = standalone server

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

#
# The following settings only takes effect if 'server role = primary
# classic domain controller', 'server role = backup domain controller'
# or '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

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

# 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

# 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
	security = share
;	encrypt passwords = yes
;	guest ok = no
;	guest account = nobody

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

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

[Samsung]
	comment = HDD Samsung
	browseable = yes
	path = /media/neibaf/Samsung
	guest ok = yes
	read only = no
	force user = nobody
	force group = nogroup
;	create mask = 0600
;	directory mask = 0700

[WD]
	comment = HDD WD
	browseable = yes
	path = /media/neibaf/WD
	guest ok = yes
	read only = no
	force user = nobody
	force group = nogroup
;	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
;	read only = yes
;	guest ok = no
# 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

Hors ligne

#9 Le 27/08/2014, à 23:38

jplemoine

Re : Probleme partage smb

essaies d'ajouter public=yes...


Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.

Hors ligne

#10 Le 28/08/2014, à 16:36

toutafai

Re : Probleme partage smb

il faudrait aussi voir quel sont les droits et proprietaires sur le dossier partagé. Retour de

ls -la /media/neibaf

je rajoute retour de

sudo smbtree #lors de la demande du mot de passe root, soit on en a mis un et donc on le rentre, si on n'en a pas mit, on laisse vide en validant avec la touche entrée
sudo ufw status # si la commande ne repond rien faire la suivante
sudo iptables -L

Dernière modification par toutafai (Le 28/08/2014, à 16:37)


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

#11 Le 28/08/2014, à 18:20

Neibaf41

Re : Probleme partage smb

Voici :

neibaf@Neibaf ~ $ ls -la /media/neibaf
total 16
drwxr-x---+  4 root   root   4096 août  27 06:37 .
drwxr-xr-x   3 root   root   4096 août  23 12:47 ..
drwxrwxrwx  11 neibaf neibaf 4096 août  23 18:09 Samsung
drwxrwxrwx  13 neibaf neibaf 4096 juil.  8 21:14 WD

et voici (pas de mdp root):

neibaf@Neibaf ~ $ sudo smbtree
WARNING: Ignoring invalid value 'share' for parameter 'security'
Enter root's password: 
WORKGROUP
	\\OPENELEC       		OpenELEC
		\\OPENELEC\IPC$           	IPC Service (OpenELEC)
		\\OPENELEC\Backup         	
		\\OPENELEC\Logfiles       	
		\\OPENELEC\Screenshots    	
		\\OPENELEC\Userdata       	
		\\OPENELEC\Configfiles    	
		\\OPENELEC\Emulators      	
		\\OPENELEC\Pictures       	
		\\OPENELEC\Downloads      	
		\\OPENELEC\Recordings     	
		\\OPENELEC\TV Shows       	
		\\OPENELEC\Music          	
		\\OPENELEC\Videos         	
		\\OPENELEC\Update         	
	\\NEIBAF         		Neibaf server (Samba, Linux Mint)
		\\NEIBAF\Samsung        	HDD Samsung
		\\NEIBAF\WD             	HDD WD
	\\LIVEBOX        		Livebox
		\\LIVEBOX\USB2           	Additional storage
		\\LIVEBOX\IPC$           	IPC Service (Livebox)
neibaf@Neibaf ~ $
neibaf@Neibaf ~ $ sudo ufw status
État : inactif
neibaf@Neibaf ~ $ sudo iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
neibaf@Neibaf ~ $

Hors ligne

#12 Le 28/08/2014, à 18:27

jplemoine

Re : Probleme partage smb

Dans les paramètres de définition de ton partage, il faut que tu mettes public=yes. Si ça fonctionne, c'est peut-être que l’identification est incorrecte et/ou que le client  n'envoie pas les informations pour t’identifier.


Membre de l'ALDIL (Association Lyonnaise pour le Développement de l'Informatique Libre)
- En pro, après 20 ans de développement, administrateur Linux / Unix depuis Avril 2019.
- En privé, sous Ubuntu-Xubuntu depuis 2009.

Hors ligne

#13 Le 28/08/2014, à 19:11

Neibaf41

Re : Probleme partage smb

le public=yes ne change rien, au pire ça plante le partage.

Hors ligne

#14 Le 28/08/2014, à 19:28

sinbad83

Re : Probleme partage smb

Peux-tu donner le retour de

testparm -s

Pourquoi ne pas utiliser un partage NFS ?


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#15 Le 28/08/2014, à 19:53

Neibaf41

Re : Probleme partage smb

neibaf@Neibaf ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: Ignoring invalid value 'share' for parameter 'security'
Processing section "[netlogon]"
Processing section "[Samsung]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
	server string = %h server (Samba, Linux Mint)
	server role = standalone server
	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* .
	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
	comment = Home Directories
	read only = No
	guest ok = Yes

[netlogon]
	comment = Network Logon Service
	path = /home/samba/netlogon

[Samsung]
	comment = HDD Samsung
	path = /media/neibaf/Samsung
	force user = nobody
	force group = nogroup

[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
neibaf@Neibaf ~ $ 

Je n'y ai pas pensé et je n'ai pas cherché à faire un autre partage que le SMB.
Je vais y jeter un oeil quand même.

Hors ligne

#16 Le 28/08/2014, à 23:52

sinbad83

Re : Probleme partage smb

Il y a quelque chose qui ne va pas:
- dans les partages présents dans smb.conf, il y a [Samsung] et [WD], paramétrés de la même façon,
- on les retrouve dans le retour de smbtree, c'est normal,
- pourtant seul, Samsung figure avec testparm -s,
- que peut donner alors la commande suivante ?

smbclient -L localhost

Pour les partages, je simplifierais le smb.conf. Par exemple:

[Samsung]
	path = /media/neibaf/Samsung
        comment = Samsung
        writeable = Yes
        read only = No

Tu termines par

sudo service smbd restart

et tu vérifies par

testparm -s

et ensuite en grandeur nature.

Dernière modification par sinbad83 (Le 28/08/2014, à 23:55)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#17 Le 29/08/2014, à 06:48

Neibaf41

Re : Probleme partage smb

sinbad83 a écrit :

Il y a quelque chose qui ne va pas:
- dans les partages présents dans smb.conf, il y a [Samsung] et [WD], paramétrés de la même façon,
- on les retrouve dans le retour de smbtree, c'est normal,
- pourtant seul, Samsung figure avec testparm -s,
- que peut donner alors la commande suivante ?

smbclient -L localhost

C'est normal, pour faire plus simple pour l'instant, j'ai retire le partage WD, je le remettrais une fois que ca marchera en copiant samsung.

neibaf@Neibaf ~ $ smbclient -L localhost
WARNING: Ignoring invalid value 'share' for parameter 'security'
Enter neibaf's password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]

	Sharename       Type      Comment
	---------       ----      -------
	netlogon        Disk      Network Logon Service
	Samsung         Disk      HDD Samsung
	print$          Disk      Printer Drivers
	IPC$            IPC       IPC Service (Neibaf server (Samba, Linux Mint))
	HP-Photosmart-C3100-series Printer   HP Photosmart C3100 series
	Téléchargements Disk      
	Soft Paris      Disk      
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]

	Server               Comment
	---------            -------
	NEIBAF               Neibaf server (Samba, Linux Mint)
	OPENELEC             OpenELEC

	Workgroup            Master
	---------            -------
	WORKGROUP            OPENELEC
neibaf@Neibaf ~ $ 

J'ai modifié le smb.conf :

neibaf@Neibaf ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: Ignoring invalid value 'share' for parameter 'security'
Processing section "[netlogon]"
Processing section "[Samsung]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
	server string = %h server (Samba, Linux Mint)
	server role = standalone server
	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* .
	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
	comment = Home Directories
	read only = No
	guest ok = Yes

[netlogon]
	comment = Network Logon Service
	path = /home/samba/netlogon

[Samsung]
	comment = Samsung
	path = /media/neibaf/Samsung

[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
neibaf@Neibaf ~ $ 

Même résultat, disque visible mais :

Impossible de monter le partage Windows : Permission non accordée

Dernière modification par Neibaf41 (Le 29/08/2014, à 06:55)

Hors ligne

#18 Le 29/08/2014, à 08:37

remi82

Re : Probleme partage smb

Bonjour Neibaf41,

Premièrement, tu souhaites accéder à ton partage avec un identifiant ou pas ?
En fonction de ça, on verra la suite.

Hors ligne

#19 Le 29/08/2014, à 09:48

toutafai

Re : Probleme partage smb

Bonjour,

En même temps, le pare feu n'est pas configuré.... roll


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

#20 Le 29/08/2014, à 17:06

Neibaf41

Re : Probleme partage smb

remi82 a écrit :

Bonjour Neibaf41,

Premièrement, tu souhaites accéder à ton partage avec un identifiant ou pas ?
En fonction de ça, on verra la suite.

Je ne souhaite pas d'identifiant pour mes partages, trop "chiant"


toutafai a écrit :

Bonjour,

En même temps, le pare feu n'est pas configuré.... roll

Non, je n'ai pas encore pris le temps de le faire.

Hors ligne

#21 Le 30/08/2014, à 15:42

sinbad83

Re : Probleme partage smb

Dans le smb.conf actuel, tu as omis les paramètres de partage de [Samsung]:

     writeable = Yes
     read only = No

D'autre part, tu n'as pas envoyé le retour de

testparm -s 

pour voir comment Samba comprend les partages.

Dernière modification par sinbad83 (Le 30/08/2014, à 15:43)


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#22 Le 30/08/2014, à 19:36

Neibaf41

Re : Probleme partage smb

neibaf@Neibaf ~ $ testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
WARNING: Ignoring invalid value 'share' for parameter 'security'
Processing section "[netlogon]"
Processing section "[Samsung]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
	server string = %h server (Samba, Linux Mint)
	server role = standalone server
	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* .
	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
	comment = Home Directories
	read only = No
	guest ok = Yes

[netlogon]
	comment = Network Logon Service
	path = /home/samba/netlogon

[Samsung]
	comment = Samsung
	path = /media/neibaf/Samsung

[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
neibaf@Neibaf ~ $ 

Hors ligne

#23 Le 31/08/2014, à 14:34

sinbad83

Re : Probleme partage smb

Tu n'as pas corrigé les paramètres du partage [Samsung].


La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne

#24 Le 31/08/2014, à 19:56

Neibaf41

Re : Probleme partage smb

Bah si, je l'ai vérifié avant faire testparm o_O
Le fichier est correct.

Hors ligne

#25 Le 31/08/2014, à 20:01

sinbad83

Re : Probleme partage smb

Peux-tu redonner le retour de

cat /etc/samba/smb.conf

La connaissance n'est pas une denrée rare, il faut la partager avec les autres.
Linux registered #484707
Site: www.coursinforev.org/doku.php
Desktop AMD Ryzen 5-3600, RAM 16GB, Ubuntu 20.10,   HP Pavillon G6 Ubuntu 20.10 et Ten, Serveur Ubuntu 18.04

Hors ligne