ciao, sto configurando samba e ho dei problemi relativi ad accesso a
file, precisamente i file /etc/samba/private/smbpasswd e i file di log
di samba (che io ho nelle cartelle /var/log/samba/samba.log )
L'utente si connette con il nome pj,da windows 2000:
Il syslog:
May 16 18:03:26 pingui smbd[386]: [2003/05/16 18:03:26, 0]
lib/debug.c:reopen_logs(348)
May 16 18:03:26 pingui smbd[386]: Unable to open new log file
/var/log/samba/samba.log: No such file or directory
May 16 18:03:26 pingui smbd[386]: startsmbfilepwent_internal: unable
to open file /etc/samba/private/smbpasswd. Error was No such file or
directory
May 16 18:03:26 pingui smbd[386]: [2003/05/16 18:03:26, 0]
passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369)
May 16 18:03:26 pingui smbd[386]: unable to open passdb database.
Il file samba.log:
[2003/05/16 18:03:26, 0] lib/debug.c:reopen_logs(348)
Unable to open new log file /var/log/samba/samba.log: No such file or
directory
[2003/05/16 18:03:26, 0] lib/debug.c:reopen_logs(348)
Unable to open new log file /var/log/samba/samba.log: No such file or
directory
[2003/05/16 18:03:26, 2] passdb/pdb_smbpasswd.c:startsmbfilepwent(170)
startsmbfilepwent_internal: unable to open file
/etc/samba/private/smbpasswd. Error was No such file or directory
[2003/05/16 18:03:26, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369)
unable to open passdb database.
[2003/05/16 18:03:26, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'pj' in passdb.
[2003/05/16 18:03:26, 2] smbd/reply.c:reply_sesssetup_and_X(997)
NT Password did not match for user 'pj'!
[2003/05/16 18:03:26, 2] smbd/reply.c:reply_sesssetup_and_X(1007)
Defaulting to Lanman password for pj
[2003/05/16 18:03:26, 2] passdb/pdb_smbpasswd.c:startsmbfilepwent(170)
startsmbfilepwent_internal: unable to open file
/etc/samba/private/smbpasswd. Error was No such file or directory
[2003/05/16 18:03:26, 0] passdb/pdb_smbpasswd.c:pdb_getsampwnam(1369)
unable to open passdb database.
[2003/05/16 18:03:26, 1] smbd/password.c:pass_check_smb(545)
Couldn't find user 'pj' in passdb.
[2003/05/16 18:03:26, 1] smbd/reply.c:reply_sesssetup_and_X(1023)
Rejecting user 'pj': authentication failed
[2003/05/16 18:03:26, 3] smbd/error.c:error_packet(94)
error string = No such file or directory
[2003/05/16 18:03:26, 3] smbd/error.c:error_packet(113)
error packet at smbd/reply.c(1025) cmd=115 (SMBsesssetupX)
NT_STATUS_LOGON_FAILURE
[2003/05/16 18:03:26, 3] smbd/process.c:timeout_processing(1066)
end of file from client
[2003/05/16 18:03:26, 3] smbd/sec_ctx.c:set_sec_ctx(329)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2003/05/16 18:03:26, 2] smbd/server.c:exit_server(511)
Closing connections
[2003/05/16 18:03:26, 3] smbd/connection.c:yield_connection(48)
Yielding connection to
[2003/05/16 18:03:26, 3] smbd/server.c:exit_server(545)
Server exit (normal exit)
Spero di aver incluso qualcosa di interessante...
il file smbpasswd penso che sia nella posizione giusta, nella cartella
/etc/samba/private/smbpasswd, ho provato a metterlo momentaneamente in
lettura per il gruppo dell'utente pj, ma non cambia niente.
Vi posto anche il mio smb.conf, nn è finito, magari mi sn dimenticato
qualcosa di importante...
# Samba config file created using SWAT
# from darkstar.bayzone (192.168.0.2)
# Date: 2003/05/16 16:39:04
# Global parameters
[global]
#Generali
workgroup = BAYZONE
netbios name = PINGUI
server string = File & print Server %v on (%L)
#Password
smb passwd file = /etc/samba/private/smbpasswd
encrypt passwords = Yes
update encrypted = Yes
#Indica la root directory del server samba
root directory = /home
#Password in chiaro: permette le maiuscole e le minuscole.
password level = 3
username level = 3
#Logging
log level = 3
log file = /var/log/samba/samba.log
max log size = 100
announce as = win95
socket options = IPTOS_LOWDELAY TCP_NODELAY
mangling method = hash2
logon script = /home/samba/logon/script.bat
logon path =
logon home =
os level = 99
preferred master = Yes
domain master = Yes
wins support = Yes
guest account =
#Sicurezzza
restrict anonymous = yes
#invalid users = root
#valid users = pj
hosts allow = 192.168.0.2
hosts deny = all except 192.168.0.2
case sensitive = Yes
preserve case = No
short preserve case = No
mangled names = No
[netlogon]
comment = Login al dominio
path = /home/samba/logon
browseable = No
[temp]
comment = Cartella temporanea
path = /home/tmp
read only = No
Accetto qualsiasi suggerimento...
Ringrazio veramente tutti
ciao