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/05/2005, à 14:55

elpichet

Reseau XP vers Ubuntu ; je comprend rien

Salut big_smile

bon j'ai configuré mon réseau XP - Ubuntu avec Samba et tout marche bien.

Reste un point noir : accèder à mon répertoire partagé à partir de mon XP : là ca me demande  un login et mot de passe.
J'ai fouillé tout le forum depuis 2 jours et je comprend pas comment faire avec le truc utilisateur. roll

On peut pas virer ce login/mot de passe ?? comme sur Ubuntu ?

ps : j'avais vu un post qui parlait de ce pb mais j'ai pas réussi à le retrouver. De plus, je parie que c'est super simple à faire ??

Hors ligne

#2 Le 28/05/2005, à 16:16

AppleSeed2010

Re : Reseau XP vers Ubuntu ; je comprend rien

demande un login et pass ???

essai ça:
smbpasswd -a nonduga

Tu a de la chance davoir le login pass moi g carrement un truc "acces refusé blabla"
Alors que si je passe par l'adresse j'arrive à entrer sur mon partage mais je n'est que les droits en lecture.
Si je matte l'onglet securité sur un de mes fichiés partagés, j'ai 2 lignes pour l'utilisateur qui a monté la partition ou est le partage (O.o), et qui plus est different, ainsi que "Tout le monde" avec seulement droit en lecture execution lecture.

Voila mon fichier smb.conf

[global]
netbios name = Gaia
workgroup = Olympus
server string = the server
comment = mouhahahahahahhahaha
security = SHARE
#invalid users = root
#wins support = no

[data1]
path = /mnt/data1
available = yes
browseable = yes
public = yes
writable = yes

[HL-10h]
path = /var/spool/lpt1
guest ok = Yes
printable = Yes

Pour imprimer, aucun probleme par contre... mais toujours en passant par l'adresse ip.

Pourrais tu poster ton fichier smb.conf ????

#3 Le 28/05/2005, à 17:34

elpichet

Re : Reseau XP vers Ubuntu ; je comprend rien

[global]
## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = MSHOME

# server string is the equivalent of the NT Description field
   server string = DAMIEN

# 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

# What naming service and in what order should we use to resolve host names
# to IP addresses
;   name resolve order = lmhosts host wins bcast


####### Authentication #######

# "security = user" is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/ServerType.html in the samba-doc
# package for details.
;   security = share

# You may wish to use password encryption.  See the section on
# 'encrypt passwords' in the smb.conf(5) manpage before enabling.
   encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.  
   passdb backend = tdbsam guest

   obey pam restrictions = yes

;   guest account = nobody
   invalid users = root

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

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Augustin Luton <aluton@hybrigenics.fr> for
# sending the correct chat script for the passwd program in Debian Potato).
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .

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


########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
;   printing = bsd
;   printcap name = /etc/printcap

# CUPS printing.  See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
;   printing = cups
;   printcap name = cups

# When using [print$], root is implicitly a 'printer admin', but you can
# also give this right to other users to add drivers and set printer
# properties
;   printer admin = @ntadmin


######## File sharing ########

# Name mangling options
;   preserve case = yes
;   short preserve case = yes



#======================= Share Definitions =======================

wins support = no
[homes]
   comment = Home Directories
   browseable = no

# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
   writable = no

# 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

# 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
;   writable = no
;   share modes = no

[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = no
   writable = no
   create mode = 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.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
;   write list = root, @ntadmin

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

# The next two parameters show how to auto-mount a CD-ROM when the
#	cdrom share is accesed. For this to work /etc/fstab must contain
#	an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#	is mounted on /cdrom
#
;   preexec = /bin/mount /cdrom
;   postexec = /bin/umount /cdrom




[Commun]
path = /home/elpichet/Documents Partagés
available = yes
browseable = yes
public = yes
writable = yes

voilà, j'ai enlevé quelques trucs pas essentiel !


ce que je comprend pas c'est le truc suivant :

essai ça:
smbpasswd -a nonduga

si je suis en réseau avec plusieurs XP, j'aimerais que chacun puisse accèder à mon document partagé sans que je doive créer de login et mot de passe !
C'est possible ??

Sinon, si vous pouviez me dire concrètement quoi taper pour que ca marche ! merci d'avance

Hors ligne

#4 Le 28/05/2005, à 18:12

AppleSeed2010

Re : Reseau XP vers Ubuntu ; je comprend rien

Savoir si possible de ne pas avoir de demande de pass, va falloir attendre les pro de la samba lol.

#5 Le 28/05/2005, à 21:52

elpichet

Re : Reseau XP vers Ubuntu ; je comprend rien

en fait c'est bon j'ai réussi mais seulement avec mot de passe!

donc si quelqu'un sait comment faire sans ....

tongue

Hors ligne

#6 Le 05/06/2005, à 16:51

invite

Re : Reseau XP vers Ubuntu ; je comprend rien

J'ai eu le même problème.
En changeant sécurity=share (au lieu de user) et la sécurité se fait au niveau du partage, donc un public=yes et le partage est accessible.

#7 Le 05/06/2005, à 16:54

Polo

Re : Reseau XP vers Ubuntu ; je comprend rien

évidement, pas oublier de décommenter le security = share   (enlever le "#", ou le ";" dvant la ligne.....)


C'est parce que la lumière se propage plus vite que le son que certains parraissent être des lumières avant qu'ils n'ouvrent leurs gueules....

Hors ligne