Re: chmod a-x chmod Fix?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/6/06, Ben Stringer <ben@xxxxxxxxxxx> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux