Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-01-2005, 09:05 PM   #1
LQ Newbie
Registered: Feb 2005
Posts: 2

Rep: Reputation: 0
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?


Old 02-01-2005, 09:12 PM   #2
Registered: Dec 2003
Distribution: Slackware 10
Posts: 45

Rep: Reputation: 15
You could use a live disc.

Mount your root drive and chmod +x /path/to/mountroot/bin/chmod
Old 02-01-2005, 09:16 PM   #3
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
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
Old 02-01-2005, 09:53 PM   #4
LQ Newbie
Registered: Feb 2005
Posts: 2

Original Poster
Rep: Reputation: 0
aaa's solution is cool!

Thanks to you both for replying!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
chmod a+x jre-1_5_0-linux-i586-rpm.bin chemichael Fedora 4 09-24-2005 11:23 AM
user cant mount after chmod 777 /bin/mount misterwiddle Linux - General 2 04-06-2005 06:36 PM
chmod won't do what I type in olsmat Linux - Software 2 11-02-2004 03:10 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 06:37 AM
How to type "box" used in chmod cmd dark_light Linux - Newbie 4 03-30-2003 04:43 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration