SUMMARY: Command to list all UIDs that own files on a filesytem?

From: Ed Finch (efinch@eos.EAST.HITC.COM)
Date: Wed Dec 10 1997 - 20:57:24 CST


My original question:

I vaguely remember reading the man page for a command that will list all
UIDs which own files on a given filesystem. Does this sound familiar?

Thanks to those who replied:

Patrick Patterson <sys-admin@gdc.ca>
"Iskander, Tim" <ISKANDER@infimed.com>
Deepak_D_Wilson@notes.seagate.com
Ian MacPhedran <Ian_MacPhedran@mackenzie.usask.ca>
"Paquette, Trevor" <TrevorPaquette@mcc.net>
Matthew Stier <Matthew.Stier@tddny.fujitsu.com>
Sweth Chandramouli <sweth@astaroth.nit.gwu.edu>
Rich Snyder <rsnyder@eos.hitc.com>
Sanjay Patel <patesa@aur.alcatel.com>
James Ashton <James.Ashton@keating.anu.edu.au>
Mark Bergman <bergman@phri.nyu.edu>
Stefan Voss <s.voss@terradata.de>
Casper Dik <casper@holland.Sun.COM>
Glenn Satchell <Glenn.Satchell@uniq.com.au>
Ajay Gautam <ajay@avlinsun.avlin.stpn.soft.net>
Kevin Sheehan Kevin.Sheehan@uniq.com.au
"V. Q. Hoang" <vqh@dwrock.dw.lucent.com>
Tim Fritz <tim@wayback.er.usgs.gov>
"Adam M. Lambert" <adam@scl.cwru.edu>

I was looking for the "quot" command, which was offered by several of
those who responded.

Other suggestions:

fuser (Built-in to Solaris)
lsof (ftp://vic.cc.purdue.edu/pub/tools/unix/lsof)
quota
dispuid
quotacheck
/usr/bin/ls -n

And several variants of find:

find /filesystem -user userid -print
find /filesystem -xdev -ls | awk '{print $5}' | sort -u
find /mntdir -exec ls -n {} \; | tr -c " " | cut -d" " -f3 | sort | uniq
find . -mount -depth -ls | awk '{print $5}' | sort -u

Thanks again,
Ed

-- 
Ed Finch
UNIX & ClearCase Administrator
NASA's Earth Observation System, "Mission To Planet Earth"

"Of course NT may outsell Unix: It takes a roomful of NTs to match the power of one good Unix."

- Nicholas Petreley



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:11 CDT