Path: utzoo!mnetor!uunet!husc6!cca!mirror!datacube!ftw From: ftw@datacube.UUCP Newsgroups: comp.unix.wizards Subject: Re: Broken chmod Message-ID: <106600022@datacube> Date: 16 Dec 87 15:25:00 GMT References: <10850@brl-adm.ARPA> Lines: 32 Nf-ID: #R:brl-adm.ARPA:-1085000:datacube:106600022:000:897 Nf-From: datacube.UUCP!ftw Dec 16 10:25:00 1987 alex@umbc3.UUCP writes: > In article <3067@phri.UUCP> roy@phri.UUCP (Roy Smith) writes: > >In article <10841@brl-adm.ARPA> rbj@icst-cmr.arpa (Root Boy Jim) writes: > >> 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 not just compile: > > >main () > >{ > > chmod ("/bin/chmod", 0755); > >} > > >and run it (probably suid to root)? > >-- > ^^^^^^^^^^^^^^^^^^^^^ > hmmm... would you do this Probably by logging in as root and then running the program... Farrell T. Woods Datacube Inc. Systems / Software Group 4 Dearborn Rd. Peabody, Ma 01960 VOICE: 617-535-6644; FAX: (617) 535-5643; TWX: (710) 347-0125 INTERNET: ftw@datacube.COM UUCP: {rutgers, ihnp4, mirror}!datacube!ftw "OS/2 -- Half an operating system"