LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 01-05-2009, 11:03 PM   #1
prashsharma
Member
 
Registered: Sep 2006
Posts: 38
Blog Entries: 1

Rep: Reputation: 15
How to revert the permissions set on chmod as a root user


Hi,

Can any body help me to revert the permissions set on chmod as a root user. Means that i have set chmod 000 /bin/chmod now I am unable to set permission on any file or folder.

Prashant Sharma
 
Old 01-05-2009, 11:28 PM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Boot a live CD and chmod it from there?
 
Old 01-05-2009, 11:29 PM   #3
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Do you have access to boot the box with a rescue CD/DVD? If so, just re-boot and use the chmod on the rescue CD to change the permissions on your installed version. You should also be able to reinstall the package that contains the chmod binary.
 
  


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
chown and/or chmod to restore permissions on files moved from another drive by root. Shay Linux - General 4 04-12-2007 09:47 AM
Windows partition requires root permissions- chmod question Garibaldi3489 Slackware 19 05-16-2005 02:52 AM
Root user unable to rm, mv or chmod Zoar Linux - Newbie 2 06-16-2004 11:23 PM
Graphically setup user permissions (frontend to chmod and chown) sfonvill Linux - Security 2 08-27-2003 04:12 PM
How to set user permissions? chem1 Linux - Security 3 06-19-2003 02:12 PM


All times are GMT -5. The time now is 11:17 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