Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Ran command accidentally
PostPosted: Tue May 04, 2010 5:18 am 
Offline
Newbie

Joined: Tue May 04, 2010 5:16 am
Posts: 2
I accidentally ran chmod -R g+rw /*

When I was meant to run chmod -R g+rw ./*

It got to /proc before I could stop it. What on earth should I do? The only way I can connect to ssh now is through the lish.

Many thanks.


Top
   
PostPosted: Tue May 04, 2010 5:42 am 
Offline
Newbie

Joined: Tue May 04, 2010 5:16 am
Posts: 2
TaMeD wrote:
I accidentally ran chmod -R g+rw /*

When I was meant to run chmod -R g+rw ./*

It got to /proc before I could stop it. What on earth should I do? The only way I can connect to ssh now is through the lish.

Many thanks.


Problem was fixed ~ sorry for double post.

chmod -R g-w /*

did that, then fixed various things that still didn't work.


Top
   
 Post subject:
PostPosted: Tue May 04, 2010 10:06 am 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
For making sure everything is 100% good, your best bet would be to restore from your backups to another Linode, then whip up a script to output the permissions for each file. Run it on both sides and correct any differences. Probably doable with the right set of command line options to ls.

For what it's worth, "*" is a shorter way to say "./*", and leaves less room for typographical errors :-)


Top
   
 Post subject:
PostPosted: Tue May 04, 2010 10:28 am 
Offline
Junior Member
User avatar

Joined: Sun Oct 02, 2005 11:54 am
Posts: 43
Website: http://www.garyscott.net
Location: Goleta, CA
Well in my early Linux days I pulled a rm -rf /

I was trying to delete a whole directory and its contents. I was using the full path and I put a space in after the first slash by accident.

It ran for a long time, that is when I realized I deleted the whole server.

Luckily it had a full backup the night before. The call to tech support was I need a restore... all of it!

I was a production system for a school. Email, websites, online learning apps. Took a day to get back up.

I got burned that day and now I know what HOT is.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group