[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: When I try to save html pages, nothing happens



On Tue, Oct 30, 2007 at 15:07:23 -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.
> >
> > hth
> >
> > A
> 
> 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.

I would prefer using find for this:

find /var/ -uid +0 -fprintf ~/non_root_vars "%p %M %u %g\n"

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |



Reply to: