Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
chmod help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ryan.n
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 110

PostPosted: Mon Mar 20, 2006 5:49 am    Post subject: chmod help! Reply with quote

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
View user's profile Send private message
asiB4
Guru
Guru


Joined: 16 Jan 2006
Posts: 370
Location: Inside the electric circus

PostPosted: Mon Mar 20, 2006 6:29 am    Post subject: Reply with quote

8O 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
View user's profile Send private message
ryan.n
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 110

PostPosted: Mon Mar 20, 2006 6:34 am    Post subject: Reply with quote

thanks, that should work for most of it. any lists floating around of what perms files should have?
Back to top
View user's profile Send private message
asiB4
Guru
Guru


Joined: 16 Jan 2006
Posts: 370
Location: Inside the electric circus

PostPosted: Mon Mar 20, 2006 11:55 pm    Post subject: Reply with quote

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! :P

Chad
_________________
Registered Linux User #332738

Back to top
View user's profile Send private message
PMcCauley
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 283
Location: Alberta, Canada

PostPosted: Tue Mar 21, 2006 4:14 am    Post subject: Reemerging packages may work. Reply with quote

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
View user's profile Send private message
ryan.n
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jul 2004
Posts: 110

PostPosted: Tue Mar 21, 2006 12:24 pm    Post subject: Reply with quote

good idea, thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum