[17862] in Athena Bugs

home help back first fref pref prev next nref lref last post

linux 8.3.30: install

daemon@ATHENA.MIT.EDU (Brad Thompson)
Mon May 22 16:59:58 2000

Message-Id: <200005222059.QAA24759@alice-whacker.mit.edu>
To: bugs@MIT.EDU
Date: Mon, 22 May 2000 16:59:53 -0400
From: Brad Thompson <yak@MIT.EDU>

System name:		alice-whacker.mit.edu
Type and version:	i686 8.3.30
Display type:		

Shell:			/afs/sipb/project/bash/bash (/bin/athena/bash?)
Window manager:		unknown

I was trying to /usr/bin/install a file from local disk to AFS with my
root instance.  It said "operation not permitted".  strace(1) revealed
that it was trying to chown a file to UID -1 and GID -1.  Looking at
the source for GNU fileutils 4.0p, it appears that there is a define
called "AFS" that causes the problem to go away (which ignores EPERMs
on chown(2)s). I recompiled fileutils with:
	CFLAGS=-DAFS ./configure && make
and the problem went away.  It is worth noting that install(1)
does a chown on the file even if you don't specify "-o", and
chowning to -1:-1 with null-instance tickets does not appear
to fail.  This problem is documented in the src/install.c file
of GNU fileutils.

yak

home help back first fref pref prev next nref lref last post