On Tue, Oct 30, 2007 at 11:28:53PM +0100, Florian Kulzer wrote: > 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? > > > > > > [EMAIL PROTECTED]:~/src/gnucash$ ls -lR /var/* 2>&1 | awk '/^\// { / > > > curr_dir=$0 } /^[^\/tl]/ {if ($3!="root") print curr_dir " " $0}' > / > > > ~/non_root_vars > > > > > I would prefer using find for this: > > find /var/ -uid +0 -fprintf ~/non_root_vars "%p %M %u %g\n"
man, you gotta go and ruin my fun. show off! ;-) seriously though, that's a much better way to do it. I was just happy I could get what I needed. Now if tom would just understand what I'm showing him... ;) A
signature.asc
Description: Digital signature