-   Linux - Software (
-   -   What can we do if we type chmod ugo-x /bin/chmod ?????? (

bunny123 02-01-2005 08:05 PM

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:



LSA 02-01-2005 08:12 PM

You could use a live disc.

Mount your root drive and chmod +x /path/to/mountroot/bin/chmod

aaa 02-01-2005 08:16 PM

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

bunny123 02-01-2005 08:53 PM

aaa's solution is cool!

Thanks to you both for replying!

All times are GMT -5. The time now is 01:42 AM.