Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Oct 2010 14:10:16 -0500
From:      Troy <troy@twisted.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: File ownership being changed to root:wheel ownership after copying to samba server
Message-ID:  <4CCB1C18.3020303@twisted.net>
In-Reply-To: <AANLkTimHyso1pbBBf8H3L8HMOTMPCTB0a3Breq7qrkhx@mail.gmail.com>
References:  <4CC910CB.40406@twisted.net> <AANLkTimHyso1pbBBf8H3L8HMOTMPCTB0a3Breq7qrkhx@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help


On 10/28/2010 10:15 AM, Torfinn Ingolfsen wrote:
> On Thu, Oct 28, 2010 at 7:57 AM, Troy<troy@twisted.net>  wrote:
>
>> A very strange problem just started happening with Samba after I upgraded
>> to version samba34-3.4.9 on FreeBSD 8.0-STABLE.
>>
>> Let's say my username is foobar.  I copy a file named To Fix.txt from a
>> windows desktop machine to a samba share.
>>
>> In the log it shows the following:
>>
>> [2010/10/28 00:53:16,  2] lib/access.c:406(check_access)
>>   Allowed connection from 172.16.0.5 (172.16.0.5)
>> [2010/10/28 00:53:24,  2] smbd/open.c:580(open_file)
>>   foobar opened file Working/To Fix.txt read=Yes write=Yes (numopen=2)
>> [2010/10/28 00:53:24,  2] smbd/close.c:612(close_normal_file)
>>   foobar closed file Working/To Fix.txt (numopen=1) NT_STATUS_OK
>>
>> Then when I look at the owner:group of the file that was just copied it
>> shows:
>>
>> -rwxr-xr-x   1 root      wheel        1422 Oct 27 16:07 To Fix.txt*
>>
>> I cannot figure out why the file is owned by root:wheel when it should be
>> foobar:foobar.
>>
>> Anyone have any ideas?
>>
> Likely a permissions / umask problem.
> Have you checked for sticky bits on the directory?

No sticky bit is set on the directory and the parent directory 
permissions are owned by the user foobar:wheel

drwxr-xr-x   6 foobar  wheel   512 Oct 28 00:53 Working/





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CCB1C18.3020303>