LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-20-2013, 06:14 AM   #1
Death.System
LQ Newbie
 
Registered: Aug 2012
Posts: 12

Rep: Reputation: Disabled
Talking [SOLVED] How to undo a command


So, I was moving some files from my desktop to my laptop via team viewer, because ssh wasn't connecting via LAN for some reason...

I was getting read only file errors while doing so, and sudo chmod 777 <dir> -R fixed the problem for some of them, but then I accidentally sudo chmod 777 /* -R 'ed everything, and I realized that / was my root dir, not in the /media and I think I messed up my permissions...

I can't sudo anymore because I changed it (AHAHAHAHA) I'll probably need to chmod it from linux recovery... But I'm asking here if there's a way to recover that small damage I did on my computer instead of re-installing everything.

Thank you :P

Last edited by Death.System; 01-20-2013 at 07:15 AM.
 
Old 01-20-2013, 06:52 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
actually it is not a small damage, probably you destroyed your system. usually there is no (simple) way to restore all the permissions because they were not stored. Maybe you have a backup.
Have you seen this: http://www.linuxquestions.org/questi...ssions-345624/ or this: http://serverfault.com/questions/615...le-permissions ?
 
1 members found this post helpful.
Old 01-20-2013, 07:03 AM   #3
Death.System
LQ Newbie
 
Registered: Aug 2012
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
actually it is not a small damage, probably you destroyed your system. usually there is no (simple) way to restore all the permissions because they were not stored. Maybe you have a backup.
Have you seen this: http://www.linuxquestions.org/questi...ssions-345624/ or this: http://serverfault.com/questions/615...le-permissions ?
Ah no, I didn't look for anything, it's 3am and I'm clumsy a bit right now, so I guess that explains :P

My backups are in other partitions in /media, but I think I stopped it before it reached the /media directory, maybe, because /lost+found wasn't changed (unless it skips it, but I entered the command via sudo)

Oh well, I'll just re-install. Sorry for a random thread, but thanks for the info.
 
  


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
How do undo MV or RM command? pogromca Linux - Newbie 8 11-26-2013 07:25 AM
[SOLVED] How Do I undo This Command? Sumguy Linux - Newbie 4 08-25-2010 03:14 PM
To undo a given bash-command HULLU Linux - Newbie 6 02-21-2010 11:06 PM
Undo a chmod command? WingnutOne Linux - General 3 06-23-2008 06:20 PM
How do I undo last command executed? Elfking Linux - General 4 02-05-2004 02:18 AM


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