Newsgroup: it.comp.os.linux.iniziare
Titolo: Samba mi fai sclerare!!!!

Ciao ng.
Devo fare connettermi con samba da una macchina Linux a un
Windows2000.
Dalla shell digito :
[davide@RAUL davide]$ smbclient -L host_name
added interface ip=10.0.0.173 bcast=10.0.0.255 nmask=255.255.255.0
Got a positive name query response from 10.0.0.107 ( 10.0.0.107 )
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
        Sharename      Type      Comment
        ---------      ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
        Server               Comment
        ---------            -------
        SERVER-DNS
        host_name
        Workgroup            Master
        ---------            -------
                             SERVER01
                             SERVER02
        MYGROUP              RAUL
        THECENTRE            PRETENDER
        WORKGROUP            SERVER-DNS
Il mio dubbio che win2000 ha una password e se non la digito mi compare
quello qui sopra riportato.
Se la digito invece:
[davide@RAUL davide]$ smbclient -L T23
added interface ip=10.0.0.173 bcast=10.0.0.255 nmask=255.255.255.0
Got a positive name query response from 10.0.0.107 ( 10.0.0.107 )
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
Sto sclerando!!!!!

 session setup failed: NT_STATUS_LOGON_FAILURE
Verifica che nel tuo /etc/samba/smb.conf ci sia indicato il dominio
giusto, il giusto Domain Controller e la corretta security.
Davide

 Davide
Ma smb.conf non si configura solo se deve fare da server?

 Ma smb.conf non si configura solo se deve fare da server?
Due letture del Samba-howto e ripassa domani.
Davide
(
http://www.soft-land.org/documenti/welcome.html
)

smb.conf
============================================================>>>>>
   pam password change = yes
;  username map = /etc/samba/smbusers
;   include = /etc/samba/smb.conf.%m
  obey pam restrictions = yes
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
;   interfaces = 
192.168.12.2/24
 
192.168.13.2/24
;   remote browse sync = 192.168.3.25 192.168.5.255
;   remote announce = 192.168.1.255 192.168.2.44
;   local master = no
;   os level = 33
;   domain master = yes
;   preferred master = yes
;   domain logons = yes
;   logon script = %m.bat
;   logon script = %U.bat
;   logon path = \\%L\Profiles\%U
;   wins support = yes
;   wins server = w.x.y.z
;   wins proxy = yes
   dns proxy = no
;  preserve case = no
;  short preserve case = no
;  default case = lower
;  case sensitive = no
#============================ Share Definitions
==============================
[homes]
   comment = Home Directories
   browseable = no
   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 = no
# 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

 smb.conf
<snipped 300 useless lines>
#======================= Global Settings =====================================
[global]
workgroup = YOURDOMAINHERE
server string = THENAMEOFYOURMACHINE
security = user
password server = THEDOMAINCONTROLLER
encrypt passwords = yes
Il resto dovrebbe essere standard. Assicurati di avere THEDOMAINCONTROLLER
in /etc/hosts, che il DNS sappia cosa e' o mettici l'indirizzo IP.
Davide

 in /etc/hosts, che il DNS sappia cosa e' o mettici l'indirizzo IP.
se ci metto gli indirizzi ip?

 se ci metto gli indirizzi ip?
Dovrebbe andare benissimo.
Davide

 in /etc/hosts, che il DNS sappia cosa e' o mettici l'indirizzo IP.
Linux (RH9) e windows(windows200) non sono su un dominio ma su un workgroup.
Ho provato a fare il browsing con mozilla:
smb:\\ip_di_windows
ma mi dice che smb non è un protocollo supportato.
Io a casa cmq ho fatto lo stesso esperimento e ho
ottenuto esiti positivi.
Non soi perchè qui al lavoro non funziona.
Mi ricordo di aver solo modificato la stringa workgroup
con il rispettivo nome e tutto e filato a meraviglia
con konqueror.
Mi ha fatto il browsing e quando trasferivo i file da windows
a linux mi chiedeva la password di winz e scaricavo tranquillamente.

[davide@RAUL davide]$ smbclient -L RAUL
=======================================> LINUX REDHAT 9    IP 10.0.0.173
added interface ip=10.0.0.173 bcast=10.0.0.255 nmask=255.255.255.0
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 2.2.7a]
        Sharename      Type      Comment
        ---------      ----      -------
        davide         Disk
        IPC$           IPC       IPC Service
0.0.0.173)   ------------------------  Cosa ci fanno queste share su RAUL
LINUX?
        ADMIN$         Disk      IPC Service
0.0.0.173)   ------------------------
        Server               Comment
        ---------            -------
        RAUL                 10.0.0.173
        SERVER-DNS
        Workgroup            Master
        ---------            -------
        WORKGROUP            SERVER-DNS
[davide@RAUL davide]$ smbclient -L SERVER-DNS
==================================> windows2000server   IP 10.0.0.197
added interface ip=10.0.0.173 bcast=10.0.0.255 nmask=255.255.255.0
Got a positive name query response from 10.0.0.197 ( 10.0.0.197
192.168.2.1 )
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
        Sharename      Type      Comment
        ---------      ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
        Server               Comment
        ---------            -------
        RAUL                 10.0.0.173
        SERVER-DNS
        T23
        Workgroup            Master
        ---------            -------
        MIODOMINIO           HOST01
        HOST                 HOST02
        THECENTRE            PRETENDER
        WORKGROUP            SERVER-DNS
[davide@RAUL davide]$ smbclient -L T23
================================================>portatile win2000  IP
10.0.0.107
added interface ip=10.0.0.173 bcast=10.0.0.255 nmask=255.255.255.0
Got a positive name query response from 10.0.0.107 ( 10.0.0.107 )
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]
        Sharename      Type      Comment
        ---------      ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED
        Server               Comment
        ---------            -------
        RAUL                 10.0.0.173
        SERVER-DNS
        T23
        Workgroup            Master
        ---------            -------
        MIODOMINIO           HOST01
        HOST                 HOST02
        THECENTRE            PRETENDER
        WORKGROUP            SERVER-DNS

 
Vai su
start -> impostazioni -> pannello di controllo -> utenti e password 
e abilita l'account dell'utente o gruppo GUEST.
Vedrai che tutto funzionerà
Ciao,
        Fabrizio

 Ma smb.conf non si configura solo se deve fare da server?
Infatti.


Ho seguito la tua soluzione ma niente da fare.
L'utente guest è presente e abilitao come administrator.

 L'utente guest è presente e abilitao come administrator.
Ci dovrebbe anche essere il gruppo GUEST.
Di solito, su windows2000 questo utente o gruppo (non mi ricordo quale dei 
due) è disabilitato di default (quindi lo riconosci immediatamente).
Da te era già abilitato o lui avevi abilitato tu in precedenza ?