Re: samba rename bug - solution?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Eric Shubert
Date:  
To: plug-discuss
Subject: Re: samba rename bug - solution?
Thanks for sharing, Bryan.

I suppose it's not surprising that rsync is so windows-friendly, given
that rsync comes from the same folks that bring us samba. :)

Bryan O'Neal wrote:
> I used rsync from windows to my CentOS back up server and it copied the
> permissions, including the advanced ACLs just fine. I believe I used
> something like -arvtzAogpX for my attribute list. Rsync is a very capable
> program even on windows.
>
> -----Original Message-----
> From:
> [mailto:plug-discuss-bounces@lists.plug.phoenix.az.us] On Behalf Of Craig
> White
> Sent: Friday, March 06, 2009 8:40 PM
> To: Main PLUG discussion list
> Subject: Re: samba rename bug - solution?
>
> On Fri, 2009-03-06 at 20:20 -0700, Nathan England wrote:
>> On Friday 06 March 2009 20:03:14 Craig White wrote:
>>> On Fri, 2009-03-06 at 19:11 -0700, Eric Shubert wrote:
>>>> I'm using rsync and cygwin to migrate some files from WinXP to
>>>> samba
>>>> (3.0.28-1.el5_2.1) on Centos (5.2). Files that have the read-only
>>>> attribute are failing the final rename with "permission denied".
>>>>
>>>> Permissions are all ok, and I've verified with manual testing that
>>>> when attempting to rename a read-only file on a samba share from
>>>> the Windoze CLI, it fails with "permission denied", so the problem
>>>> appears to be with samba.
>>>>
>>>> I've googled quite a bit, and found an indication that this indeed
>>>> was a problem with samba and "might be fixed in 3.0.14a. Should be
>>>> fixed for sure in 3.0.20rc1". So I'm running 3.0.28 (the latest
>>>> COS5 version) and it appears to not be fixed in that version.
>>>>
>>>> 3 questions:
>>>>
>>>> 1) Does anyone know which version this might have been fixed in,
>>>> or if it's fixed yet at all?
>>> ----
>>> I would suspect that the version isn't as important here as making
>>> sure that the filesystem is mounted with extended attributes.
>>>
>>> You might find the official samba documentation useful here
>>> http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/AccessCont
>>> rols.h
>>> tml ----
>>>
>>>> 2) Where might I find a compatible rpm of a newer version of samba?
>>> ----
>>> I wouldn't suggest that you jump the shark on this just yet.
>>> ----
>>>
>>>> 3) Any idea why is RHEL/COS so far behind with samba releases?
>>> ----
>>> Sure - CentOS is repackage of RHEL and Red Hat is reticent to
>>> distribute updates that require changing configuration files where
>>> the act of updating causes things to break. That said, RHEL 5
>>> finally went from Samba 3.0.10.x to 3.0.28.x because they needed
>>> more conformity with versions of Vista and Win2k8 Server.
>>>
>>> That said, I think it's your configuration that needs changing, not
>>> the version of Samba but if you feel you need to install a later
>>> version of samba...
>>>
>>> http://apt.kde-redhat.org/apt/kde-redhat/redhat/5/i386/RPMS.unstable
>>> /
>>>
>>> has version 3.0.32
>>> and
>>> sernet.de should have various 3.2.x and 3.3.x versions suitable for
>>> installation on RHEL 5/CentOS 5
>>> http://ftp.sernet.de/pub/samba/tested/centos/5/
>>>
>>> Craig
>>>
>> I was under the impression that samba does not allow for name changes,
>> but rather copies the current file to a new file of whatever name you
>> give it. So if you rename file.exe to fileA.exe it copies file.exe to
>> fileA.exe then deletes file.exe
>>
>> If this is the case it may not be able to delete the RO files...
> ----
> I'm not even sure that using rsync on cygwin respects NT permissions at all
> and would probably suggest that he use robocopy.exe for copying files and
> retaining permissions but I was concentrating on answering the questions he
> was asking.
>
> Craig
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



--
-Eric 'shubes'

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss