LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 02-01-2005, 08:05 PM   #1
bunny123
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?

Thanks

Bunny
 
Old 02-01-2005, 08:12 PM   #2
LSA
Member
 
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, 08:16 PM   #3
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
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, 08:53 PM   #4
bunny123
LQ Newbie
 
Registered: Feb 2005
Posts: 2

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

Thanks to you both for replying!
 
  


Reply



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 10:23 AM
user cant mount after chmod 777 /bin/mount misterwiddle Linux - General 2 04-06-2005 05:36 PM
chmod won't do what I type in olsmat Linux - Software 2 11-02-2004 02:10 PM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 05:37 AM
How to type "box" used in chmod cmd dark_light Linux - Newbie 4 03-30-2003 03:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 PM.

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