Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!rbj@icst-cmr.arpa
From: rbj@icst-cmr.arpa (Root Boy Jim)
Newsgroups: comp.unix.wizards
Subject: Broken chmod
Message-ID: <10841@brl-adm.ARPA>
Date: 14 Dec 87 18:52:04 GMT
Sender: news@brl-adm.ARPA
Lines: 17

Awhile back, somebody lamented the fact that their chmod had somehow
acquired mode 644. Since there was no way to chmod chmod because it wasn't
executable, they loaded it from a backup tape.

Why couldn't they just have done the following:

cd /bin
cp cat foo		# create foo with mode 755
cp chmod foo		# doesn't change mode of foo, or
cat < chmod > foo	# doesn't change mode either
./foo 755 chmod
rm foo

	(Root Boy) Jim Cottrell	
	National Bureau of Standards
	Flamer's Hotline: (301) 975-5688
I guess it was all a DREAM..  or an episode of HAWAII FIVE-O...