Foros del Web » Administración de Sistemas » Unix / Linux »

Acceso a recurso samba desde XP

Estas en el tema de Acceso a recurso samba desde XP en el foro de Unix / Linux en Foros del Web. Hi: Hola, he configurado un servidor samba, cuando los clientes XP intentan acceder a los recursos compartidos les aparece una ventana en la cual deben ...
  #1 (permalink)  
Antiguo 26/02/2008, 14:47
Avatar de amartinez  
Fecha de Ingreso: junio-2004
Mensajes: 435
Antigüedad: 19 años, 10 meses
Puntos: 2
Acceso a recurso samba desde XP

Hi:

Hola, he configurado un servidor samba, cuando los clientes XP intentan acceder a los recursos compartidos les aparece una ventana en la cual deben meter usuario y pass.

Hasta aquí todo va como quería pero lo malo es que los clientes XP no pueden meter el usuario ya que aparece de una forma predefinida y deshabilitada en usuario esto X.X.X.X\Invitado y no hay forma de meter usuarios definidos en la maquina linux.

¿Es por culpa de la máquina Linux o es tema de configuración de los clientes XP? ¿Como puedo hacer para poder meter el usuario que corresponda?
  #2 (permalink)  
Antiguo 26/02/2008, 15:08
Avatar de arthpix  
Fecha de Ingreso: diciembre-2003
Ubicación: Cancún
Mensajes: 2.340
Antigüedad: 20 años, 4 meses
Puntos: 93
Re: Acceso a recurso samba desde XP

Que tal si cuentas algo más y nos dices por ejemplo ¿que hay en tu archivo de configuración de samba?
__________________
Antes de hacer rabietas infórmate: Linux != Windows
  #3 (permalink)  
Antiguo 26/02/2008, 15:36
Avatar de amartinez  
Fecha de Ingreso: junio-2004
Mensajes: 435
Antigüedad: 19 años, 10 meses
Puntos: 2
Re: Acceso a recurso samba desde XP

Hi:

Hola arthpix, muchas gracias por tu interés, aquí dejo como tengo el archivo smb.conf y la pantalla de los clientes a la que me refiero.


Código:
#======================= Global Settings =======================

[global]

## Browsing/Identification ###

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

# server string is the equivalent of the NT Description field
   server string = %h server (Samba %v)

# 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


#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to 'yes'.
;   syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
   syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
   panic action = /usr/share/samba/panic-action %d


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

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 <[email protected]> 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


############ Misc ############

# 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 = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/speed.html
# for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
;   message command = /bin/sh -c '/usr/bin/linpopup "%f" "%m" %s; rm %s' &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to 'no'; otherwise, the default behavior is recommended.
;   domain master = auto

# Some defaults for winbind (make sure you're not using the ranges
# for something else.)
;   idmap uid = 10000-20000
;   idmap gid = 10000-20000
;   template shell = /bin/bash

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

[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





[PUBLICO]
        comment = directorio de usuario publico
        browseable = yes
        path = /home/../xy
        read only = No
        guest ok = YES 
        hide dot files = yes
        force user = nobody

[ONE]
        comment = directorio de usuario manolo
        browseable = yes
        path = /home/../xx
        read only = No
        guest ok = No
        hide dot files = yes
        valid users = yy, xxx
        force user = nobody

[ONW]
        comment = directorio de usuario manolo
        browseable = yes
        path = /home/../xy
        read only = No
        guest ok = No
        hide dot files = yes
        valid users = xxxx, yyy
        force user = nobody
  #4 (permalink)  
Antiguo 26/02/2008, 18:49
Avatar de BrujoNic
Super Moderador
 
Fecha de Ingreso: noviembre-2001
Ubicación: Costa Rica/Nicaragua
Mensajes: 16.935
Antigüedad: 22 años, 5 meses
Puntos: 655
Re: Acceso a recurso samba desde XP

¿Todos los equipos pertenecen a ese grupo zzyyyooo?
¿Creaste los usuarios samba por cada equipo XP o por lo menos uno en común?

Borré tu otro mensaje, por favor no repitas mensajes en los foros.

Lee Las Políticas de Foros del Web.
__________________
La tecnología está para ayudarnos. No comprendo el porqué con esa ayuda, la gente escribe TAN MAL.
NO PERDAMOS NUESTRO LINDO IDIOMA ESPAÑOL
  #5 (permalink)  
Antiguo 26/02/2008, 19:29
Avatar de arthpix  
Fecha de Ingreso: diciembre-2003
Ubicación: Cancún
Mensajes: 2.340
Antigüedad: 20 años, 4 meses
Puntos: 93
Re: Acceso a recurso samba desde XP

Veo algunas cosas inconsistentes en la configuración:

Primero:
Tienes especificado que la autenticación es share (security = share) eso significa que no se requiere autentificar a ningun usuario y deberían ingresar sin necesidad de contraseña.
Si deseas autenticación, elimina esa línea y descomenta security = user

Segundo:
Creo que tdbsam no debiera utilizar ningún tipo de parámetro, en tu archivo dice:
passdb backend = tdbsam guest
Elimina "guest".

Tercero:
No estás sincronizando las contraseñas unix, tienes comentado la línea:
unix password sync = no
Por tanto no necesitas "password program" ni "password chat"
Podrías comentar ambas líneas

Cuarto:
Tienes desactivado la cuenta de invitado (la línea está comentada:
; guest account = nobody
Sin embargo en todas las definiciones de comparticiones forzas el usuario invitado???
Comenta la línea: force user = nobody


Si piensas usar security = share no son necesarios ninguno de los parámetros relativos a password (puedes comentarlos todos) y tampoco vienen al caso especificar usuarios validos (es un poco más complejo de manejar).

Pero con security = user eso es más simple, solo tienes que especificar usuarios válidos en las comparticiones restringidas y admitir invitados en la pública.

Espero te sea útil.
__________________
Antes de hacer rabietas infórmate: Linux != Windows
  #6 (permalink)  
Antiguo 27/02/2008, 01:01
Avatar de amartinez  
Fecha de Ingreso: junio-2004
Mensajes: 435
Antigüedad: 19 años, 10 meses
Puntos: 2
Re: Acceso a recurso samba desde XP

Cita:
Iniciado por BrujoNic Ver Mensaje
¿Todos los equipos pertenecen a ese grupo zzyyyooo?


¿Creaste los usuarios samba por cada equipo XP o por lo menos uno en común?

Borré tu otro mensaje, por favor no repitas mensajes en los foros.

Lee Las Políticas de Foros del Web.
Si todos los equipos tienen configurado el mismo grupo de trabajo y los usuarios samba están creados.

Postee en ambos foros por desconocieminto no se si es relativo a WIN o a Linux
  #7 (permalink)  
Antiguo 28/02/2008, 12:09
Avatar de amartinez  
Fecha de Ingreso: junio-2004
Mensajes: 435
Antigüedad: 19 años, 10 meses
Puntos: 2
Re: Acceso a recurso samba desde XP

Hi:

Solucionado cambiando la autentificación de share por user.

Muchas gracias
  #8 (permalink)  
Antiguo 28/02/2008, 12:48
Avatar de amartinez  
Fecha de Ingreso: junio-2004
Mensajes: 435
Antigüedad: 19 años, 10 meses
Puntos: 2
Re: Acceso a recurso samba desde XP

Hi:

Aprovechando el titulo del post ... cada clienteXP accede a los recurso samba por medio de usuario y pass, una vez dentro de los recursos se ven unas carpetas, realmente son unos enlaces simbólicos que le he creado yo en la máquina linux a cada uno, habria alguna forma que esos enlaces sombolicos que los usuario ven como carpetas resalten o se muestren de alguna forma diferente.

Una solución que he pensado ha sido la de crear el el enlace en mayúsculas y con # al principio y final, ¿alguna otra sugerencia? ¿es posible cambiar el icono, la fuente, el color.?
  #9 (permalink)  
Antiguo 28/02/2008, 13:39
Avatar de -Defero-
Colaborador
 
Fecha de Ingreso: julio-2004
Ubicación: Guipúzcoa
Mensajes: 4.776
Antigüedad: 19 años, 9 meses
Puntos: 76
Re: Acceso a recurso samba desde XP

Cita:
Iniciado por amartinez Ver Mensaje
(...) no se si es relativo a WIN o a Linux
Yo creo que es relativo a ambos, por lo que opino que deberías haberlo consultado en el subforo "padre".
__________________
abogado en Errenteria + procuradora en San Sebastián = equipo imparable
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 11:50.