On Sun, Feb 10, 2008 at 03:13:51AM -0500, Kamaraju S Kusumanchi wrote:
> Can some one please tell me how to restore the correct permissions for
> directories and files in /var? Basically I copied the /var partition of my
> computer to a spare hard drive, repartitioned the disk and copied the /var
> partition back. However, during the process, the file permissions were not
> preserved (as I was not being careful about it). Now every file in /var has
> permissions like 
> 
> drwxr-xr-t  4 root root  4096 2008-02-09 17:10 lock/
> drwxr-xr-t  6 root root  4096 2008-02-10 03:03 tmp/
[snip]
> Does anyone know the solution for this?

Well, that's an oops.

I don't suppose you have another box with the same packages installed?
This is the problem.

I just did an:

[EMAIL PROTECTED]:/var$ ls -Rl| wc

and got

   5502    44187   305254

Which means there are 5502 files to which I have access (line count),
and if I email it to you, it will be 305254 bytes.

I can do it as root and email it to you (after I ensure that there's
no security issues in that).  However, then you're left fixing 5000
files or so.

You'd probably want to write a script.

Let me know.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to