Re: chmod a-x chmod Fix?

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

 



On Fri, 2006-01-06 at 07:52, Chasecreek Systemhouse wrote:
> 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.

Or use perl. 
perldoc -f chmod
for instructions. (But students that have root access should know
this...)

-- 
  Les Mikesell
   lesmikesell@xxxxxxxxx



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

  Powered by Linux