chown user:user -R on /var : any chance to recover
Leonard Chatagnier
lenc5570 at sbcglobal.net
Sat Jan 16 17:20:07 UTC 2010
Stefan Onken wrote:
> Hello,
>
> accidentally I did "chown -R emails:emails /var/" instead of
> "/var/emails". This results of course in a more or less broken system.
> It's a brand new server, not even "live", so it just annoying and waste
> of time.
>
> Is there any chance to recover the correct settings (like reinstall all
> packages) or should I better do a new installation ?
>
> cu
> stonki
>
>
>
Hear is a copy of my /var folder using ls -al which will likely fix your
issue if you change ownership to agree:
drwxr-xr-x 16 root root 4096 2010-01-14 21:10 .
drwxr-xr-x 24 root root 4096 2010-01-10 13:30 ..
drwxr-xr-x 2 root root 4096 2010-01-16 08:30 backups
drwxr-xr-x 20 root root 4096 2010-01-14 21:11 cache
drwxrwxrwt 2 root root 4096 2009-12-01 22:17 crash
drwxr-xr-x 2 root root 4096 2009-10-20 16:59 games
drwxr-xr-x 70 root root 4096 2010-01-14 21:11 lib
drwxrwsr-x 2 root staff 4096 2009-10-19 20:18 local
drwxrwxrwt 3 root root 60 2010-01-16 08:30 lock
drwxr-xr-x 16 root root 4096 2010-01-16 08:30 log
drwxrwsr-x 2 root mail 4096 2010-01-11 07:30 mail
drwxr-xr-x 2 root root 4096 2009-10-20 16:40 opt
drwxr-xr-x 17 root root 660 2010-01-16 08:17 run
drwxr-xr-x 8 root root 4096 2009-12-02 07:36 spool
drwxrwxrwt 4 root root 4096 2009-10-23 23:42 tmp
drwxr-xr-x 3 root root 4096 2010-01-14 21:11 www
It will be a start anyway but you might have to delve
into the subdirectories too.
--
Leonard
lenc5570 at sbcglobal.net
More information about the ubuntu-users
mailing list