Samba / Windows 7 : sous proxmox

Samba / Windows 7 : sous proxmox - Réseaux - Réseaux grand public / SoHo

Marsh Posté le 24-05-2012 à 00:56:13    

Bonjour à tous,
 
 
Cela fait maintenant 3 jours que je m'arrache les cheveux pour faire fonctionner un serveur Samba sur un environnement virtualisé.
J'utilise proxmox sur un serveur dans lequel j'ai créé une Machine virtuelle "Windows 7" et une machine virtuelle "debian 6".
 
Je veux installer Samba sur la VM Debian et pouvoir y accéder de ma VM windows. J'ai suivi des tas de tuto et le dernier en date :  
http://www.unixmen.com/standalone- [...] n-squeeze/
 
Et au final, toujours impossible d'accéder au répertoire partagé via ma VM windows. Taper l'IP du serveur dans windows me donne l'erreur suivante (après le tuto précédent)  :  
"\\192.168.0.x n'est pas accessible. Vous ne disposez....  
Le nom réseau spécifié n'est plus disponible."
 
J'avais fait des tests aussi sans "authentification" (qui ne m'est pas vraiment nécessaire). En commentant la ligne "security=user" complètement, j'obtiens l'erreur suivante :  
"\\192.168.0.x n'est pas accessible....
Le compte n'est pas autorisé à se connecter depuis cette station"
 
Si je remets le paramètre mais en le mettant à "share" (pour ne pas avoir d'authentification), j'obtiens :  
"\\192.168.0.x n'est pas accessible...
L'appel de la procédure distante a échoué et ne s'est pas exécuté"
 
Quoi que je tente, mon windows refuse obstinément de se connecter au répertoire partagé. C'est incompréhensible et je ne sais pas comment trouver ce qui ne fonctionne pas.
 
Avez-vous une idée ? de quoi avez-vous besoin pour vous aider à m'aider :-) ?
Je vous mets mon actuel fichier smb.conf
 

Code :
  1. #
  2. # Sample configuration file for the Samba suite for Debian GNU/Linux.
  3. #
  4. #
  5. # This is the main Samba configuration file. You should read the
  6. # smb.conf(5) manual page in order to understand the options listed
  7. # here. Samba has a huge number of configurable options most of which
  8. # are not shown in this example
  9. #
  10. # Some options that are often worth tuning have been included as
  11. # commented-out examples in this file.
  12. #  - When such options are commented with ";", the proposed setting
  13. #    differs from the default Samba behaviour
  14. #  - When commented with "#", the proposed setting is the default
  15. #    behaviour of Samba but the option is considered important
  16. #    enough to be mentioned here
  17. #
  18. # NOTE: Whenever you modify this file you should run the command
  19. # "testparm" to check that you have not made any basic syntactic
  20. # errors.
  21. # A well-established practice is to name the original file
  22. # "smb.conf.master" and create the "real" config file with
  23. # testparm -s smb.conf.master >smb.conf
  24. # This minimizes the size of the really used smb.conf file
  25. # which, according to the Samba Team, impacts performance
  26. # However, use this with caution if your smb.conf file contains nested
  27. # "include" statements. See Debian bug #483187 for a case
  28. # where using a master file is not a good idea.
  29. #
  30. #======================= Global Settings =======================
  31. [global]
  32. ## Browsing/Identification ###
  33. # Change this to the workgroup/NT-domain name your Samba server will part of
  34.    workgroup = RADIOHOME
  35. # server string is the equivalent of the NT Description field
  36.    server string = %h server
  37. # Windows Internet Name Serving Support Section:
  38. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  39. #   wins support = no
  40. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  41. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  42. ;   wins server = w.x.y.z
  43. # This will prevent nmbd to search for NetBIOS names through DNS.
  44.    dns proxy = no
  45. # What naming service and in what order should we use to resolve host names
  46. # to IP addresses
  47. ;   name resolve order = lmhosts host wins bcast
  48. #### Networking ####
  49. # The specific set of interfaces / networks to bind to
  50. # This can be either the interface name or an IP address/netmask;
  51. # interface names are normally preferred
  52.    interfaces = 192.168.0.0/24 eth0
  53. # Only bind to the named interfaces and/or networks; you must use the
  54. # 'interfaces' option above to use this.
  55. # It is recommended that you enable this feature if your Samba machine is
  56. # not protected by a firewall or is a firewall itself.  However, this
  57. # option cannot handle dynamic or non-broadcast interfaces correctly.
  58. ;   bind interfaces only = yes
  59. #### Debugging/Accounting ####
  60. # This tells Samba to use a separate log file for each machine
  61. # that connects
  62.    log file = /var/log/samba/log.%m
  63. # Cap the size of the individual log files (in KiB).
  64.    max log size = 1000
  65. # If you want Samba to only log through syslog then set the following
  66. # parameter to 'yes'.
  67. #   syslog only = no
  68. # We want Samba to log a minimum amount of information to syslog. Everything
  69. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  70. # through syslog you should set the following parameter to something higher.
  71.    syslog = 0
  72. # Do something sensible when Samba crashes: mail the admin a backtrace
  73.    panic action = /usr/share/samba/panic-action %d
  74. ####### Authentication #######
  75. # "security = user" is always a good idea. This will require a Unix account
  76. # in this server for every user accessing the server. See
  77. # /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
  78. # in the samba-doc package for details.
  79.    security = user
  80. # You may wish to use password encryption.  See the section on
  81. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  82.    encrypt passwords = true
  83. # If you are using encrypted passwords, Samba will need to know what
  84. # password database type you are using.
  85.    passdb backend = tdbsam
  86.    obey pam restrictions = yes
  87. # This boolean parameter controls whether Samba attempts to sync the Unix
  88. # password with the SMB password when the encrypted SMB password in the
  89. # passdb is changed.
  90.    unix password sync = yes
  91. # For Unix password sync to work on a Debian GNU/Linux system, the following
  92. # parameters must be set (thanks to Ian Kahan <<kahan@informatik.tu-muenchen.de> for
  93. # sending the correct chat script for the passwd program in Debian Sarge).
  94.    passwd program = /usr/bin/passwd %u
  95.    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  96. # This boolean controls whether PAM will be used for password changes
  97. # when requested by an SMB client instead of the program listed in
  98. # 'passwd program'. The default is 'no'.
  99.    pam password change = yes
  100. ########## Domains ###########
  101. # Is this machine able to authenticate users. Both PDC and BDC
  102. # must have this setting enabled. If you are the BDC you must
  103. # change the 'domain master' setting to no
  104. #
  105. ;   domain logons = yes
  106. #
  107. # The following setting only takes effect if 'domain logons' is set
  108. # It specifies the location of the user's profile directory
  109. # from the client point of view)
  110. # The following required a [profiles] share to be setup on the
  111. # samba server (see below)
  112. ;   logon path = \\%N\profiles\%U
  113. # Another common choice is storing the profile in the user's home directory
  114. # (this is Samba's default)
  115. #   logon path = \\%N\%U\profile
  116. # The following setting only takes effect if 'domain logons' is set
  117. # It specifies the location of a user's home directory (from the client
  118. # point of view)
  119. ;   logon drive = H:
  120. #   logon home = \\%N\%U
  121. # The following setting only takes effect if 'domain logons' is set
  122. # It specifies the script to run during logon. The script must be stored
  123. # in the [netlogon] share
  124. # NOTE: Must be store in 'DOS' file format convention
  125. ;   logon script = logon.cmd
  126. # This allows Unix users to be created on the domain controller via the SAMR
  127. # RPC pipe.  The example command creates a user account with a disabled Unix
  128. # password; please adapt to your needs
  129. ; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos "" %u
  130. # This allows machine accounts to be created on the domain controller via the
  131. # SAMR RPC pipe.
  132. # The following assumes a "machines" group exists on the system
  133. # SAMR RPC pipe.
  134. # The following assumes a "machines" group exists on the system
  135. ; add machine script  = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
  136. # This allows Unix groups to be created on the domain controller via the SAMR
  137. # RPC pipe.
  138. ; add group script = /usr/sbin/addgroup --force-badname %g
  139. ########## Printing ##########
  140. # If you want to automatically load your printer list rather
  141. # than setting them up individually then you'll need this
  142. #   load printers = yes
  143. # lpr(ng) printing. You may wish to override the location of the
  144. # printcap file
  145. ;   printing = bsd
  146. ;   printcap name = /etc/printcap
  147. # CUPS printing.  See also the cupsaddsmb(8) manpage in the
  148. # cupsys-client package.
  149. ;   printing = cups
  150. ;   printcap name = cups
  151. ############ Misc ############
  152. # Using the following line enables you to customise your configuration
  153. # on a per machine basis. The %m gets replaced with the netbios name
  154. # of the machine that is connecting
  155. ;   include = /home/samba/etc/smb.conf.%m
  156. # Most people will find that this option gives better performance.
  157. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
  158. # for details
  159. # You may want to add the following on a Linux system:
  160. #         SO_RCVBUF=8192 SO_SNDBUF=8192
  161. #   socket options = TCP_NODELAY
  162. # The following parameter is useful only if you have the linpopup package
  163. # installed. The samba maintainer and the linpopup maintainer are
  164. # working to ease installation and configuration of linpopup and samba.
  165. ;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &
  166. # Domain Master specifies Samba to be the Domain Master Browser. If this
  167. # machine will be configured as a BDC (a secondary logon server), you
  168. # must set this to 'no'; otherwise, the default behavior is recommended.
  169. #   domain master = auto
  170. # Some defaults for winbind (make sure you're not using the ranges
  171. # for something else.)
  172. ;   idmap uid = 10000-20000
  173. ;   idmap gid = 10000-20000
  174. ;   template shell = /bin/bash
  175. # The following was the default behaviour in sarge,
  176. # but samba upstream reverted the default because it might induce
  177. # performance issues in large organizations.
  178. # See Debian bug #368251 for some of the consequences of *not*
  179. # having this setting and smb.conf(5) for details.
  180. ;   winbind enum groups = yes
  181. ;   winbind enum users = yes
  182. # Setup usershare options to enable non-root users to share folders
  183. # with the net usershare command.
  184. # Maximum number of usershare. 0 (default) means that usershare is disabled.
  185. ;   usershare max shares = 100
  186. #======================= Share Definitions =======================
  187. [homes]
  188.    comment = Home Directories
  189.    browseable = no
  190. # By default, the home directories are exported read-only. Change the
  191. # next parameter to 'no' if you want to be able to write to them.
  192.    read only = yes
  193. # File creation mask is set to 0700 for security reasons. If you want to
  194. # create files with group=rw permissions, set next parameter to 0775.
  195.    create mask = 0700
  196. # Directory creation mask is set to 0700 for security reasons. If you want to
  197. # create dirs. with group=rw permissions, set next parameter to 0775.
  198.    directory mask = 0700
  199. # By default, \\server\username shares can be connected to by anyone
  200. # with access to the samba server.
  201. # The following parameter makes sure that only "username" can connect
  202. # to \\server\username
  203. # This might need tweaking when using external authentication schemes
  204.    valid users = %S
  205. # Un-comment the following and create the netlogon directory for Domain Logons
  206. # (you need to configure Samba to act as a domain controller too.)
  207. ;[netlogon]
  208. ;   comment = Network Logon Service
  209. ;   path = /home/samba/netlogon
  210. ;   guest ok = yes
  211. ;   read only = yes
  212. # Un-comment the following and create the profiles directory to store
  213. # users profiles (see the "logon path" option above)
  214. # (you need to configure Samba to act as a domain controller too.)
  215. # The path below should be writable by all users so that their
  216. # profile directory may be created the first time they log on
  217. ;[profiles]
  218. ;   comment = Users profiles
  219. ;   path = /home/samba/profiles
  220. ;   guest ok = no
  221. ;   browseable = no
  222. ;   create mask = 0600
  223. ;   directory mask = 0700
  224. [printers]
  225.    comment = All Printers
  226.    browseable = no
  227.    path = /var/spool/samba
  228.    printable = yes
  229.    guest ok = no
  230.    read only = yes
  231.    create mask = 0700
  232. # Windows clients look for this share name as a source of downloadable
  233. # printer drivers
  234. [print$]
  235.    comment = Printer Drivers
  236.    path = /var/lib/samba/printers
  237.    browseable = yes
  238.    read only = yes
  239.    guest ok = no
  240. # Uncomment to allow remote administration of Windows print drivers.
  241. # You may need to replace 'lpadmin' with the name of the group your
  242. # admin users are members of.
  243. # Please note that you also need to set appropriate Unix permissions
  244. # to the drivers directory for these users to have write rights in it
  245. ;   write list = root, @lpadmin
  246. # A sample share for sharing your CD-ROM with others.
  247. ;[cdrom]
  248. ;   comment = Samba server's CD-ROM
  249. ;   read only = yes
  250. ;   locking = no
  251. ;   path = /cdrom
  252. ;   guest ok = yes
  253. # The next two parameters show how to auto-mount a CD-ROM when the
  254. #       cdrom share is accesed. For this to work /etc/fstab must contain
  255. #       an entry like this:
  256. #
  257. #       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
  258. #
  259. # The CD-ROM gets unmounted automatically after the connection to the
  260. #
  261. # If you don't want to use auto-mounting/unmounting make sure the CD
  262. #       is mounted on /cdrom
  263. #
  264. ;   preexec = /bin/mount /cdrom
  265. ;   postexec = /bin/umount /cdrom
  266. [allusers]
  267.         path = /home/allusers
  268.         valid users = @users
  269.         force group = users
  270.         create mask = 0660
  271.         directory mask = 0771
  272.         writeable = yes


 

Reply

Marsh Posté le 24-05-2012 à 00:56:13   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed