Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1747 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Codes et scripts

  pb reseau linux windows (newbie)

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

pb reseau linux windows (newbie)

n°118804
coch
Posté le 29-06-2002 à 13:47:08  profilanswer
 

salut a tous
voila j'essaye de mettre en reseau 2 pc l'un sous linux (red hat 7.3) l'autre sous win 98.j'arrive a "pinger" les 2 pc,mais apres je ne sais pas comment faire.En faisant des recherches j'ai vu un truc qui s'appele "samba",j'ai verifie il est installe et demarrer.
qlq peut il me dire quoi faire apres? merci
ps:bien sur j'ai fais des recherches sur les howto mais cela ne m'a pas depanne


---------------
[:coch]
mood
Publicité
Posté le 29-06-2002 à 13:47:08  profilanswer
 

n°118984
duncan069
Si j'avais un marteau ...
Posté le 30-06-2002 à 10:57:58  profilanswer
 

Une bonne source  
www.lea-linux.org ...
ca devrait t'aider

n°118998
Xavier_OM
Monarchiste régicide (fr quoi)
Posté le 30-06-2002 à 12:09:37  profilanswer
 

pour que le windows voit les rep du linux il faut les partager dans /etc/samba/smb.conf (voir la fin du fichier, l'exemple commenté du CDROM est très clair, suffit de l'adapter pour un repertoire choisi)
 
pour que linux voit les rep de windows, euh j'ai pas de solution 'simple', moi je fais un :
smbmount //PC_AVEC_WIN/REP_PARTAGé /REP_SUR_LINUX -o username=USERNAME_DU_WIN,password=PASSWORD_DU_USER_DU_WIN
 
 :hello:


---------------
Il y a autant d'atomes d'oxygène dans une molécule d'eau que d'étoiles dans le système solaire.
n°119017
coch
Posté le 30-06-2002 à 13:50:48  profilanswer
 

merci pour les reponses je vois ca!!


---------------
[:coch]
n°119063
coch
Posté le 30-06-2002 à 17:16:55  profilanswer
 

je me rapproche du but,lorsque je fais "findsmb" je vois l'ip du pc win,son nom et son workgroup.


---------------
[:coch]
n°121539
coch
Posté le 05-07-2002 à 22:18:02  profilanswer
 

salut a tous
pour l'instant c'est toujours echec
j'ai plusieurs pb:
-si je fais "smbclient -L nom_du_pc"
il me demande un password (je rentre le seul que j'ai!!!)
ca marque "NT_STATUS_LOGON_FAILURE"???
-en ftp  
ftp:connect:Connection refused ?????
si qlq peut m'aider merci


---------------
[:coch]
n°121546
coch
Posté le 05-07-2002 à 22:38:18  profilanswer
 

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 (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)  
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# 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]
 
# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = reseau
 
# server string is the equivalent of the NT Description field
   server string = Samba Server
 
# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
;   hosts allow = 169.254.202.228
 
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = /etc/printcap
   load printers = yes
 
# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
   printing = lprng
 
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
;  guest account = nobody
 
# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/%m.log
 
# Put a capping on the size of the log files (in Kb).
   max log size = 0
 
# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = share
 
# Use password server option only with security = server
# The argument list may include:
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server = boubou
;   password server = boubou
 
# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8
;  username level = 8
 
# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
 
# The following is needed to keep smbclient from spouting spurious errors
# when Samba is built with support for SSL.
;   ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt
 
# The following are needed to allow password changing from Windows to
# update the Linux sytsem password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#        the encrypted SMB passwords. They allow the Unix password
#        to be kept in sync with the SMB password.
   unix password sync = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
 
# You can use PAM's password change control flag for Samba. If
# enabled, then PAM will be used for password changes when requested
# by an SMB client instead of the program listed in passwd program.
# It should be possible to enable this without changing your passwd
# chat parameter for most setups.
 
   pam password change = no
 
# Unix users can map to different SMB User names
;  username map = /etc/samba/smbusers
 
# 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 = /etc/samba/smb.conf.%m
 
# This parameter will control whether or not Samba should obey PAM's
# account and session management directives. The default behavior is
# to use PAM for clear text authentication only and to ignore any
# account or session management. Note that Samba always ignores PAM
# for authentication in the case of encrypt passwords = yes
 
  obey pam restrictions = yes
 
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 
# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24  
 
# Configure remote browse list synchronisation here
#  request announcement to, or browse list sync from:
# a specific host or from / to a whole subnet (see below)
;   remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
;   remote announce = 192.168.1.255 192.168.2.44
 
# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master = no
 
# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
;   os level = 33
 
# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
;   domain master = yes
 
# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
;   preferred master = yes
 
# Enable this if you want Samba to be a domain logon server for
# Windows95 workstations.  
;   domain logons = yes
 
# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script = %m.bat
# run a specific logon batch file per username
;   logon script = %U.bat
 
# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the [Profiles] share below
;   logon path = \\%L\Profiles\%U
 
# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;   wins support = yes
 
# 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
 
# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one WINS Server on the network. The default is NO.
;   wins proxy = yes
 
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
   dns proxy = no
 
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
;  preserve case = no
;  short preserve case = no
# Default case is normally upper case for all DOS files
;  default case = lower
# Be very careful with case sensitivity - it can break things!
;  case sensitive = no
 
#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = yes
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
# If you want users samba doesn't recognize to be mapped to a guest user
; map to guest = bad user
 
 
# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
;   comment = Network Logon Service
;   path = /usr/local/samba/lib/netlogon
;   guest ok = yes
;   writable = no
;   share modes = yes
 
 
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;    path = /usr/local/samba/profiles
;    browseable = no
;    guest ok = yes
 
 
# NOTE: If you have a BSD-style print system there is no need to  
# specifically define each individual printer
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes
 
# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes
 
# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   writable = yes
;   printable = no
;   write list = @staff
 
# Other examples.  
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /home/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes
 
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no
 
# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment = PC Directories
;  path = /usr/local/pc/%m
;  public = no
;  writable = yes
 
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no
 
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765


---------------
[:coch]
n°121550
Dark_Schne​ider
Close the World, Open the Net
Posté le 05-07-2002 à 22:54:01  profilanswer
 

http://linux-wizard.tuxfamily.org/faq_basique.html#lan


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
n°121555
coch
Posté le 05-07-2002 à 23:02:20  profilanswer
 

merci pour ton lien mais quand je fais "smbclient -L \\nom_du_pc"
ca marque "password"
ensuite je tape le seul password que j'ai et il y a "NT_STATUS_LOGON_FAILURE"
????


---------------
[:coch]
n°121560
coch
Posté le 05-07-2002 à 23:14:16  profilanswer
 

bien sur que j'ai fais des recherches et j'ai lu pas mal de sites (deja pour faire fonctionner mon modem eci usb adsl avec linux) mais la il y a pas mal de truc qui deconne.deja mon fichier smb.conf n'est pas comme les exemples.sachant que si c'est un exemple il ne s'adapte pas forcement ligne par ligne a ma config.


---------------
[:coch]
mood
Publicité
Posté le 05-07-2002 à 23:14:16  profilanswer
 

n°121563
Gaellick
Quoi ??? Noooonn !! Si !
Posté le 05-07-2002 à 23:17:23  profilanswer
 

coch a écrit a écrit :

merci pour ton lien mais quand je fais "smbclient -L \\nom_du_pc"
ca marque "password"
ensuite je tape le seul password que j'ai et il y a "NT_STATUS_LOGON_FAILURE"
????




 
L'idee de Samba c'est que tu vois tes partitions partages de Lijnux a partir de ton poste Windows. Je t'envoie un tutorial par e-mail, etant newbie comme toi, j'ai reussi a installer et configurer Samba avec alors tu devrais y'arriver aussi ;)


---------------
Qui cherche le soleil évite la pluie !
n°121565
Gaellick
Quoi ??? Noooonn !! Si !
Posté le 05-07-2002 à 23:18:23  profilanswer
 

icephoenix a écrit a écrit :

en general , samba c'est un peu prise de tete :D




 
:??:  pas d'accord c'est tres simple en fait


---------------
Qui cherche le soleil évite la pluie !
n°121566
coch
Posté le 05-07-2002 à 23:19:38  profilanswer
 

merci je vais essayer


---------------
[:coch]
n°121571
coch
Posté le 05-07-2002 à 23:37:17  profilanswer
 

j'ai un truc marrant pour toi icepheonix.
j'ai tape la ligne "mount -t ...."
voila la reponse
"1924:session setup failed:ERRDOS-ERRnoaccess (Access denied.)
SMB connection failed"


---------------
[:coch]
n°121575
coch
Posté le 05-07-2002 à 23:53:54  profilanswer
 

le pb c'est que je suis sur de rien !!
mais je vais encore chercher


---------------
[:coch]
n°121602
Dark_Schne​ider
Close the World, Open the Net
Posté le 06-07-2002 à 02:42:51  profilanswer
 

rha là là
 
bon un smb.conf très simple qui permet de partager un répertoire ( le partage s'apellera .... Partage ), sans mot de passe, en lecture écriture. ce sera le répertoire /tmp ( celui où l'on met les fichiers temporaires ) avec la station qui s'apelle LINUX et le workgroup nommé MAISON :
 

Code :
  1. [global]
  2. workgroup = MAISON
  3. netbios name = LINUX
  4. server string = Mon PC sous Linux avec Samba %v
  5. #on suit un minimum ce qui se passe, on loggue par machines connectées, d'ou le %m
  6. log file = /var/log/samba/log.%m
  7. max log size = 50
  8. # pas de mot de passe
  9. security = share
  10. # pour éviter les problèmes avec les accents dans les noms de fichiers
  11. client code page = 850
  12. character set = ISO8859-1
  13. #=============== Définition du partage ======================#
  14. [Partage]
  15. comment = Mon premier partage sous linux
  16. browseable = yes
  17. writable = yes
  18. path = /tmp
  19. public = yes
  20. # sans l'option browseable il n'est pas visible dans le voisinage réseau


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
n°121617
coch
Posté le 06-07-2002 à 09:37:52  profilanswer
 

j'ai change "smb.conf "
j'ai fais smbclient -L "nom_du_pc" et a "password" j'ai juste valide,voila la reponse
Anonymous login successful
Domain=[reseau] OS=[windows 5.1] server=[windows 2000 lan manager]
apres j'ai un tableau avec "sharename type comment" et dessous
"Error returning browse list:NT_STATUS_ACCESS_DENIED"
server              comment
kosh1               winxp
linux               kosh2.2.3a
 
workgroup          master
reseau             kosh1
 
apparement c'est le pc winxp (kosh1) qui est le master.moi je voudrais que le serveur soit le pc linux et l'autre juste le client.vous en pensez quoi ? (appart que je suis lourd  :ange: )


---------------
[:coch]
n°121638
Dark_Schne​ider
Close the World, Open the Net
Posté le 06-07-2002 à 11:15:41  profilanswer
 

dans ce cas tu veux faire un PDC pluis ou moins.
 
mais franchement si tu ne veux pas authentifier les users de tes stations windows à partir de ton linux ced n'est pas util :
 
http://linux-wizard.tuxfamily.org/liens.html#samba


---------------
Mandriva : parce que nous le valons bien ! http://linux-wizard.net/index.php
n°121758
coch
Posté le 06-07-2002 à 17:19:02  profilanswer
 

voila ou j'en suis:
 
"smbclient -L Serveur1 -N ou smbclient -U% -L localhost  
 
Vous devez obtenir quelque chose du genre :
 
added interface ip=192.168.1.101 bcast=192.168.1.255 nmask=255.255.255.0
Got a positive name query response from 192.168.1.101 ( 192.168.1.101 )
Domain=[GRETA] OS=[Unix] Server=[Samba 2.0.6]
 
Sharename Type Comment
--------- ---- -------
printers Printer imprimante du serveur
partage Disk  
IPC$ IPC IPC Service (Samba 2.0.6)  
 
 
Server Comment
--------- -------
SERVEUR1 Samba 2.0.6
 
 
Workgroup Master
--------- -------
GRETA  
 
Ca veut dire que c'est OK. "
ca c'est ok pour moi mais que en faisant "smbclient -U% -L localhost" si je fais "smbclient -L Serveur1 -N" voila ce qui arrive:
"tdb((null)):tdb_open_ex: could not open file /var/cache/samba/unexpected.tdb: No such file or directory"
ensuite si je fais "smbclient //Serveur1/partage -U utilisateur"
j'ai a nouveau la meme phrase "tdb((null)):etc..."
??????????
 


---------------
[:coch]
n°131726
coch
Posté le 30-07-2002 à 17:38:51  profilanswer
 

salut a tous
 :sol: j'ai continue a bidouille et maintenant j'arrive a acceder au dossier partage de la machine windows avec la machine linux via le navigateur de kde konqueror (smb://nom_du _pc),pour l'inverse il faut que je cherche encore!!!


---------------
[:coch]
n°131727
mrbebert
Posté le 30-07-2002 à 17:44:29  profilanswer
 

Gaellick a écrit a écrit :

 
 
L'idee de Samba c'est que tu vois tes partitions partages de Lijnux a partir de ton poste Windows. Je t'envoie un tutorial par e-mail, etant newbie comme toi, j'ai reussi a installer et configurer Samba avec alors tu devrais y'arriver aussi ;)



Ce serait possible de me mettre en copie stp :jap:


Message édité par mrbebert le 30-07-2002 à 17:45:43
mood
Publicité
Posté le   profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Codes et scripts

  pb reseau linux windows (newbie)

 

Sujets relatifs
Quel scanner usb pour linux ???Nikon Coolpix 885 sous linux
questions de newbieQuel logiciel de reporting style Crystal Reports sous Linux??
Debian : Install via réseau[Debian-linux]Carte Rezo USB belkin ==> drivers ??
Interface reseau sans carte associéeJ'aimerai essayer Linux
comment decompresser le .bin du serveur dedié HL sous linux ?linux sur un portable ?
Plus de sujets relatifs à : pb reseau linux windows (newbie)


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR