[Samba-it] Problema accesso cartelle dopo cambio server

amarin amarin at mr-service.it
Mon Aug 21 08:52:01 MDT 2006


> smb.conf e log a livello 10 che mostri l'errore che viene ritornato da
> smbd quando tenti di accedere.
> 
> Simo.

Allora ecco il log relativo alla machina che sto testando

[2006/08/21 07:54:31, 10] passdb/pdb_compat.c:pdb_set_user_sid_from_rid(73)
  pdb_set_user_sid_from_rid:
        setting user sid S-1-5-21-230031738-2800340667-4113033546-2022 from rid 2022
[2006/08/21 07:54:31, 3] passdb/lookup_sid.c:fetch_gid_from_cache(999)
  fetch gid from cache 511 -> S-1-5-21-230031738-2800340667-4113033546-2023
[2006/08/21 07:54:31, 10] passdb/pdb_get_set.c:pdb_set_group_sid(521)
  pdb_set_group_sid: setting group sid S-1-5-21-230031738-2800340667-4113033546-2023
[2006/08/21 07:54:31, 10] passdb/pdb_compat.c:pdb_set_group_sid_from_rid(100)
  pdb_set_group_sid_from_rid:
        setting group sid S-1-5-21-230031738-2800340667-4113033546-2023 from rid 2023
[2006/08/21 07:54:31, 3] smbd/sec_ctx.c:pop_sec_ctx(339)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/08/21 07:54:31, 9] passdb/passdb.c:pdb_update_autolock_flag(1407)
  pdb_update_autolock_flag: Account enzo not autolocked, no check needed
[2006/08/21 07:54:31, 4] libsmb/ntlm_check.c:ntlm_password_check(326)
  ntlm_password_check: Checking NT MD4 password
[2006/08/21 07:54:31, 4] auth/auth_sam.c:sam_account_ok(138)
  sam_account_ok: Checking SMB password for user enzo
[2006/08/21 07:54:31, 5] auth/auth_sam.c:logon_hours_ok(120)
  logon_hours_ok: user enzo allowed to logon at this time (Mon Aug 21 05:54:31 2006
  )

I valori sid che vengono impostati sono corretti e sono uguali sia nel vecchio server
che nel nuovo

[2006/08/21 07:54:31, 5] auth/auth_util.c:debug_nt_user_token(455)
  NT user token of user S-1-5-21-230031738-2800340667-4113033546-2022
  contains 5 SIDs
  SID[  0]: S-1-5-21-230031738-2800340667-4113033546-2022
  SID[  1]: S-1-5-21-230031738-2800340667-4113033546-2023   SID[  2]: S-1-1-0
  SID[  3]: S-1-5-2
  SID[  4]: S-1-5-11
  SE_PRIV  0x0 0x0 0x0 0x0
[2006/08/21 07:54:31, 5] auth/auth_util.c:debug_unix_user_token(475)
  UNIX token of user 511
  Primary group is 511 and contains 1 supplementary groups
  Group[  0]: 511
[2006/08/21 07:54:31, 5] smbd/uid.c:change_to_user(260)
  change_to_user uid=(511,511) gid=(0,511)
[2006/08/21 07:54:31, 0] smbd/service.c:make_connection_snum(911)
  '/home/enzo' does not exist or permission denied when connecting to [homedir] Error
was Permission denied
[2006/08/21 07:54:31, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/08/21 07:54:31, 5] auth/auth_util.c:debug_nt_user_token(449)
  NT user token: (NULL)
[2006/08/21 07:54:31, 5] auth/auth_util.c:debug_unix_user_token(475)   UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2006/08/21 07:54:31, 5] smbd/uid.c:change_to_root_user(275)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2006/08/21 07:54:31, 3] smbd/connection.c:yield_connection(69)
  Yielding connection to homedir
[2006/08/21 07:54:31, 3] smbd/error.c:error_packet(146)
  error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_BAD_NETWORK_NAME

Qui sopra mi da il primo errore quando cerca di collegare la homedir all'unità di rete H
sul pc client

[2006/08/21 07:56:52, 10] smbd/password.c:register_vuid(186)
  register_vuid: allocated vuid = 101
[2006/08/21 07:56:52, 10] lib/util_pw.c:getpwnam_alloc(76)
  Got enzo from pwnam_cache
[2006/08/21 07:56:52, 10] smbd/password.c:register_vuid(277)
  register_vuid: (511,511) enzo enzo MYGROUP guest=0
[2006/08/21 07:56:52, 3] smbd/password.c:register_vuid(280)
  User name: enzo       Real name: Utente Enzo
[2006/08/21 07:56:52, 3] smbd/password.c:register_vuid(301)
  UNIX uid 511 is UNIX user enzo, and will be vuid 101
[2006/08/21 07:56:52, 7] param/loadparm.c:lp_servicenumber(5121)
  lp_servicenumber: couldn't find enzo
[2006/08/21 07:56:52, 3] smbd/password.c:register_vuid(332)
  Adding homes service for user 'enzo' using home directory: '/home/enzo'
[2006/08/21 07:56:52, 7] param/loadparm.c:lp_servicenumber(5121)
  lp_servicenumber: couldn't find homes
[2006/08/21 07:56:52, 6] param/loadparm.c:lp_file_list_changed(3001)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Mon Aug 21 07:38:21 2006
[2006/08/21 07:56:52, 5] lib/util.c:show_msg(500)
[2006/08/21 07:56:52, 5] lib/util.c:show_msg(510)
  size=122
  smb_com=0x73
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51201
  smb_tid=0
  smb_pid=65279
  smb_uid=101
  smb_mid=128
  smt_wct=4
  smb_vwv[ 0]=  255 (0xFF)
  smb_vwv[ 1]=    0 (0x0)
  smb_vwv[ 2]=    0 (0x0)
  smb_vwv[ 3]=    9 (0x9)
  smb_bcc=79
[2006/08/21 07:56:52, 10] lib/util.c:dump_data(2237)
  [000] A1 07 30 05 A0 03 0A 01  00 55 00 6E 00 69 00 78  ..0..... .U.n.i.x
  [010] 00 00 00 53 00 61 00 6D  00 62 00 61 00 20 00 33  ...S.a.m .b.a. .3
  [020] 00 2E 00 30 00 2E 00 32  00 33 00 61 00 2D 00 31  ...0...2 .3.a.-.1
  [030] 00 2E 00 66 00 63 00 35  00 2E 00 31 00 00 00 4D  ...f.c.5 ...1...M
  [040] 00 59 00 47 00 52 00 4F  00 55 00 50 00 00 00     .Y.G.R.O .U.P...
[2006/08/21 07:56:52, 10] smbd/process.c:setup_select_timeout(1284)
  change_notify_timeout: -1
[2006/08/21 07:56:52, 10] lib/util_sock.c:read_smb_length_return_keepalive(623)
  got smb length of 106
[2006/08/21 07:56:52, 6] smbd/process.c:process_smb(1109)
  got message type 0x0 of len 0x6a
[2006/08/21 07:56:52, 3] smbd/process.c:process_smb(1110)
  Transaction 3 of length 110
[2006/08/21 07:56:52, 5] lib/util.c:show_msg(500)
[2006/08/21 07:56:52, 5] lib/util.c:show_msg(510)
  size=106
  smb_com=0x75
  smb_rcls=0
 smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51207
  smb_tid=0
  smb_pid=65279
  smb_uid=101
  smb_mid=192
  smt_wct=4
  smb_vwv[ 0]=  255 (0xFF)
  smb_vwv[ 1]=  106 (0x6A)
  smb_vwv[ 2]=    8 (0x8)
  smb_vwv[ 3]=    1 (0x1)
  smb_bcc=63
[2006/08/21 07:56:52, 10] lib/util.c:dump_data(2237)
  [000] 00 5C 00 5C 00 4D 00 52  00 53 00 45 00 52 00 56  .\.\.M.R .S.E.R.V
  [010] 00 49 00 43 00 45 00 5C  00 55 00 46 00 46 00 49  .I.C.E.\ .U.F.F.I
  [020] 00 43 00 49 00 4F 00 2D  00 54 00 45 00 43 00 4E  .C.I.O.- .T.E.C.N
  [030] 00 49 00 43 00 4F 00 00  00 3F 3F 3F 3F 3F 00     .I.C.O.. .?????.
[2006/08/21 07:56:52, 3] smbd/process.c:switch_message(914)
  switch message SMBtconX (pid 6999) conn 0x0
[2006/08/21 07:56:52, 3] smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2006/08/21 07:56:52, 5] auth/auth_util.c:debug_nt_user_token(449)
  NT user token: (NULL)
[2006/08/21 07:56:52, 5] auth/auth_util.c:debug_unix_user_token(475)
  UNIX token of user 0
  Primary group is 0 and contains 0 supplementary groups
[2006/08/21 07:56:52, 5] smbd/uid.c:change_to_root_user(275)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2006/08/21 07:56:52, 4] smbd/reply.c:reply_tcon_and_X(668)
  Client requested device type [?????] for share [UFFICIO-TECNICO]
[2006/08/21 07:56:52, 5] smbd/service.c:make_connection(1116)
  making a connection to 'normal' service ufficio-tecnico
[2006/08/21 07:56:52, 3] lib/access.c:check_access(313)
  check_access: no hostnames in host allow/deny list.
[2006/08/21 07:56:52, 2] lib/access.c:check_access(324)
  Allowed connection from  (192.168.92.169)

[2006/08/21 07:56:52, 3] lib/util_sid.c:string_to_sid(223)
  string_to_sid: Sid @grptecnico does not start with 'S-'.
[2006/08/21 07:56:52, 5] smbd/password.c:user_in_netgroup(423)
  Unable to get default yp domain
[2006/08/21 07:56:52, 10] smbd/share_access.c:user_ok_token(208)
  User enzo not in 'valid users'
[2006/08/21 07:56:52, 2] smbd/service.c:make_connection_snum(571)
  user 'enzo' (from session setup) not permitted to access this share (Ufficio-Tecnico)
[2006/08/21 07:56:52, 3] smbd/error.c:error_packet(146)
  error packet at smbd/reply.c(676) cmd=117 (SMBtconX) NT_STATUS_ACCESS_DENIED
[2006/08/21 07:56:52, 5] lib/util.c:show_msg(500)
[2006/08/21 07:56:52, 5] lib/util.c:show_msg(510)

Qui mi dà lo stesso errore su un'altra cartella condivisa

Questo è il file di configurazione di samba

[global]
   workgroup = MYGROUP
   netbios name = mrservice  
   server string = Samba Server
   hosts allow = 192.168.92. 127. 192.168.3. 192.168.6. 192.168.20.
 log file = /var/log/samba/%m.log
   max log size = 100
   security = user
  password level = 6
  encrypt passwords = yes
  passdb backend = smbpasswd 
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   interfaces = 192.168.92.1/24  
   local master = yes
   os level = 255
   domain master = yes 
   preferred master = yes
   domain logons = yes
   logon path = \\mrservice\Profiles\%u
 name resolve order = hosts
   dns proxy = no 
  preserve case = yes
   logon drive = H:
   logon home = \\mrservice\homedir
;   log level = 10

#============================ Share Definitions ==============================
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = no

[homedir]
   path = /home/%u
   comment = Cartella Privata
   read only = no
   browseable = no
   writable = yes
   create mask = 0600
   directory mask = 0700
   hide dot files = yes
   #force user = %u
   #valid users = %S

# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
[Profiles]
    path = /home/profili
    browseable = no
    read only = no
    writable = yes
    create mask = 0600
    directory mask = 0700    

[Ufficio-Tecnico]
   comment = Software e Documentazioni Tecniche
   path = /home/ufficio-tecnico
   browseable = yes 
   read only = no
   writeable = yes
   create mask = 0660
   directory mask = 0770
   valid users = @grptecnico


Speria sia tutto
Andrea



More information about the samba-it mailing list