[12772] in Athena Bugs

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

rsaix 7.7F: AFS

daemon@ATHENA.MIT.EDU (John Hawkinson)
Fri Oct 21 04:03:26 1994

To: bugs@MIT.EDU
Date: Fri, 21 Oct 1994 04:03:19 EDT
From: John Hawkinson <jhawk@MIT.EDU>

System name:		pickled-herring
Type and version:	POWER 7.7F (1 update(s) to same version)
Display type:		POWER_Gt1

What were you trying to do?
	Copy a file while preserving dates. The below example is
	contained entirely within the athena.mit.edu cell for 
	simplicity's sake, though I originally encountered the problem
	while copying from the iastate.edu

[1. I have a preexisting file in locker that I have ``all'' access
to; I have tokens and tickets and all that...]

athena% cat athena% fs la
Access list for . is
Normal rights:
  system:expunge ld
  system:anyuser l
  jhawk rlidwka
athena% cat > inetd.conf
This is a test.
athena% ls -l inetd.conf
-rw-------   1 jhawk    system        16 Oct 21 03:57 inetd.conf


[2. I attempt to copy a mode 444 file owned by another uid in it's place,
preserving the dates of the original file (cp -p)]

athena% ls -l /srvd
lrwxrwxrwx   1 root     system        43 Oct 20 22:01 /srvd -> /afs/athena.mit.edu/system/rs_aix32/srvd.77
athena% ls -l /srv/etc/inetd.conf
/srv/etc/inetd.conf not found
athena% ls -l /srvd/etc/inetd.conf
-r--r--r--   1 root     sys         2326 Jul 08 10:02 /srvd/etc/inetd.conf
athena% cp -p /srvd/etc/inetd.conf inetd.conf
afs: failed to store file (access denied)
cp: inetd.conf: Permission denied
athena% ls -l inetd.conf
inetd.conf not found
athena%

What's wrong:

	AFS should not have failed to store the file. Furthermore,
	AFS should NOT have removed the preexisting file in the event
	of such a failure.

What should have happened:

	What do you think? It should have worked fine. It should be noted
	that the desired behavior may be obtained with:

	cp -p /srvd/etc/inetd.conf /tmp/inetd.conf
	cp -p /tmp/inetd.conf inetd.conf


Please describe any relevant documentation references:

	None. Common sense, Unix intuition, just us chickens.


  --jhawk

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