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 28/03/2015, à 13:41

Martou1

Partage de dossier Ubuntu vers W7

Bonjour, alors je voudrais partager un Disque dur entier pour pouvoir y acceder depuis mon ordinateur portable qui est sous W7.
Mais je m'y perd car je n'y arrive pas...
J'avais bien au début cocher "partage de réseau local" et n'y arrivant pas j'ai installer samba via le terminal et depuis je n'ai plus l'onglet de partage, disparu dans les propriétés de mon disque dur...
J'ai alors installer ensuite libpam-smbpass mais toujours pareille...
Que faire ?
Merci !

Hors ligne

#2 Le 28/03/2015, à 14:20

Braun

Re : Partage de dossier Ubuntu vers W7

Bonjour,
A priori, partager un disque dur est un peu abstrait.
Tu montes une partition de ton DD et tu utilises Samba pour partager cette partition.
Question Samba, tout est dans le fichier smb.conf qu'il te faudra éditer selon tes désirs.

Hors ligne

#3 Le 04/04/2015, à 12:03

Martou1

Re : Partage de dossier Ubuntu vers W7

Eh bien en gros je veut partager ma seul et unique partition présente sur mon DD.
Oui j'ai entendu parler de samba...
Alors voila ce que j'ai mis : (la 1ere ligne je ne sais pas ce que c'est je n'ai jamais entrer celle-ci...j'ai uniquement entrer la 2nd ligne)
samba http://hpics.li/588cab4
Mais alors ensuite comment le reperer sur mon ordi sous W7 ?

Dernière modification par Martou1 (Le 04/04/2015, à 12:04)

Hors ligne

#4 Le 04/04/2015, à 12:19

Braun

Re : Partage de dossier Ubuntu vers W7

Martou1 a écrit :

Mais alors ensuite comment le reperer sur mon ordi sous W7 ?

Dès lors qu'un partage est proposé, tu devrais le voir depuis W7, soit par le nom de la machine, soit par son adresse IP.
P.S. Je ne sais si cela a encore de l'importance, mais en général j'évite tout espace dans un identifiant.

Hors ligne

#5 Le 04/04/2015, à 13:05

Martou1

Re : Partage de dossier Ubuntu vers W7

Ah oui d'accord, je suis débutant et même après mes recherches je n'arrive pas a voir où voir mon adresse ip de ma machine ubuntu ou où voir son nom...
D'accord je vais ça du coup !

Dernière modification par Martou1 (Le 04/04/2015, à 13:06)

Hors ligne

#6 Le 11/04/2015, à 18:11

Martou1

Re : Partage de dossier Ubuntu vers W7

Bonjour, alors je pense avancé un peu :
mini_164204Capturedu20150411190241.png

Donc ensuite dans W7 je tape :
mini_24139357W7.png

et ça me donne l'erreur qui est sur l'image ci-dessus...
merci !

Hors ligne

#7 Le 11/04/2015, à 19:02

PPdM

Re : Partage de dossier Ubuntu vers W7

salut
c'est quoi ce nom ?
Ensuite que cela soit sous Windows ou sous Linux on ne partage jamais un disque mais un dossier, question de sécurité si tu as accès au disque tu risque de flinguer ton système.
De memoire, mais je peut me tromper , Linux n’autorise pas le partage de disque, ce qui est une bonne chose.
Lis ceci pour commencer


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

#8 Le 11/04/2015, à 19:48

Braun

Re : Partage de dossier Ubuntu vers W7

Bonsoir,
Pour l'adresse IP de ta machine, la commande :

sudo ifconfig

devrait te renseigner.

Hors ligne

#9 Le 11/04/2015, à 23:27

Martou1

Re : Partage de dossier Ubuntu vers W7

Alors j'ai tout desinstaller et repris depuis le debut .
Alors j'ai tenté de partager un dossier (Martin) voici un screen :
mini_963008Capturedu20150412001731.png

et dans samba en graphique j'ai :
mini_615026Capturedu20150412002042.png

et dans W7 je ne vois pas ma machine...
mini_28930868W7.png

Merci beaucoup de votre aide !

Hors ligne

#10 Le 12/04/2015, à 05:01

AlexandreP

Re : Partage de dossier Ubuntu vers W7

Bonjour,

En me fiant aux images que tu viens de poster:
- Le nom de ta machine (hostname) est Martin-Aspire-M3100;
- Le nom du partage réseau (shared folder) auquel tu souhaites accéder est Seagateshare.*

Pour accéder à ce partage depuis ton ordinateur sous Windows 7, dans la barre d'adresses de l'Explorateur Windows, saisis l'information suivante:
\\Martin-Aspire-M3100\Seagateshare

Si ça ne fonctionne pas -- c'est possible que Windows ait de la difficulté à trouver ton ordinateur par ton nom d'hôte --, utilises la commande ifconfig pour trouver ton adresse IP, comme le propose plus haut Braun. Avec cette information en main, tu pourras accéder à ton partage réseau depuis ton poste Windows en saisissant, dans la barre d'adresses de l'Explorateur Windows:
\\[adresse_IP_du_poste_Ubuntu]\Seagateshare
Ex: si ton adrese IP est 192.168.0.100: \\192.168.0.100\Seagateshare



*À noter que les partages réseau utilisateur (ceux créés par Nautilus) n'apparaissent pas dans l'interface de configuration de Samba. Le fichier de configuration de Samba ne contient que les partages réseau administratifs, créés par le compte système. Du coup, ce que tu vois dans l'interface de Samba est normal.


«La capacité d'apprendre est un don; La faculté d'apprendre est un talent; La volonté d'apprendre est un choix.» -Frank Herbert
93,8% des gens sont capables d'inventer des statistiques sans fournir d'études à l'appui.

Hors ligne

#11 Le 12/04/2015, à 07:21

PPdM

Re : Partage de dossier Ubuntu vers W7

Je plussoie


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

#12 Le 12/04/2015, à 21:50

Martou1

Re : Partage de dossier Ubuntu vers W7

Alors merci beaucoup @AlexandreP j'ai avancer grâce a toi.

Alors le paramétrage sur W7 a très bien marché (enfin...vous comprendrez la ligne juste en dessous wink )avec l'adresse ip (pas avec le nom, ça me mettait l'erreur dont j'ai mis l'image au post 6)

Mais juste après avoir cliqué sur terminer (qui se situe a la toute fin du paramétrage du partage sur W7) ici :
mini_70900155W7.png

et bien j'ai cette erreur :
mini_244806W71.png

et pourtant je vois bien mon partage réseau dans mon explorateur de fichiers : (ICI nommée Seagate 3To LINUX, ne vous occupez pas de Seagate 3To ça n'as rien a voir) :
mini_932491W72.png

et lorsque je clique dessus je retombe sur la même erreur... :
mini_117796W73.png

merci beaucoup !

Hors ligne

#13 Le 12/04/2015, à 22:02

Braun

Re : Partage de dossier Ubuntu vers W7

Bonsoir,
Normal, c'est en général la première étape.
Pour que ton « Seagateshare » puisse être ouvert il te faut deux clefs :
1/ Que le répertoire local lui correspondant soit lui même accessible par à peu près n'importe qui.
2/ Que le fichier smb.conf fournisse les droits d'accès à l'utilisateur Windows concerné.
Pour en dire plus il faudrait que tu nous présentes au moins le passage de smb.conf concernant ce partage.

Hors ligne

#14 Le 12/04/2015, à 22:15

Martou1

Re : Partage de dossier Ubuntu vers W7

D'accord, alors je n'ai strictement aucunes idées de comment faire cela...
le 1) comment faire ?
et le 2) de même, comment faire ?

Je ne sais pas du tout comment montrer cela...

Hors ligne

#15 Le 12/04/2015, à 22:20

Braun

Re : Partage de dossier Ubuntu vers W7

Ach,
Voir ou revoir la doc minimale.

Hors ligne

#16 Le 12/04/2015, à 22:52

Martou1

Re : Partage de dossier Ubuntu vers W7

Ok alors voici ce que j'ai mis grâce a samba (que je n'avais pas du tout fait avant), dans mon fichier smb.conf j'ai donc a la fin :

[Seagateshare]
	path = /media/martin/Seagate Barracuda1/Martin
	writeable = yes
;	browseable = yes
	guest ok = yes

et toujours pareille...

Dernière modification par Martou1 (Le 12/04/2015, à 22:53)

Hors ligne

#17 Le 13/04/2015, à 05:32

PPdM

Re : Partage de dossier Ubuntu vers W7

tu peux donner la totalité de ton smb.conf?
Merci
il doit ressembler a ça

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

# 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

#### 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
	username map = /etc/samba/smbusers
	security = user
;	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 = 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
# 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
;	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

[Partages]
	path = /media/pierreg/DATAS/Partages
	writeable = yes
;	browseable = yes
	guest ok = yes

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

#18 Le 13/04/2015, à 10:39

Martou1

Re : Partage de dossier Ubuntu vers W7

Ok, le voici :

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

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

[Seagateshare]
	path = /media/martin/Seagate Barracuda1/Martin
	writeable = yes
;	browseable = yes
	guest ok = yes

Hors ligne

#19 Le 13/04/2015, à 12:42

Braun

Re : Partage de dossier Ubuntu vers W7

Bonjour,
Il me semble que tu pourrais « décommenter » la ligne

browseable = yes

et rajouter une ligne

public = yes

Ceci mis à part quels sont les droits locaux (ls -l) du répertoire :

/media/martin/Seagate Barracuda1/Martin

Hors ligne

#20 Le 13/04/2015, à 14:14

Martou1

Re : Partage de dossier Ubuntu vers W7

Ok donc je fait :

[Seagateshare]
	path = /media/martin/Seagate Barracuda1/Martin
	writeable = yes
;	public = yes
	guest ok = yes

voici les permissions :
mini_770768Capturedu20150413151016.png

Hors ligne

#21 Le 13/04/2015, à 14:21

PPdM

Re : Partage de dossier Ubuntu vers W7

martin = aucun c'est pas top !! yikes


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

#22 Le 13/04/2015, à 14:35

Martou1

Re : Partage de dossier Ubuntu vers W7

Je suis incapable de changer les permission en graphique et en ligne de commande...
graphique --> je clique sur ce que je veut ça reviens automatiquement sur "aucuns"
en ligne de commande  je tape "chmod a+rwx Martin" car mon terminal a été ouvert a la base de mon DD ou se trouve mon dossier "Martin" donc c'est pour cela que je précise le dossier martin après "chmod a+rwx".
ca a l'air de marcher et lorsque je regarde en graphique si qqchose a changer c'est toujours pareille...
actuellement je suis comme ça :
mini_114560Capturedu20150413153154.png

Dernière modification par Martou1 (Le 13/04/2015, à 14:38)

Hors ligne

#23 Le 13/04/2015, à 15:04

Braun

Re : Partage de dossier Ubuntu vers W7

Aie, je crois que nous comprenons pas.
Pour le smb.conf « décommenter » une ligne signifie enlever le point virgule en tête de ligne.
Une ligne commençant par un point virgule ne servant à rien.
Je m'attendais à quelque chose comme ça :

[Seagateshare]
	path = /media/martin/Seagate Barracuda1/Martin
	writeable = yes
 	browseable = yes
	guest ok = yes
  	public = yes      

En ce qui concerne les droits, tu t'ouvres une console et tapes :

cd "/media/martin/Seagate Barracuda1/"
ls -l 

Hors ligne

#24 Le 13/04/2015, à 15:09

Martou1

Re : Partage de dossier Ubuntu vers W7

A autant pour moi sad
je viens donc de faire comme tu m'as mis.

Oui regarde ma deuxieme image a mon post juste au dessus j'ai bien cela .
merci beaucoup en tout cas !

Hors ligne

#25 Le 13/04/2015, à 15:15

Braun

Re : Partage de dossier Ubuntu vers W7

Plutôt que des images, si tu pouvais recopier les messages entre deux balises de code, c'est plus lisible.
Bref, tu peux maintenant tenter une ouverture totale :

sudo chmod 777 Martin

Quitte à affiner ensuite.

Hors ligne