Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Accidently changed chmod in /var/ (oops)
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
andiismynick
n00b
n00b


Joined: 25 Oct 2002
Posts: 7
Location: Sweden

PostPosted: Fri Oct 25, 2002 9:07 pm    Post subject: Accidently changed chmod in /var/ (oops) Reply with quote

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


Joined: 16 Jul 2002
Posts: 271

PostPosted: Fri Oct 25, 2002 9:42 pm    Post subject: Reply with quote

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


Joined: 25 Oct 2002
Posts: 7
Location: Sweden

PostPosted: Fri Oct 25, 2002 10:01 pm    Post subject: Reply with quote

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


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Oct 25, 2002 10:47 pm    Post subject: Reply with quote

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
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