Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I really screwed up my permissions.
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
artificio
Apprentice
Apprentice


Joined: 15 Sep 2004
Posts: 183

PostPosted: Fri Apr 08, 2005 3:52 am    Post subject: I really screwed up my permissions. Reply with quote

So, in attempting to figure out what I'm doing (and set up another account besides root for a desktop), I...
Code:
chmod -R 777 /
:oops:
Anyone have any ideas how I can get my permissions back to normal?
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Apr 08, 2005 4:04 am    Post subject: Reply with quote

Brrrr! Difficult question. I think that the only way would be reinstalling, but you can now use portage not to start from scratch. You'll just have to wait till all packs reemerge.
This is the command:
Code:

emerge -e world
Back to top
View user's profile Send private message
artificio
Apprentice
Apprentice


Joined: 15 Sep 2004
Posts: 183

PostPosted: Fri Apr 08, 2005 4:09 am    Post subject: Reply with quote

Yeah, that's what I was dreading... this thread here mentions something that might be able to work, but I have no clue if it applies to this distro.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1112933096554+28353475&threadId=94416

edit- 321 packages... :o :lol:
Back to top
View user's profile Send private message
iTux
Guru
Guru


Joined: 07 Sep 2004
Posts: 586
Location: Toronto

PostPosted: Fri Apr 08, 2005 7:07 am    Post subject: Reply with quote

artificio wrote:
Yeah, that's what I was dreading... this thread here mentions something that might be able to work, but I have no clue if it applies to this distro.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?admit=716493758+1112933096554+28353475&threadId=94416

edit- 321 packages... :o :lol:


The Gentoo database is in /var/db/pkg/
It does not seem to have information about permissions, only about which files each package have installed.

If you don't want to do:
emerge -e world
right away,
you probably want to do at least:
emerge -e system

In the long term, you actually want to re-emerge everything...

You might want to do things like:
chmod -R og-w /usr
or maybe:
chmod -R o-w /usr
most files, if not all, under /usr cannot be written by other people than the owner (usually, root).

iTux
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