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
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
/var/cache: drwxr-sr-x 48 man root 1.0K 2007-10-30 06:29 man /var/cache/cups: -rw------- 1 lp lp 92K 2007-09-20 21:00 help.index /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 cat1 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 cat2 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 cat3 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 cat4 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 cat5 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 cat6 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 cat7 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 cat8 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 cat9 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 cs /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 de /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 de.UTF-8 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 es /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 es.UTF-8 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 fi /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 fr /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 fr.ISO8859-1 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 fr.UTF-8 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 fsstnd /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 gl /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 hu /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 id /var/cache/man: -rw-r--r-- 1 man root 1.2M 2007-10-30 06:29 index.db /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 it /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 it.ISO8859-1 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 it.UTF-8 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 ja /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 ja.UTF-8 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 ko /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 local /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 nl /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 oldlocal /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 opt /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 pl /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 pl.ISO8859-2 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 pl.UTF-8 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 pt_BR /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 ru /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 ru.KOI8-R /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 ru.UTF-8 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 sk /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 sr /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 sv /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 tr /var/cache/man: drwxr-sr-x 2 man root 1.0K 2006-07-28 18:41 X11R6 /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 zh_CN /var/cache/man: drwxr-sr-x 2 man root 1.0K 2007-10-30 06:29 zh_TW /var/cache/man/cs: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/de: -rw-r--r-- 1 man root 3.1K 2007-10-30 06:29 index.db /var/cache/man/de.UTF-8: -rw-r--r-- 1 man root 3.9K 2007-10-28 06:47 index.db /var/cache/man/es: -rw-r--r-- 1 man root 3.1K 2007-10-30 06:29 index.db /var/cache/man/es.UTF-8: -rw-r--r-- 1 man root 3.9K 2007-10-28 06:47 index.db /var/cache/man/fi: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/fr: -rw-r--r-- 1 man root 3.1K 2007-10-30 06:29 index.db /var/cache/man/fr.ISO8859-1: -rw-r--r-- 1 man root 4.5K 2007-10-28 06:47 index.db /var/cache/man/fr.UTF-8: -rw-r--r-- 1 man root 5.4K 2007-10-28 06:47 index.db /var/cache/man/gl: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/hu: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/id: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/it: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/it.ISO8859-1: -rw-r--r-- 1 man root 4.6K 2007-10-28 06:47 index.db /var/cache/man/it.UTF-8: -rw-r--r-- 1 man root 5.4K 2007-10-28 06:47 index.db /var/cache/man/ja: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/ja.UTF-8: -rw-r--r-- 1 man root 4.0K 2007-10-28 06:47 index.db /var/cache/man/ko: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/nl: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/pl: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/pl.ISO8859-2: -rw-r--r-- 1 man root 4.3K 2007-10-28 06:47 index.db /var/cache/man/pl.UTF-8: -rw-r--r-- 1 man root 4.3K 2007-10-28 06:47 index.db /var/cache/man/pt_BR: -rw-r--r-- 1 man root 3.1K 2007-10-30 06:29 index.db /var/cache/man/ru: -rw-r--r-- 1 man root 3.1K 2007-10-30 06:29 index.db /var/cache/man/ru.KOI8-R: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/ru.UTF-8: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/sk: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/sr: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/sv: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/tr: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/zh_CN: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/cache/man/zh_TW: -rw-r--r-- 1 man root 3.1K 2007-10-28 06:47 index.db /var/lib: drwx------ 2 fetchmail nogroup 1.0K 2006-07-29 09:04 fetchmail /var/lib: drwxr-xr-x 4 mpd audio 1.0K 2007-08-02 12:24 mpd /var/lib: drwxr-xr-x 5 statd root 1.0K 2007-10-17 13:07 nfs /var/lib/mpd: drwxr-xr-x 2 mpd audio 1.0K 2007-06-08 14:05 playlists /var/lib/mpd: -rw-r--r-- 1 mpd audio 118 2007-10-18 11:04 state /var/lib/mpd: -rw-r--r-- 1 mpd audio 86 2007-08-02 12:16 tag_cache /var/lib/nfs: drwxr-xr-x 2 statd root 1.0K 2006-07-19 05:33 rpc_pipefs /var/lib/nfs: drwxr-xr-x 2 statd root 1.0K 2007-07-16 12:52 sm /var/lib/nfs: drwxr-xr-x 2 statd root 1.0K 2007-07-16 12:52 sm.bak /var/log: drwxr-s--- 2 Debian-exim adm 1.0K 2007-10-30 06:29 exim4 /var/log: drwxr-xr-x 2 mpd audio 1.0K 2007-08-02 12:16 mpd /var/log: drwxr-sr-x 2 news news 1.0K 2006-07-28 18:44 news /var/log/mpd: -rw------- 1 mpd audio 0 2007-08-02 12:16 errors.log /var/log/mpd: -rw------- 1 mpd audio 0 2007-08-02 12:16 mpd.log /var/mail: -rw------- 1 andrew mail 89K 2007-10-30 06:30 andrew /var/mail: -rw------- 1 mail mail 1019 2006-07-28 18:48 mail /var/run: drwxr-xr-x 2 avahi avahi 1.0K 2007-09-01 10:11 avahi-daemon /var/run: drwxr-xr-x 2 messagebus messagebus 1.0K 2007-10-17 13:08 dbus /var/run: drwxr-x--- 2 Debian-exim Debian-exim 1.0K 2007-10-18 11:29 exim4 /var/run: drwxr-xr-x 2 haldaemon haldaemon 1.0K 2007-10-29 11:43 hal /var/run: drwxr-xr-x 2 hplip root 1.0K 2007-10-17 13:08 hplip /var/run: drwxr-xr-x 2 identd nogroup 1.0K 2007-10-24 13:00 identd /var/run: drwxr-xr-x 2 mpd audio 1.0K 2007-10-18 11:04 mpd /var/run: -rw-r--r-- 1 statd root 6 2007-10-29 11:42 rpc.statd.pid /var/run: drwxrws--- 2 vde2-net vde2-net 1.0K 2007-07-16 12:53 vde2 /var/run/hplip: -rw-r--r-- 1 hplip root 6 2007-10-29 11:45 hpiod.pid /var/run/hplip: -rw-r--r-- 1 hplip root 5 2007-10-29 11:45 hpiod.port /var/run/hplip: -rw-r--r-- 1 hplip lp 6 2007-10-29 11:45 hpssd.pid /var/run/hplip: -rw-r--r-- 1 hplip lp 6 2007-10-29 11:45 hpssd.port /var/run/identd: -rw-r--r-- 1 identd nogroup 5 2007-10-24 13:00 identd.pid /var/run/screen: drwx------ 2 andrew andrew 1.0K 2007-10-28 13:55 S-andrew /var/run/screen/S-andrew: prwx------ 1 andrew andrew 0 2007-10-30 13:57 4114.pts-1.basement /var/spool: drwxr-x--- 5 Debian-exim Debian-exim 1.0K 2007-08-08 14:32 exim4 /var/spool/cron: drwxrwx--T 2 daemon daemon 1.0K 2006-07-28 19:54 atjobs /var/spool/cron: drwxrwx--T 2 daemon daemon 1.0K 2002-01-18 00:13 atspool /var/spool/cups-pdf: drwxrwxrwt 2 nobody nogroup 1.0K 2007-08-12 02:37 ANONYMOUS /var/tmp: drwx------ 3 andrew andrew 1.0K 2007-08-05 09:23 kdecache-andrew /var/tmp/kdecache-andrew: drwx------ 2 andrew andrew 1.0K 2007-07-19 13:31 http /var/tmp/kdecache-andrew: -rw-r--r-- 1 andrew andrew 541K 2007-08-05 09:23 ksycoca /var/tmp/kdecache-andrew: -rw-r--r-- 1 andrew andrew 762 2007-08-05 09:23 ksycocastamp
signature.asc
Description: Digital signature