You are not logged in.

#1 2009-04-01 17:42:27

hobonix
Member
From: Seattle
Registered: 2009-02-17
Posts: 31

chown -R user:wheel /var

That's right, I entered chown -R user: wheel /var as root. Boy do I feel dumb.

ls -Rla /var | cat > var.txt was over 40000 lines, maybe if I would have run that first I would have done things differently.

Any suggestions? Would chown -R root:root /var be bad?

Here's the directories in /var maybe I can just chown -R some of them?

 drwxr-xr-x  7 user  wheel 4096 2009-02-21 08:35 cache
drwxr-xr-x  2 user  wheel 4096 2008-12-07 11:12 empty
drwxr-xr-x  3 user  wheel 4096 2009-03-31 15:56 ftp
drwxrwxr-x  3 user  wheel 4096 2009-03-07 07:57 games
drwxr-xr-x 18 user  wheel 4096 2009-03-28 10:54 lib
drwxr-xr-x  2 user  wheel 4096 2009-01-11 06:31 local
drwxrwxrwt  3 user  wheel 4096 2009-02-21 14:42 lock
drwxr-xr-x  5 user  wheel 4096 2009-03-31 18:15 log
lrwxrwxrwx  1 user  wheel   10 2009-01-11 06:31 mail -> spool/mail
drwxr-xr-x  2 user  wheel 4096 2009-01-11 06:31 opt
drwxr-xr-x  2 user  wheel 4096 2009-03-31 17:32 proftpd
drwxr-xr-x 13 user  wheel 4096 2009-03-31 18:20 run
drwxr-xr-x  4 user  wheel 4096 2009-02-21 14:41 spool
drwxrwxrwt  4 user  wheel 4096 2009-03-31 16:54 tmp

Can someone tell me what the permissions should look like for these dirs?


I think Lisp is funny, double semi-colons and unmatched parentheses crack me up.

Offline

#2 2009-04-01 18:10:28

quarkup
Member
From: Portugal
Registered: 2008-09-07
Posts: 497
Website

Re: chown -R user:wheel /var

well up to 3 weeks, I did a

sudo chown -R /var /etc /usr

funny, isn't it  ?

big_smile


solved it by reinstaling sudo (The fastest way)
and put the consolekit daemon working to access the desktop manager.

http://bbs.archlinux.org/viewtopic.php?id=68125

and chowned back to the original user some (few or none) folders.


If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.

Offline

Board footer

Powered by FluxBB