Re: permissions on /var
I got the idea how I should have done it, working with tar with some
specific tars. My biggest concern at the moment is however to repair the
whole thing.
Some of my problems so far:
- nothing is being logged in /var/log, even with chmod 777 the whole
thing (which doesn't exactly helps me in repairing the whole thing)
- I can't get mail from the outside, intern it works
Could someone send me a
"sudo ls -lR /var > filename"
or something else that would help me out
Mayby this is a security risk for your system, maybe with
--ignore=*`hostname`* you could protect yourself against my evil
cracker-mind.
Thanks in advance,
Sander
On Wed, 23 Feb 2000 kmself@ix.netcom.com wrote:
> On Wed, Feb 23, 2000 at 02:35:02PM +0100, S.P. van Noort wrote:
> > Hello,
> >
> > I decided to put /var on a seperate partition, and I used the command
> > cp -R /var/* /tmpvar (/tmpvar the new partitiona for /var)
> > and then deleted /var and mounted the new partition on /var.
> >
> > It was (a couple of minutes) later that I found out that everything
> > on the new partition has owner and group root, and it looks that also some
> > of the permissions have changed, although I'm not sure of that.
> >
> > Can someone help me, for example by sending me a full ls -Rl of /var.
> >
> > And can someone tell me what I should have done, a special flag for cp for
> > example.
>
> One option is to use tar through a pipe:
>
> Moving from /somedir to /otherdir:
>
> cd /somedir
> tar cvf - . | ( cd otherdir; tar xvf - )
>
> ...not sure why I prefer this (I'm an old fart, I guess), but it
> preserves links and file permissions in a good way.
>
> ...it's also a good idea to at least to a quick visual analysis of the
> results and compare target to source before blowing away the original.
>
> --
> Karsten M. Self (kmself@ix.netcom.com)
> What part of "Gestalt" don't you understand?
>
> SAS for Linux: http://www.netcom.com/~kmself/SAS/SAS4Linux.html
> Mailing list: "subscribe sas-linux" to mailto:majordomo@cranfield.ac.uk
>
Reply to: