samba rename bug - solution?

Nathan England nathan at paysonlinux.org
Fri Mar 6 20:20:23 MST 2009


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/AccessControls.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
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


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...

nathan


More information about the PLUG-discuss mailing list