chmod a-x chmod Fix?

Chasecreek Systemhouse chasecreek.systemhouse at gmail.com
Fri Jan 6 13:52:32 UTC 2006


On 1/6/06, Ben Stringer <ben at burbong.com> wrote:

> cp -p /usr/bin/autoconf /tmp/scratch
> cat /bin/chmod > /tmp/scratch
> cp -p /tmp/scratch /bin/chmod
>
> You could also write a quick bit of C code to call the chmod system
> call. See "man 2 chmod".

Yes, this is what I was wondering.  Something that would work on the
Linux box without needing to mount a thumb key, etc.

That method would work for setuid and setgid files as well.  This
allows me to have the students fix it themselves next time.

Thank you!
--
WC -Sx- Jones | http://ccsh.us/ | Open Source Consulting




More information about the fedora-list mailing list