Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Messed up /etc/ dir permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
atmosx
n00b
n00b


Joined: 17 Jul 2009
Posts: 43

PostPosted: Tue Oct 01, 2024 4:20 pm    Post subject: Messed up /etc/ dir permissions Reply with quote

Hello,

The other day I messed up the `/etc/` dir permissions by issuing the following command:

```
chmod user1:user1 -R *
```

I thought I was under `/etc/user1prog` but I was in `/etc`. Once I realised what happened I chmod' everything to `root` apart from `ulogd.conf` which I remember belonging to `ulogd:ulogd` user. Is there any way where I can _fix_ this by re-emerging world or something similar?

Comparing perms to `staging3` doesn't help because they're untar-ed as 'root' so... it's all `root`. The system works, so doesn't seem be like a big deal but I might be missing something subtle.

Thanks!
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2167

PostPosted: Tue Oct 01, 2024 5:06 pm    Post subject: Reply with quote

A quick look, without any deep searching, shows virtually everything on my /etc is owned by root:root. That's to be expected - /etc is system configuration data, usually not writeable by users, but in general readable by everyone.
/etc/cups is root:lp and /etc/portage is root:portage.

Code:
chmod 777 /etc
would be the sort of mistake that's dangerous!
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing 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