LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 09: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, 09: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, 09:16 PM   #3
aaa
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
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


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


All times are GMT -5. The time now is 06:03 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration