[OpenAFS-devel] Cannot overwrite a file

Derrick J Brashear shadow@dementia.org
Tue, 18 Nov 2003 14:59:04 -0500 (EST)


On Tue, 18 Nov 2003, [iso-8859-2] Martin MOKREJŠ wrote:

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

you have to go through the vendor's vfs layer. ask your vendor if it
matters. on some platforms, it does. i wasn't just suggesting it because i
was bored;-)