[OpenAFS-devel] Cannot overwrite a file

Martin MOKREJŠ mmokrejs@natur.cuni.cz
Mon, 17 Nov 2003 00:01:33 +0100 (CET)


Hi,
  I have a problem on Tru64Unix copying some files. I believe it is not a
bug in cp(1) or tar(1) program. What happens is that while copying who tree
of directories, for certain file sI get "Permission denied". We use IBM Afs
afs3.6 2.45(client only). I can dlete the file and copy, that works, but I
cannot overwrite the old-one.

Here is the trace:

host.cellname#  trace -f /usr/bin/cp /usr/local2/bin/tcsh /afs/.cellname/afsws/afs-alpha-mips/usr/local2/bin/tcsh
/usr/bin/cp
Tracing process /proc/96333
set_program_attributes (536870912ld, 24576ld, 1073741824ld, 4288ld) = 0
socket (AF_UNIX,DGRAM,PF_UNSPEC) = 4
getpid () = 96333
sendto (4, 0x11fffb798, 489, 0, 0x11fffb680, 14) = -1 (No such file or directory)
close (4) = 0
getpagesize () = 8192
obreak (0x14000f0c0) = 0
obreak (0x1400210c0) = 0
getuid () = 0
umask (00) = 022
umask (022) = 00
unknown_call () = 0
unknown_call () = 0
unknown_call () = 0
open ("/usr/local2/bin/tcsh", O_RDONLY, 00) = 4
open ("/afs/.cellname/afsws/afs-alpha-mips/usr/lo"..., O_WRONLY|O_TRUNC, 00) = -1 (Permission denied)
getpid () = 96333
table (PROCINFO, 96333, 0x1fff8c50, 1, 120) = 1
getgid () = 1
getgroups (32, 0x11fff8cc8) = 9
open ("/usr/lib/nls/msg/C/libc.cat", O_RDONLY, 045) = -1 (No such file or directory)
getuid () = 0
open ("/usr/share/.msg_conv-C", O_RDONLY, 00) = -1 (No such file or directory)
write (2, "cp: /afs/.cellname/afsws/afs-alpha-mips/us"..., 77) = cp: /afs/.cellname/afsws/afs-alpha-mips/usr/local2/bin/tcsh: Permission denied
77
close (4) = 0
sigprocmask (1, 0xfffffffffffff137, 0x0) = 0
exit (1) = (0)
EXIT [status=1]
host.cellname# -r-xr-xr-x    1 cron     daemon     680112 Nov 16 23:48
/afs/.cellname/afsws/afs-alpha-mips/usr/local2/bin/tcsh*


Thanks for help
-- 
Martin Mokrejs <mmokrejs@natur.cuni.cz>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs