chmod a-x chmod Fix?
Les Mikesell
lesmikesell at gmail.com
Fri Jan 6 14:05:05 UTC 2006
On Fri, 2006-01-06 at 07:52, Chasecreek Systemhouse wrote:
> 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.
Or use perl.
perldoc -f chmod
for instructions. (But students that have root access should know
this...)
--
Les Mikesell
lesmikesell at gmail.com
More information about the fedora-list
mailing list