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 <>
"Iskander, Tim" <>
Ian MacPhedran <>
"Paquette, Trevor" <>
Matthew Stier <>
Sweth Chandramouli <>
Rich Snyder <>
Sanjay Patel <>
James Ashton <>
Mark Bergman <>
Stefan Voss <>
Casper Dik <casper@holland.Sun.COM>
Glenn Satchell <>
Ajay Gautam <>
Kevin Sheehan
"V. Q. Hoang" <>
Tim Fritz <>
"Adam M. Lambert" <>

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

Other suggestions:

fuser (Built-in to Solaris)
lsof (
/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 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