[résolu] Samba, problèmes..

Samba, problèmes.. [résolu] - Linux et OS Alternatifs

Marsh Posté le 24-02-2005 à 22:10:50    

Salut,
 
J'ai une Debian, j'ai installé samba à l'aide de apt-get, mais j'ai un petit problème, testparm me donne tout ok. Mais quand je veux faire un smbclient -L localhost j'ai droit à :
 
$ smbclient -L localhost
protocol negotiation failed
 
ou est le problème ?  
 
Voila une copie de mon 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. # Any line which starts with a ; (semi-colon) or a # (hash)
  11. # is a comment and is ignored. In this example we will use a #
  12. # for commentary and a ; for parts of the config file that you
  13. # may wish to enable
  14. #
  15. # NOTE: Whenever you modify this file you should run the command
  16. # "testparm" to check that you have not many any basic syntactic
  17. # errors.
  18. #
  19. #======================= Global Settings =======================
  20. [global]
  21. ## Browsing/Identification ###
  22. # Change this to the workgroup/NT-domain name your Samba server will part of
  23.    workgroup = WORKGROUP
  24. # server string is the equivalent of the NT Description field
  25.    server string = %h server (Samba %v)
  26. # Windows Internet Name Serving Support Section:
  27. # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
  28. ;   wins support = no
  29. # WINS Server - Tells the NMBD components of Samba to be a WINS Client
  30. # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
  31. ;   wins server = w.x.y.z
  32. # This will prevent nmbd to search for NetBIOS names through DNS.
  33.    dns proxy = no
  34. # What naming service and in what order should we use to resolve host names
  35. # to IP addresses
  36. ;   name resolve order = lmhosts host wins bcast
  37. #### Debugging/Accounting ####
  38. # This tells Samba to use a separate log file for each machine
  39. # that connects
  40.    log file = /var/log/samba/log.%m
  41. # Put a capping on the size of the log files (in Kb).
  42.    max log size = 1000
  43. # If you want Samba to only log through syslog then set the following
  44. # parameter to 'yes'.
  45. ;   syslog only = no
  46. # We want Samba to log a minimum amount of information to syslog. Everything
  47. # should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
  48. # through syslog you should set the following parameter to something higher.
  49.    syslog = 0
  50. # Do something sensible when Samba crashes: mail the admin a backtrace
  51.    panic action = /usr/share/samba/panic-action %d
  52. ####### Authentication #######
  53. # "security = user" is always a good idea. This will require a Unix account
  54. # in this server for every user accessing the server. See
  55. # /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
  56. # package for details.
  57. ;   security = user
  58. # You may wish to use password encryption.  See the section on
  59. # 'encrypt passwords' in the smb.conf(5) manpage before enabling.
  60.    encrypt passwords = false
  61. # If you are using encrypted passwords, Samba will need to know what
  62. # password database type you are using. 
  63.    passdb backend = tdbsam guest
  64.    obey pam restrictions = yes
  65. ;   guest account = nobody
  66.    invalid users = root
  67. # This boolean parameter controls whether Samba attempts to sync the Unix
  68. # password with the SMB password when the encrypted SMB password in the
  69. # passdb is changed.
  70. ;   unix password sync = no
  71. # For Unix password sync to work on a Debian GNU/Linux system, the following
  72. # parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
  73. # sending the correct chat script for the passwd program in Debian Potato).
  74.    passwd program = /usr/bin/passwd %u
  75.    passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
  76. # This boolean controls whether PAM will be used for password changes
  77. # when requested by an SMB client instead of the program listed in
  78. # 'passwd program'. The default is 'no'.
  79. ;   pam password change = no
  80. ########## Printing ##########
  81. # If you want to automatically load your printer list rather
  82. # than setting them up individually then you'll need this
  83. ;   load printers = yes
  84. # lpr(ng) printing. You may wish to override the location of the
  85. # printcap file
  86. ;   printing = bsd
  87. ;   printcap name = /etc/printcap
  88. # CUPS printing.  See also the cupsaddsmb(8) manpage in the
  89. # cupsys-client package.
  90. ;   printing = cups
  91. ;   printcap name = cups
  92. # When using [print$], root is implicitly a 'printer admin', but you can
  93. # also give this right to other users to add drivers and set printer
  94. # properties
  95. ;   printer admin = @ntadmin
  96. ######## File sharing ########
  97. # Name mangling options
  98. ;   preserve case = yes
  99. ;   short preserve case = yes
  100. ############ Misc ############
  101. # Using the following line enables you to customise your configuration
  102. # on a per machine basis. The %m gets replaced with the netbios name
  103. # of the machine that is connecting
  104. ;   include = /home/samba/etc/smb.conf.%m
  105. # Most people will find that this option gives better performance.
  106. # See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
  107. # for details
  108. # You may want to add the following on a Linux system:
  109. #         SO_RCVBUF=8192 SO_SNDBUF=8192
  110.    socket options = TCP_NODELAY
  111. # Some defaults for winbind (make sure you're not using the ranges
  112. # for something else.)
  113. ;   idmap uid = 10000-20000
  114. ;   idmap gid = 10000-20000
  115. ;   template shell = /bin/bash
  116. #======================= Share Definitions =======================
  117. [homes]
  118.    comment = Home Directories
  119.    browseable = no
  120. # By default, the home directories are exported read-only. Change next
  121. # parameter to 'yes' if you want to be able to write to them.
  122.    writable = no
  123. # File creation mask is set to 0700 for security reasons. If you want to
  124. # create files with group=rw permissions, set next parameter to 0775.
  125.    create mask = 0700
  126. # Directory creation mask is set to 0700 for security reasons. If you want to
  127. # create dirs. with group=rw permissions, set next parameter to 0775.
  128.    directory mask = 0700
  129. [printers]
  130.    comment = All Printers
  131.    browseable = no
  132.    path = /tmp
  133.    printable = yes
  134.    public = no
  135.    writable = no
  136.    create mode = 0700
  137. # Windows clients look for this share name as a source of downloadable
  138. # printer drivers
  139. [print$]
  140.    comment = Printer Drivers
  141.    path = /var/lib/samba/printers
  142.    browseable = yes
  143.    read only = yes
  144.    guest ok = no


 
Merci d'avance


Message édité par L0k le 25-02-2005 à 10:12:32
Reply

Marsh Posté le 24-02-2005 à 22:10:50   

Reply

Marsh Posté le 25-02-2005 à 01:16:38    

j'ai testé en local, peut etre qu'il faut ajouté ta machine à /etc/passwd

Reply

Marsh Posté le 25-02-2005 à 01:23:35    

mhh ok mais comment je fais ?
/etc/passwd contient les user nan ?


Message édité par L0k le 25-02-2005 à 01:39:15
Reply

Marsh Posté le 25-02-2005 à 09:13:54    

tu n'as pas définis ta securité ;)


---------------
Fais le ou ne le fais pas, mais il n'y a pas d'essai !!!
Reply

Marsh Posté le 25-02-2005 à 10:12:07    

ouais c'était ça merci !

Reply

Marsh Posté le 25-02-2005 à 12:13:06    

Klaimant a écrit :

tu n'as pas définis ta securité ;)


 
ahh yep bravo  
 
 
L0k, normallement quand tu te connecte à samba, tu dois mettre le nom de ta machine en majuscule avec un $ à la fin dans ton etc/passwd  
 
 
adduser MACHINE$

Reply

Sujets relatifs:

Leave a Replay

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