What can we do if we type chmod ugo-x /bin/chmod ??????
Hi everyone!
If we type chmod ugo-x /bin/chmod we can't make chmod executable again (or for that matter any other mode change...). Is there some way (other than reinstalling chmod or writing a c program to change modes) to do anything? :confused: Thanks Bunny |
You could use a live disc.
Mount your root drive and chmod +x /path/to/mountroot/bin/chmod |
Or you can take any existing executable and overwite it:
cp /bin/ls ~/ls dd if=/bin/chmod of=~/ls ~/ls a+x /bin/chmod |
aaa's solution is cool!
Thanks to you both for replying! |
All times are GMT -5. The time now is 06:24 AM. |