[OpenAFS-devel] Cannot overwrite a file

Martin MOKREJŠ mmokrejs@natur.cuni.cz
Tue, 18 Nov 2003 14:18:18 +0100 (CET)


On Mon, 17 Nov 2003, Derrick J Brashear wrote:

> On Mon, 17 Nov 2003, [iso-8859-2] Martin MOKREJŠ wrote:
>
> > 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.
>
> Sure:
>
> > host.cellname# -r-xr-xr-x    1 cron     daemon     680112 Nov 16 23:48
> > /afs/.cellname/afsws/afs-alpha-mips/usr/local2/bin/tcsh*
>
> chmod +w /afs/.cellname/afsws/afs-alpha-mips/usr/local2/bin/tcsh

Is that necessary? Th euser has AFS privileges for write already, so why
does the C code get permission denied from kernel? Doesn't the AFS part of
kernel handle this?

open ("/afs/.cellname/afsws/afs-alpha-mips/usr/lo"..., O_WRONLY|O_TRUNC,00) = -1 (Permission denied)


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