View previous topic :: View next topic |
Author |
Message |
ryan.n Tux's lil' helper
Joined: 07 Jul 2004 Posts: 110
|
Posted: Mon Mar 20, 2006 5:49 am Post subject: chmod help! |
|
|
by mistake, i ran chmod -R 0777 * not realizing i was in the root of the system and now EVERY file and directory on the computer is set to 0777. what can i do to get the perms back the way they were? |
|
Back to top |
|
|
asiB4 Guru
Joined: 16 Jan 2006 Posts: 370 Location: Inside the electric circus
|
Posted: Mon Mar 20, 2006 6:29 am Post subject: |
|
|
yikes!
can't you just chmod -R 0755, to give it the deafult rwxr-xr-x permissions. obviously in / as "root".
Chad _________________ Registered Linux User #332738
|
|
Back to top |
|
|
ryan.n Tux's lil' helper
Joined: 07 Jul 2004 Posts: 110
|
Posted: Mon Mar 20, 2006 6:34 am Post subject: |
|
|
thanks, that should work for most of it. any lists floating around of what perms files should have? |
|
Back to top |
|
|
asiB4 Guru
Joined: 16 Jan 2006 Posts: 370 Location: Inside the electric circus
|
Posted: Mon Mar 20, 2006 11:55 pm Post subject: |
|
|
yeah...good luck on that one...I decided to check out just about every file I have on my system...entirely way too many to list. prolly the easiest thing to do is at least get back to 755 on everything..then if things don't execute properly or if some issues arise due to incorrect permissions, deal with it then. At that point I think it would be an ownership issue. I would say 755 is a safe bet for now, since the files will still be executable and readable...just not writeable to anyone other than the owner...since you didn't change ownership, I don't think changing perms back to 755 will cause much of a problem. Shouldn't anyrate. Good Luck!
Chad _________________ Registered Linux User #332738
|
|
Back to top |
|
|
PMcCauley Apprentice
Joined: 14 Mar 2006 Posts: 283 Location: Alberta, Canada
|
Posted: Tue Mar 21, 2006 4:14 am Post subject: Reemerging packages may work. |
|
|
I would assume if you reemerged any program that would fix the permissions except for your config files if you keep those. Maybe even emerge system. |
|
Back to top |
|
|
ryan.n Tux's lil' helper
Joined: 07 Jul 2004 Posts: 110
|
Posted: Tue Mar 21, 2006 12:24 pm Post subject: |
|
|
good idea, thanks |
|
Back to top |
|
|
|