On Tue, Oct 30, 2007 at 03:07:23PM -0700, tom arnall wrote:
> On Tuesday 30 October 2007 14:28, Andrew Sackville-West wrote:
> > On Tue, Oct 30, 2007 at 02:02:42PM -0700, tom arnall wrote:
> > > when you say 'the rest of /var should be owned by root as well,' do you
> > > mean everything under /var, not just the immediate subdirectories?
> >
> > andrew@basement:~/src/gnucash$ ls -lR /var/* 2>&1 | awk '/^\// { /
> > curr_dir=$0 } /^[^\/tl]/ {if ($3!="root") print curr_dir " " $0}' > /
> > ~/non_root_vars
> >
> > produces the attached output. I think it is what you need, showing
> > only those things that are *not* root-owned in my /var.
> >
> > you can ignore /var/run.
> >
>
> running:
>
> ls -lR /var/* 2>&1 | awk '/^\// { curr_dir=$0 } /^[^\/tl]/ {if
> ($3!="root") print curr_dir " " $0}' > ~/non_root_vars
>
> in file 't', i get:
>
> kloro@debian:~$ ./t
> ./t: line 1: /bin: is a directory
>
> and no 'non_root_vars' in my home.
you're missing the point tom. I was providing the output of that
command from *my* machine so that you could see what you're perms
should look like and change them appropriately. I provided you with
all the files and directories under my /var that were *not* owned by
root so you could compare and make adjustments as needed. I would
expect you'd get only a handful of items from that command as you
chown'ed the whole thign to root...
Anyway, pull up that previous email and take a look at the
attachement.
A
Attachment:
signature.asc
Description: Digital signature