[Samba] smbcacls cannot locate the object of a samba share

Henrik Zagerholm henke at mac.se
Fri Apr 7 12:52:43 GMT 2006


Try
smbcacls //IP adress/Share 'FilePath' -UstrUser%

Cheers,
Henrik
7 apr 2006 kl. 12:26 skrev Dracula:

> Hello
>
> smbcacls is not able to locate the object of a share.
>
> I've attached a copy of the smb.conf file and the debug output of the
> smbcacls command.
>
> Within XP/NT I'm able to get and set the acls with no problem.
>
> Thanks
>
> Regards,
>
> Komal
>
>
> [global]
> 	workgroup = test
> 	server string = Samba Server
> 	interfaces = eth0, lo
> 	bind interfaces only = Yes
> 	passdb backend = ldapsam:ldap://localhost
> 	username map = /etc/samba/smbusers
> 	log file = /var/log/samba/%m.log
> 	max log size = 50
> 	name resolve order = wins bcast hosts
> 	time server = Yes
> 	logon script = netlogon.bat
> 	logon path =
> 	logon drive = Z:
> 	logon home =
> 	domain logons = Yes
> 	os level = 63
> 	domain master = No
> 	wins server = 192.168.1.6
> 	ldap admin dn = cn=admin,dc=test,dc=com
> 	ldap delete dn = Yes
> 	ldap group suffix = ou=Groups
> 	ldap idmap suffix = ou=Idmap
> 	ldap machine suffix = ou=People
> 	ldap suffix = dc=test,dc=com
> 	ldap ssl = no
> 	ldap user suffix = ou=People
> 	idmap backend = ldap:ldap//localhost
> 	idmap uid = 15000-20000
> 	idmap gid = 15000-20000
> 	admin users = wjh, gfm
> 	hosts allow = 192.168.1., 127.
> 	cups options = raw
> 	delete readonly = Yes
> 	dos filetimes = Yes
> 	dos filetime resolution = Yes
> 	fake directory create times = Yes
>
> [homes]
> 	comment = Home Directories
> 	invalid users = root, bin, daemon, adm, sync, shutdown, halt, mail,
> news, uucp, operator, nobody
> 	read only = No
> 	create mask = 0700
> 	directory mask = 0700
> 	browseable = No
> 	csc policy = disable
>
> [netlogon]
> 	path = /usr/local/samba/lib/netlogon
> 	browseable = No
>
> [profiles]
> 	comment = Roaming User Profiles (XP,NT2000)
> 	path = /home2/samba-ntprof/%u
> 	read only = No
> 	create mask = 0640
> 	directory mask = 0750
> 	profile acls = Yes
> 	browseable = No
> 	csc policy = disable
>
> [temp]
> 	path = /var/tmp/tmp
> 	read only = No
> 	create mask = 0664
> 	directory mask = 0775
>
> [inmass]
> 	path = /home/inmass
> 	read only = No
> 	create mask = 0660
> 	directory mask = 0770
> 	browseable = No
>
> [development]
> 	path = /home/dev
> 	read only = No
> 	create mask = 0660
> 	directory mask = 0770
> 	browseable = No
>
> [qbooks]
> 	path = /home/qbooks
> 	read only = No
> 	create mask = 0660
> 	directory mask = 0770
>
> [cvsrep]
> 	path = /home/dev/cvsrep
> 	read only = No
> 	create mask = 0660
> 	directory mask = 0770
> 	browseable = No
>
> [bsoftware]
> 	path = /home/bsoftware
> 	read only = No
> 	create mask = 0664
> 	directory mask = 0774
> ###################################################################### 
> ###########################
> ######################## output of smbcacls command with ##########
> #############################
> ##################### smbcacls -d 10 //udc/temp tmp -U wenzloffd%
> d08wnzlff ######################
> ###################################################################### 
> ###########################
> 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
>   quota: False/0
>   acls: False/0
> Connecting to host=udc
> internal_resolve_name: looking up udc#20
> Opening cache file at /var/cache/samba/gencache.tdb
> Returning valid cache entry: key = NBT/UDC#20, value = 192.168.1.3:0,
> timeout = Wed Apr  5 16:33:34 2006
>
> name udc#20 found.
> Connecting to 192.168.1.3 at port 445
> socket option SO_KEEPALIVE = 0
> socket option SO_REUSEADDR = 0
> socket option SO_BROADCAST = 0
> socket option TCP_NODELAY = 1
> socket option IPTOS_LOWDELAY = 0
> socket option IPTOS_THROUGHPUT = 0
> socket option SO_SNDBUF = 50436
> socket option SO_RCVBUF = 87680
> socket option SO_SNDLOWAT = 1
> socket option SO_RCVLOWAT = 1
> socket option SO_SNDTIMEO = 0
> socket option SO_RCVTIMEO = 0
> write_socket(4,183)
> write_socket(4,183) wrote 183
> got smb length of 127
> size=127
> smb_com=0x72
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=136
> smb_flg2=51201
> smb_tid=0
> smb_pid=8985
> smb_uid=0
> smb_mid=1
> smt_wct=17
> smb_vwv[ 0]=    7 (0x7)
> smb_vwv[ 1]=12803 (0x3203)
> smb_vwv[ 2]=  256 (0x100)
> smb_vwv[ 3]= 1024 (0x400)
> smb_vwv[ 4]=   65 (0x41)
> smb_vwv[ 5]=    0 (0x0)
> smb_vwv[ 6]=  256 (0x100)
> smb_vwv[ 7]= 6656 (0x1A00)
> smb_vwv[ 8]=   35 (0x23)
> smb_vwv[ 9]=64768 (0xFD00)
> smb_vwv[10]=32995 (0x80E3)
> smb_vwv[11]=32896 (0x8080)
> smb_vwv[12]= 1097 (0x449)
> smb_vwv[13]=61208 (0xEF18)
> smb_vwv[14]=50776 (0xC658)
> smb_vwv[15]=61441 (0xF001)
> smb_vwv[16]=14848 (0x3A00)
> smb_bcc=58
> [000] 75 64 63 00 00 00 00 00  00 00 00 00 00 00 00 00
> udc..... ........
> [010] 60 28 06 06 2B 06 01 05  05 02 A0 1E 30 1C A0 0E  `
> (..+... ....0...
> [020] 30 0C 06 0A 2B 06 01 04  01 82 37 02 02 0A A3 0A
> 0...+... ..7.....
> [030] 30 08 A0 06 1B 04 4E 4F  4E 45                    0.....NO NE
> size=127
> smb_com=0x72
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=136
> smb_flg2=51201
> smb_tid=0
> smb_pid=8985
> smb_uid=0
> smb_mid=1
> smt_wct=17
> smb_vwv[ 0]=    7 (0x7)
> smb_vwv[ 1]=12803 (0x3203)
> smb_vwv[ 2]=  256 (0x100)
> smb_vwv[ 3]= 1024 (0x400)
> smb_vwv[ 4]=   65 (0x41)
> smb_vwv[ 5]=    0 (0x0)
> smb_vwv[ 6]=  256 (0x100)
> smb_vwv[ 7]= 6656 (0x1A00)
> smb_vwv[ 8]=   35 (0x23)
> smb_vwv[ 9]=64768 (0xFD00)
> smb_vwv[10]=32995 (0x80E3)
> smb_vwv[11]=32896 (0x8080)
> smb_vwv[12]= 1097 (0x449)
> smb_vwv[13]=61208 (0xEF18)
> smb_vwv[14]=50776 (0xC658)
> smb_vwv[15]=61441 (0xF001)
> smb_vwv[16]=14848 (0x3A00)
> smb_bcc=58
> [000] 75 64 63 00 00 00 00 00  00 00 00 00 00 00 00 00
> udc..... ........
> [010] 60 28 06 06 2B 06 01 05  05 02 A0 1E 30 1C A0 0E  `
> (..+... ....0...
> [020] 30 0C 06 0A 2B 06 01 04  01 82 37 02 02 0A A3 0A
> 0...+... ..7.....
> [030] 30 08 A0 06 1B 04 4E 4F  4E 45                    0.....NO NE
> Serverzone is 14400
> Doing spnego session setup (blob length=58)
> got OID=1 3 6 1 4 1 311 2 2 10
> got principal=NONE
> write_socket(4,164)
> write_socket(4,164) wrote 164
> got smb length of 302
> size=302
> smb_com=0x73
> smb_rcls=22
> smb_reh=0
> smb_err=49152
> smb_flg=136
> smb_flg2=51201
> smb_tid=0
> smb_pid=8985
> smb_uid=0
> smb_mid=2
> smt_wct=4
> smb_vwv[ 0]=  255 (0xFF)
> smb_vwv[ 1]=    0 (0x0)
> smb_vwv[ 2]=    0 (0x0)
> smb_vwv[ 3]=  189 (0xBD)
> smb_bcc=259
> [000] A1 81 BA 30 81 B7 A0 03  0A 01 01 A1 0C 06 0A
> 2B  ...0.... .......+
> [010] 06 01 04 01 82 37 02 02  0A A2 81 A1 04 81 9E
> 4E  .....7.. .......N
> [020] 54 4C 4D 53 53 50 00 02  00 00 00 12 00 12 00 30
> TLMSSP.. .......0
> [030] 00 00 00 15 02 89 60 E7  61 41 09 BC 7D 05 E9 00  ......`.
> aA..}...
> [040] 00 00 00 00 00 00 00 5C  00 5C 00 42 00 00 00
> 55  .......\ .\.B...U
> [050] 00 4E 00 49 00 58 00 45  00 5F 00 44 00 4F 00
> 4D  .N.I.X.E ._.D.O.M
> [060] 00 02 00 12 00 55 00 4E  00 49 00 58 00 45 00
> 5F  .....U.N .I.X.E._
> [070] 00 44 00 4F 00 4D 00 01  00 06 00 55 00 44 00
> 43  .D.O.M.. ...U.D.C
> [080] 00 04 00 14 00 74 00 6F  00 6D 00 74 00 65 00
> 63  .....t.o .m.t.e.c
> [090] 00 2E 00 63 00 6F 00 6D  00 03 00 1C 00 75 00
> 64  ...c.o.m .....u.d
> [0A0] 00 63 00 2E 00 74 00 6F  00 6D 00 74 00 65 00
> 63  .c...t.o .m.t.e.c
> [0B0] 00 2E 00 63 00 6F 00 6D  00 00 00 00 00 55 00
> 6E  ...c.o.m .....U.n
> [0C0] 00 69 00 78 00 00 00 53  00 61 00 6D 00 62 00
> 61  .i.x...S .a.m.b.a
> [0D0] 00 20 00 33 00 2E 00 30  00 2E 00 31 00 30 00
> 2D  . .3...0 ...1.0.-
> [0E0] 00 31 00 2E 00 34 00 45  00 2E 00 36 00 00 00
> 55  .1...4.E ...6...U
> [0F0] 00 4E 00 49 00 58 00 45  00 5F 00 44 00 4F 00
> 4D  .N.I.X.E ._.D.O.M
> [100] 00 00 00                                          ...
> size=302
> smb_com=0x73
> smb_rcls=22
> smb_reh=0
> smb_err=49152
> smb_flg=136
> smb_flg2=51201
> smb_tid=0
> smb_pid=8985
> smb_uid=0
> smb_mid=2
> smt_wct=4
> smb_vwv[ 0]=  255 (0xFF)
> smb_vwv[ 1]=    0 (0x0)
> smb_vwv[ 2]=    0 (0x0)
> smb_vwv[ 3]=  189 (0xBD)
> smb_bcc=259
> [000] A1 81 BA 30 81 B7 A0 03  0A 01 01 A1 0C 06 0A
> 2B  ...0.... .......+
> [010] 06 01 04 01 82 37 02 02  0A A2 81 A1 04 81 9E
> 4E  .....7.. .......N
> [020] 54 4C 4D 53 53 50 00 02  00 00 00 12 00 12 00 30
> TLMSSP.. .......0
> [030] 00 00 00 15 02 89 60 E7  61 41 09 BC 7D 05 E9 00  ......`.
> aA..}...
> [040] 00 00 00 00 00 00 00 5C  00 5C 00 42 00 00 00
> 55  .......\ .\.B...U
> [050] 00 4E 00 49 00 58 00 45  00 5F 00 44 00 4F 00
> 4D  .N.I.X.E ._.D.O.M
> [060] 00 02 00 12 00 55 00 4E  00 49 00 58 00 45 00
> 5F  .....U.N .I.X.E._
> [070] 00 44 00 4F 00 4D 00 01  00 06 00 55 00 44 00
> 43  .D.O.M.. ...U.D.C
> [080] 00 04 00 14 00 74 00 6F  00 6D 00 74 00 65 00
> 63  .....t.o .m.t.e.c
> [090] 00 2E 00 63 00 6F 00 6D  00 03 00 1C 00 75 00
> 64  ...c.o.m .....u.d
> [0A0] 00 63 00 2E 00 74 00 6F  00 6D 00 74 00 65 00
> 63  .c...t.o .m.t.e.c
> [0B0] 00 2E 00 63 00 6F 00 6D  00 00 00 00 00 55 00
> 6E  ...c.o.m .....U.n
> [0C0] 00 69 00 78 00 00 00 53  00 61 00 6D 00 62 00
> 61  .i.x...S .a.m.b.a
> [0D0] 00 20 00 33 00 2E 00 30  00 2E 00 31 00 30 00
> 2D  . .3...0 ...1.0.-
> [0E0] 00 31 00 2E 00 34 00 45  00 2E 00 36 00 00 00
> 55  .1...4.E ...6...U
> [0F0] 00 4E 00 49 00 58 00 45  00 5F 00 44 00 4F 00
> 4D  .N.I.X.E ._.D.O.M
> [100] 00 00 00                                          ...
> Got challenge flags:
> Got NTLMSSP neg_flags=0x60890215
>   NTLMSSP_NEGOTIATE_UNICODE
>   NTLMSSP_REQUEST_TARGET
>   NTLMSSP_NEGOTIATE_SIGN
>   NTLMSSP_NEGOTIATE_NTLM
>   NTLMSSP_NEGOTIATE_NTLM2
>   NTLMSSP_CHAL_TARGET_INFO
>   NTLMSSP_NEGOTIATE_128
>   NTLMSSP_NEGOTIATE_KEY_EXCH
> NTLMSSP: Set final flags:
> Got NTLMSSP neg_flags=0x60080215
>   NTLMSSP_NEGOTIATE_UNICODE
>   NTLMSSP_REQUEST_TARGET
>   NTLMSSP_NEGOTIATE_SIGN
>   NTLMSSP_NEGOTIATE_NTLM
>   NTLMSSP_NEGOTIATE_NTLM2
>   NTLMSSP_NEGOTIATE_128
>   NTLMSSP_NEGOTIATE_KEY_EXCH
> NTLMSSP challenge set by NTLM2
> challenge is:
> [000] A0 6B 9B 1F 57 6F EC 9A                           .k..Wo..
> NTLMSSP Sign/Seal - Initialising with flags:
> Got NTLMSSP neg_flags=0x60080215
>   NTLMSSP_NEGOTIATE_UNICODE
>   NTLMSSP_REQUEST_TARGET
>   NTLMSSP_NEGOTIATE_SIGN
>   NTLMSSP_NEGOTIATE_NTLM
>   NTLMSSP_NEGOTIATE_NTLM2
>   NTLMSSP_NEGOTIATE_128
>   NTLMSSP_NEGOTIATE_KEY_EXCH
> write_socket(4,268)
> write_socket(4,268) wrote 268
> got smb length of 122
> 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=8985
> smb_uid=100
> smb_mid=3
> 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
> [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 31  00 30 00 2D 00 31 00
> 2E  ...0...1 .0.-.1..
> [030] 00 34 00 45 00 2E 00 36  00 00 00 55 00 4E 00
> 49  .4.E...6 ...U.N.I
> [040] 00 58 00 45 00 5F 00 44  00 4F 00 4D 00 00  
> 00     .X.E._.D .O.M...
> 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=8985
> smb_uid=100
> smb_mid=3
> 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
> [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 31  00 30 00 2D 00 31 00
> 2E  ...0...1 .0.-.1..
> [030] 00 34 00 45 00 2E 00 36  00 00 00 55 00 4E 00
> 49  .4.E...6 ...U.N.I
> [040] 00 58 00 45 00 5F 00 44  00 4F 00 4D 00 00  
> 00     .X.E._.D .O.M...
> write_socket(4,76)
> write_socket(4,76) wrote 76
> got smb length of 54
> size=54
> smb_com=0x75
> smb_rcls=0
> smb_reh=0
> smb_err=0
> smb_flg=136
> smb_flg2=51201
> smb_tid=1
> smb_pid=8985
> smb_uid=100
> smb_mid=4
> smt_wct=3
> smb_vwv[ 0]=  255 (0xFF)
> smb_vwv[ 1]=    0 (0x0)
> smb_vwv[ 2]=    1 (0x1)
> smb_bcc=13
> [000] 41 3A 00 4E 00 54 00 46  00 53 00 00 00           A:.N.T.F .S...
> cli_init_creds: user wenzloffd domain test
> write_socket(4,98)
> write_socket(4,98) wrote 98
> got smb length of 35
> size=35
> smb_com=0xa2
> smb_rcls=52
> smb_reh=0
> smb_err=49152
> smb_flg=136
> smb_flg2=51201
> smb_tid=1
> smb_pid=8985
> smb_uid=100
> smb_mid=5
> smt_wct=0
> smb_bcc=0
> Failed to open \tmp: NT_STATUS_OBJECT_NAME_NOT_FOUND
>
>
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list