LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-10-2005, 08:33 PM   #1
bob7
LQ Newbie
 
Registered: Aug 2005
Posts: 12

Rep: Reputation: 0
When command lines go bad


One thing that can be a double edged sword in linux is the complete ease of doing administrative stuff via the command line. For instance, you can simply type 'chmod 444 /' as root and mess up the entire system, which happens to be what I just did. Now how exactly do I recover from this?
 
Old 09-10-2005, 08:41 PM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Can't you just chmod it back to 775 or something?
 
Old 09-10-2005, 09:06 PM   #3
bob7
LQ Newbie
 
Registered: Aug 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Yep, and that worked.
 
Old 09-11-2005, 05:47 AM   #4
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
chmod 775 is all good and well but, your system is now "VERY" insecure........there are files such as
/etc/shadow and /root that are now readable by users......LOL.........just hope you don't get hacked because crackers can now use your box to send out spam and worms!!
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command erase lines paraiso Linux - Newbie 4 05-12-2005 10:48 AM
Combining 2 command lines satimis Programming 6 10-18-2004 09:40 PM
Bad Argument '53' IPtables doesn't run and has no bash debug lines? piratebiter Linux - Security 3 09-02-2003 10:18 AM
Grip command lines linuxtakemeaway Linux - Newbie 5 02-03-2003 01:11 PM
command lines? rockin chair Linux - General 5 04-28-2002 10:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:26 AM.

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