(Courriels de diversion: <degorgent@adaptaient-revigorerait.com> <corvees@hypothequa-bulbes.com> <outrepassait@siegerons-pestiez.com> <satanes@desheritera-coche.com> <lanieres@envierent-denouer.com> <adoucie@requerez-reintegre.com> <impatienterait@propagiez-affectionne.com> <visibilite@repayee-basanee.com> <mâts@lithographies-perseveres.com> <rendormait@sauvegarderons-telephonons.com> )


salut à tous

bon, voilà où j'en suis

mon fixe a comme adresse 192.168.1.21 relié au serveur par la carte
192.168.1.20

mon portable a comme adresse 192.168.2.11 relié par la carte
192.168.2.10

j'ai du changer la classe xxx.xxx.1.xx en xxx.xxx.1.xxx pour mon
portable car quand les dadresses avaient 1, le réseau ne passait pas si
les deux machines étaient connectées en même temps

avec mon fixe, je surfe sur le web via le serveur (ce mel en est la
preuve)

pas avec le portable. Je suppose qu'il s'agit d'une règle de routage non
déclarée, mais je ne sais pas où chercher. Par contre, dans les deux
cas, je pingue la carte reliée à l'ADSL sans pb.

donc, première question, quelle règle dois-je inclure et, comment le
faire ?

ma seconde question concerne le partage des fichiers et de l'imprimante

sous mon portable (win2000), le réperoire documents et floppy
apparaissent avec l'icone d'une imprimante réseau et ne sont donc pas
accessibles

comme j'ai fait ça en bidouillant, je pense que mon smb.conf doit avoir
qques erreurs. Je le joint pour que vous le regardiez

par contre, l'impression depuis windows via le serveur fonctionne nickel

votre aide sera donc la bienvenue

@+




# 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]
	path = /home/documents/Documents
	smb passwd file = /etc/samba/smbpasswd
	printing = cups
	dns proxy = no 
	encrypt passwords = yes
	null passwords = yes
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	printcap name = lpstat
	max log size = 50
	printer = brother
	server string = Samba Server %v
	workgroup = FAINEANT
	log file = /var/log/samba/log.%m
	netbios name = serveur
	load printers = yes

[homes]
   comment = Home Directories
   browseable = no
   writable = yes

# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
;   comment = Network Logon Service
;   path = /var/lib/samba/netlogon
;   guest ok = yes
;   writable = no

#Uncomment the following 2 lines if you would like your login scripts to
#be created dynamically by ntlogon (check that you have it in the correct
#location (the default of the ntlogon rpm available in contribs)
;root preexec = /usr/bin/ntlogon -u %U -g %G -o %a -d /var/lib/samba/netlogon
;root postexec = rm -f /var/lib/samba/netlogon/%U.bat

# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;    path = /var/lib/samba/profiles
;    browseable = no
;    guest ok = yes


# NOTE: If you have a CUPS print system there is no need to 
# specifically define each individual printer.
# You must configure the samba printers with the appropriate Windows
# drivers on your Windows clients. On the Samba server no filtering is
# done. If you wish that the server provides the driver and the clients
# send PostScript ("Generic PostScript Printer" under Windows), you have
# to swap the 'print command' line below with the commented one.
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# to allow user 'guest account' to print.
   guest ok = yes
   writable = no
   printable = yes
   create mode = 0700
# =====================================
# print command: see above for details.
# =====================================
   print command = lpr-cups -P %p -o raw %s -r   # using client side printer drivers.
;   print command = lpr-cups -P %p %s # using cups own drivers (use generic PostScript on clients).
# The following two commands are the samba defaults for printing=cups
# change them only if you need different options:
;   lpq command = lpq -P %p
;   lprm command = cancel %p-%j

# This share is used for Windows NT-style point-and-print support.
# To be able to install drivers, you need to be either root, or listed
# in the printer admin parameter above. Note that you also need write access
# to the directory and share definition to be able to upload the drivers.
# For more information on this, please see the Printing Support Section of
# /usr/share/doc/samba-<version>/docs/Samba-HOWTO-Collection.pdf 
[print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root

# 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
;   public = yes
;   writable = 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 = /homes/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/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

[DOCUMENTS]
	path = /home/documents/Documents
	writable = yes
	comment = Documents serveur
	create mode = 777
	directory mode = 777
	public = yes
	printable = yes

; A sample share for sharing your CD-ROM with others.
[cdrom]
	path = /mnt/cdrom
	writable = no
	comment = Samba server's CD-ROM
	public = yes
	locking = no

[floppy]
	path = /mnt/floppy
	writable = yes
	comment = floppy serveur
	public = yes
	printable = yes

---------------------------------------------------------------------
Aide sur la liste: <URL:mailto:linux-31-help@CULTe.org>Le CULTe sur le web: <URL:http://www.CULTe.org/>