rsync problem with smb/ncpfs filesystem?

Claas Hilbrecht claas+maillinglists.rsync at jucs-kramkiste.de
Fri Feb 27 09:45:49 GMT 2004


I'm trying to rsync a smb filesystem to a novell netware filesystem. Both 
file systems are mounted on a debian woody system (from root). On both file 
systems the rsync process has "root" file system rights. But trying to 
rsync a file with a read only flag like

-r-xr-xr-x    1 root     root      3441648 Jan 20  1998 WEBCLIENT.EXE

to the novell filesystem gives this error:

rename "/mnt/sunoha/vol1/USER/labor/labor/FL_Update/.WEBCLIENT.EXE.kHUBMV" 
-> "labor/FL_Update/.WEBCLIENT.EXE.kHUBMV" -> 
"labor/FL_Update/WEBCLIENT.EXE": Permission denied

I think the problem is that the ncpfs filesystem (or the netware server) 
doesn't like the renaming of a read only file. I'm using the command line 
"rsync -acS --stats --delete-after --force".

I play a litte bit and get this result:

gateway:/mnt/sunoha/vol1# echo xxx > xxx
gateway:/mnt/sunoha/vol1# ls -l xxx
-rwxr-xr-x    1 root     root            4 Feb 27 09:53 xxx
gateway:/mnt/sunoha/vol1# chmod 444 xxx
gateway:/mnt/sunoha/vol1# ls -l xxx
-r-xr-xr-x    1 root     root            4 Feb 27 09:53 xxx
gateway:/mnt/sunoha/vol1# mv xxx yyy
mv: cannot unlink `xxx': Operation not permitted
mv: cannot remove `xxx': Operation not permitted
gateway:/mnt/sunoha/vol1# ls -l xxx
-r-xr-xr-x    1 root     root            4 Feb 27 09:53 xxx
gateway:/mnt/sunoha/vol1# ls -l yyy
-r-xr-xr-x    1 root     root            4 Feb 27 09:53 yyy

Trying the same in a dos command box gives the same result. So it seems 
that the netware server doesn't like that a read only file can be renamed.

Now I will try to not preserve permission maybe this is a work around. 
Rsyncing the file to a xfs file system works fine.

rsync  version 2.6.0  protocol version 27
Copyright (C) 1996-2004 by Andrew Tridgell and others
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks, batchfiles,
              IPv6, 64-bit system inums, 64-bit internal inums
Modified for Debian to have --bwlimit-mod, a variation on the --bwlimit 
algorithm.

gateway:/opt/sun/bin# dpkg -l | grep smb
ii  libpam-smbpass 3.0.2a-1       pluggable authentication module for SMB 
pass
ii  libsmbclient   3.0.2a-1       shared library that allows applications 
to t
ii  libsmbclient-d 3.0.2a-1       libsmbclient static libraries and headers
ii  smbclient      3.0.2a-1       a LanManager-like simple client for Unix
ii  smbfs          3.0.2a-1       mount and umount commands for the smbfs 
(for

gateway:/opt/sun/bin# dpkg -l | grep ncp
ii  libncp         2.2.3-1        Shared library used by programs that use 
Net
ii  ncpfs          2.2.3-1        Utilities to use resources from NetWare 
serv

-- 
 Claas Hilbrecht
 http://www.jucs-kramkiste.de



More information about the rsync mailing list