LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [SOLVED] How to undo a command (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bsolved%5D-how-to-undo-a-command-4175446445/)

Death.System 01-20-2013 05:14 AM

[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

pan64 01-20-2013 05:52 AM

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 ?

Death.System 01-20-2013 06:03 AM

Quote:

Originally Posted by pan64 (Post 4874004)
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.


All times are GMT -5. The time now is 01:01 PM.