[Samba] Confused with profile filesystem permissions

Andreas andreas at conectiva.com.br
Tue Nov 9 16:19:53 GMT 2004


On Tue, Nov 09, 2004 at 10:32:29AM -0200, Andreas wrote:
> [2004/11/09 10:26:55, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2487)
>   Returning domain sid for domain TREINAMENTO -> S-1-5-21-1283145168-670325121-1332409668
> [2004/11/09 10:26:55, 1] smbd/service.c:make_connection_snum(648)
>   einstein (10.0.4.142) connect to service profiles initially as user buffy (uid=19422, gid=100) (pid 13664)
> [2004/11/09 10:26:56, 2] smbd/open.c:open_file(245)
>   buffy opened file buffy/prf14.tmp read=Yes write=No (numopen=1)
> [2004/11/09 10:26:56, 2] smbd/close.c:close_normal_file(270)
>   buffy closed file buffy/prf14.tmp (numopen=0)
> [2004/11/09 10:26:56, 2] smbd/open.c:open_file(245)
>   buffy opened file buffy/prf14.tmp read=Yes write=Yes (numopen=1)
> (...)
> [2004/11/09 10:26:56, 2] smbd/open.c:open_file(245)
>   buffy opened file buffy/prf16.tmp read=Yes write=No (numopen=1)
> [2004/11/09 10:26:56, 2] smbd/close.c:close_normal_file(270)
>   buffy closed file buffy/prf16.tmp (numopen=0)
> [2004/11/09 10:26:56, 2] smbd/trans2.c:call_trans2setfilepathinfo(3681)
>   file_set_dosmode of buffy/SendTo failed (Não há dados disponíveis) <--- "no data available"
> [2004/11/09 10:27:07, 1] smbd/service.c:close_cnum(836)
>   einstein (10.0.4.142) closed connection to service netlogon
> (...)

Quick strace (grepped for brevity):
# grep -E '(mkdir|getx|rmdir)' log
mkdir("buffy/SendTo", 0700)             = 0
getxattr("buffy/SendTo", "system.posix_acl_access", 0xbfffc330, 132) = -1 ENODATA (No data available)
getxattr("buffy/SendTo", "system.posix_acl_access", 0xbfff9080, 132) = -1 ENODATA (No data available)
rmdir("buffy/SendTo")

There are lots of stat() and stat64() for the buffy directory and buffy/SendTo in between. 
The /var/lib/samba/profiles partition is reiserfs from kernel 2.6 and mounted with the acl 
option. From the grep result above, it seems the SendTo directory is created, probed and 
then removed?! Why?



More information about the samba mailing list