[Samba-it] Dove sbaglio?

Paolo Dastoli pdastoli at eurplace.org
Wed Nov 12 11:59:02 MST 2003


Simo grazie della risposta, ho fatto come mi hai consigliato, ora il mio smb.conf è questo:
----------------------------------------------------
[global]
workgroup = WORKGROUP
server string = Server Samba running on %h
load printers = yes
log file = /usr/local/samba/var/log.%m
max log size = 0


local master = yes
preferred master = yes
os level = 66
log level = 10
null passwords = yes
encrypt passwords = yes
security = share
guest account = sambauser            // questo utente non esiste, ma dagli esempi che ho trovato pensavo fosse necessario un utente guest

interfaces = lo eth1
bind interfaces only = yes

[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
public = yes
guest only = yes
guest ok = yes
writable = no
printable = yes
----------------------------------------------------

Credo di usare cups 99%, non sono sicuro perchè Red Hat ha configurato la stampante per conto suo (funziona perfettamente)

Windows mi risponde questo:

"Impossibile accedere a \\Localhost. L'utente potrebbe non disporre dell'autorizzazione necessaria per l'utilizzo della risorsa di rete.
Per le autorizzaizioni di accesso contattare l'amministratore del server.
Impossibile effettuare la connessione perchè esiste un nome duplicato in rete.
Selezionare Sistema in pannello di controllo per modificare il nome del sistema e riprovare."

La seconda parte del messaggio mi è oscura, i client windows si chiamano tutti in modo diverso, non è che linux che si chiama Localhost li disorienta? (non so come si cambia il nome in linux)

questo è il nuovo log:
-----------------------------------------
[2003/11/11 12:25:17, 0] smbd/server.c:main(747)
  smbd version 3.0.0 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2003
[2003/11/11 12:25:17, 5] lib/debug.c:debug_dump_status(359)
  INFO: Current debug levels:
    all: True/10
    tdb: False/0
    printdrivers: False/0
    lanman: False/0
    smb: False/0
    rpc_parse: False/0
    rpc_srv: False/0
    rpc_cli: False/0
    passdb: False/0
    sam: False/0
    auth: False/0
    winbind: False/0
    vfs: False/0
    idmap: False/0
  doing parameter null passwords = yes
  doing parameter encrypt passwords = yes
  doing parameter security = share
  doing parameter guest account = sambauser
  doing parameter interfaces = lo eth1
  doing parameter bind interfaces only = yes
[2003/11/11 12:25:17, 2] param/loadparm.c:do_section(3437)
  Processing section "[printers]"
  doing parameter comment = All Printers
  doing parameter path = /usr/spool/samba
  doing parameter browseable = no
  doing parameter public = yes
  doing parameter guest only = yes
  doing parameter guest ok = yes
  doing parameter writable = no
  doing parameter printable = yes
[2003/11/11 12:25:17, 4] param/loadparm.c:lp_load(3949)
  pm_process() returned Yes
[2003/11/11 12:25:17, 7] param/loadparm.c:lp_servicenumber(4059)
  lp_servicenumber: couldn't find homes
[2003/11/11 12:25:17, 3] param/loadparm.c:lp_add_ipc(2359)
  adding IPC service
[2003/11/11 12:25:17, 3] param/loadparm.c:lp_add_ipc(2359)
  adding IPC service
[2003/11/11 12:25:17, 10] param/loadparm.c:set_server_role(3867)
  set_server_role: role = ROLE_STANDALONE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:17, 5] lib/charcnv.c:charset_name(74)
  Substituting charset 'UTF-8' for LOCALE
[2003/11/11 12:25:18, 7] param/loadparm.c:lp_servicenumber(4059)
  lp_servicenumber: couldn't find lp0
[2003/11/11 12:25:18, 3] param/loadparm.c:lp_add_printer(2397)
  adding printer service lp0
[2003/11/11 12:25:18, 6] param/loadparm.c:lp_file_list_changed(2665)
  lp_file_list_changed()
  file /usr/local/samba/lib/smb.conf -> /usr/local/samba/lib/smb.conf  last mod_time: Tue Nov 11 12:22:30 2003
  
[2003/11/11 12:25:18, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
  ms_fnmatch(lo,eth0) -> -1
[2003/11/11 12:25:18, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
  ms_fnmatch(lo,eth1) -> -1
[2003/11/11 12:25:18, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
  ms_fnmatch(lo,lo) -> 0
[2003/11/11 12:25:18, 2] lib/interface.c:add_interface(79)
  added interface ip=127.0.0.1 bcast=127.255.255.255 nmask=255.0.0.0
[2003/11/11 12:25:18, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
  ms_fnmatch(eth1,eth0) -> -1
[2003/11/11 12:25:18, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
  ms_fnmatch(eth1,eth1) -> 0
[2003/11/11 12:25:18, 2] lib/interface.c:add_interface(79)
  added interface ip=10.0.0.1 bcast=10.255.255.255 nmask=255.0.0.0
[2003/11/11 12:25:18, 10] lib/ms_fnmatch.c:ms_fnmatch(240)
  ms_fnmatch(eth1,lo) -> -1
[2003/11/11 12:25:18, 5] lib/hash.c:hash_table_init(67)
  Hash size = 521.
[2003/11/11 12:25:18, 5] lib/util.c:init_names(270)
  Netbios name list:-
  my_netbios_names[0]="LOCALHOST"
[2003/11/11 12:25:18, 3] smbd/server.c:main(777)
  loaded services
[2003/11/11 12:25:18, 3] smbd/server.c:main(792)
  Becoming a daemon.
[2003/11/11 12:25:18, 8] lib/util.c:fcntl_lock(1621)
  fcntl_lock 6 13 0 1 1
[2003/11/11 12:25:18, 8] lib/util.c:fcntl_lock(1656)
  fcntl_lock: Lock call successful
[2003/11/11 12:25:18, 2] lib/tallocmsg.c:register_msg_pool_usage(57)
  Registered MSG_REQ_POOL_USAGE
[2003/11/11 12:25:18, 2] lib/dmallocmsg.c:register_dmalloc_msgs(71)
  Registered MSG_REQ_DMALLOC_MARK and LOG_CHANGED
[2003/11/11 12:25:18, 10] printing/nt_printing.c:update_c_setprinter(412)
  update_c_setprinter: c_setprinter = 0
[2003/11/11 12:25:18, 5] smbd/connection.c:claim_connection(170)
  claiming  0
[2003/11/11 12:25:18, 10] lib/util_sock.c:open_socket_in(655)
  bind succeeded on port 445
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_KEEPALIVE = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_REUSEADDR = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_BROADCAST = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option TCP_NODELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_LOWDELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_THROUGHPUT = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDBUF = 16384
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVBUF = 87380
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_KEEPALIVE = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_REUSEADDR = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_BROADCAST = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option TCP_NODELAY = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_LOWDELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_THROUGHPUT = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDBUF = 16384
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVBUF = 87380
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVTIMEO = 0
[2003/11/11 12:25:18, 10] lib/util_sock.c:open_socket_in(655)
  bind succeeded on port 139
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_KEEPALIVE = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_REUSEADDR = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_BROADCAST = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option TCP_NODELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_LOWDELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_THROUGHPUT = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDBUF = 16384
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVBUF = 87380
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_KEEPALIVE = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_REUSEADDR = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_BROADCAST = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option TCP_NODELAY = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_LOWDELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_THROUGHPUT = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDBUF = 16384
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVBUF = 87380
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVTIMEO = 0
[2003/11/11 12:25:18, 10] lib/util_sock.c:open_socket_in(655)
  bind succeeded on port 445
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_KEEPALIVE = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_REUSEADDR = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_BROADCAST = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option TCP_NODELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_LOWDELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_THROUGHPUT = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDBUF = 16384
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVBUF = 87380
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_KEEPALIVE = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_REUSEADDR = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_BROADCAST = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option TCP_NODELAY = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_LOWDELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_THROUGHPUT = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDBUF = 16384
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVBUF = 87380
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVTIMEO = 0
[2003/11/11 12:25:18, 10] lib/util_sock.c:open_socket_in(655)
  bind succeeded on port 139
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_KEEPALIVE = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_REUSEADDR = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_BROADCAST = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option TCP_NODELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_LOWDELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_THROUGHPUT = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDBUF = 16384
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVBUF = 87380
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_KEEPALIVE = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_REUSEADDR = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_BROADCAST = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option TCP_NODELAY = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_LOWDELAY = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option IPTOS_THROUGHPUT = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDBUF = 16384
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVBUF = 87380
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVLOWAT = 1
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_SNDTIMEO = 0
[2003/11/11 12:25:18, 5] lib/util_sock.c:print_socket_options(105)
  socket option SO_RCVTIMEO = 0
[2003/11/11 12:25:18, 2] smbd/server.c:open_sockets_smbd(318)
  waiting for a connection
[2003/11/11 12:37:05, 3] smbd/sec_ctx.c:set_sec_ctx(288)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/11/11 12:37:06, 5] auth/auth_util.c:debug_nt_user_token(486)
  NT user token: (NULL)
[2003/11/11 12:37:06, 5] auth/auth_util.c:debug_unix_user_token(505)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2003/11/11 12:37:06, 5] smbd/uid.c:change_to_root_user(218)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2003/11/11 12:37:06, 2] smbd/server.c:exit_server(558)
  Closing connections
[2003/11/11 12:37:06, 3] smbd/connection.c:yield_connection(69)
  Yielding connection to 
[2003/11/11 12:37:07, 5] smbd/oplock.c:receive_local_message(107)
  receive_local_message: doing select with timeout of 1 ms
[2003/11/11 12:37:07, 3] smbd/server.c:exit_server(601)
  Server exit (Caught TERM signal)
-----------------------------------------------------


Grazie a tutti per l'aiuto.

Paolo Dastoli




More information about the samba-it mailing list