View previous topic :: View next topic |
Author |
Message |
andiismynick n00b
Joined: 25 Oct 2002 Posts: 7 Location: Sweden
|
Posted: Fri Oct 25, 2002 9:07 pm Post subject: Accidently changed chmod in /var/ (oops) |
|
|
Hi,
my problem is easy to explain but probably more difficult to fix:
I wrote this as root: (not very clever I guess)
chmod -R 777 /var
and that kinda screwed my system up slightyly... I cant login as root and I cant really do much at all... I was wondering if I have to reinstall or if I can just use the install CD to get back root access and change the chmod for the different sub directories in /var manually?
hm.. Im very new to this,
please help..
/andi _________________ be cool stay in school |
|
Back to top |
|
|
progster Apprentice
Joined: 16 Jul 2002 Posts: 271
|
Posted: Fri Oct 25, 2002 9:42 pm Post subject: |
|
|
these are my permissions (on a mandrake box at the moment):
Code: |
drwxr-xr-x 18 root root 4096 aug 8 16:43 var/
|
I think the best thing to do is to boot from the gentoo cdrom (or any bootdisk with support for your filesystem) and chmod /var again to the right permissions.
~Progster |
|
Back to top |
|
|
andiismynick n00b
Joined: 25 Oct 2002 Posts: 7 Location: Sweden
|
Posted: Fri Oct 25, 2002 10:01 pm Post subject: |
|
|
Ill try to do that but the thing is that I need the permissions for all the sub folders of /var
what a hassle huh? :\ _________________ be cool stay in school |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Fri Oct 25, 2002 10:47 pm Post subject: |
|
|
Here's a start: Code: | drwxr-xr-x 3 root root 4096 Oct 25 12:53 cache/
drwxr-xr-x 3 root root 4096 Apr 7 2002 db/
drwxr-xr-x 2 root root 4096 Sep 4 00:13 empty/
drwxr-xr-x 8 root root 4096 Sep 27 19:24 lib/
drwxrwxr-x 3 root uucp 4096 Oct 21 23:12 lock/
drwxr-xr-x 10 root root 4096 Oct 15 14:50 log/
lrwxrwxrwx 1 root root 15 Jul 30 22:02 mail -> /var/spool/mail/
drwxr-xr-x 4 root root 4096 Oct 25 16:33 run/
drwxr-xr-x 6 root root 4096 Sep 8 22:24 spool/
drwxrwxrwt 4 root root 4096 Oct 23 23:32 tmp/ |
_________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|