Re:Rm -rf remains
by pantalaimon on Saturday June 14, 2014 @07:52AM
(#7892613)
> Like compile a C program that calls the chmod system call
The compiler wouldn't be executable anymore either
The compiler wouldn't be executable anymore either
Maybe the original problem was actually "chmod a-rwx /bin/chmod" ... That would mean even the superuser couldn't execute /bin/chmod anymore, so you'd have to do something more creative to reset the executable bit on /bin/chmod. Like compile a C program that calls the chmod system call, or: