View previous topic :: View next topic |
Author |
Message |
artificio Apprentice
Joined: 15 Sep 2004 Posts: 183
|
Posted: Fri Apr 08, 2005 3:52 am Post subject: I really screwed up my permissions. |
|
|
So, in attempting to figure out what I'm doing (and set up another account besides root for a desktop), I...
Anyone have any ideas how I can get my permissions back to normal? |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri Apr 08, 2005 4:04 am Post subject: |
|
|
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:
|
|
Back to top |
|
|
artificio Apprentice
Joined: 15 Sep 2004 Posts: 183
|
|
Back to top |
|
|
iTux Guru
Joined: 07 Sep 2004 Posts: 586 Location: Toronto
|
Posted: Fri Apr 08, 2005 7:07 am Post subject: |
|
|
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 |
|
|
|