Koozali.org: home of the SME Server

Quota

Rick

Quota
« on: February 11, 2002, 09:35:51 PM »
Since the quota system is introduced I noticed a user on my system who owns more then 80 Mb of files. This should not be a problem but I would like to see wich files he owns. Is there a way to do that?

Sebastian Stypel

Re: Quota
« Reply #1 on: February 12, 2002, 09:42:20 AM »
Rick,

Yep,

at computer or via ssh/telnet do:

ls /home/e-smith/files/users/user/home
(obviously, exchange user for the person of whom you would like to see what files he owns)

that will list all the directories that that user has

sabu

Damien Curtain

Re: Quota
« Reply #2 on: February 12, 2002, 10:06:49 AM »
Or maybe something like.... (as root or use sudo)

cd / ; find . -user $user -type f -exec ls -s {} \; | sort -nr > /tmp/$user-diskusage

where $user = your user, eg you can cycle through everyone doing something like

for user in grep '[A-z0-9]*=user' /home/e-smith/accounts|cut -d= -f1 ; do
    (cd / ; find . -user $user -type f -exec ls -s {} \; | sort -nr > /tmp/$user-diskusage)
done
--
 Damien

Rick

Re: Quota
« Reply #3 on: February 13, 2002, 09:51:13 PM »
Thanks everybody.

I ended up in deleting the user account and creating it again. The whole problem seems to have something to do with the roaming profile of this user wicht had grown out of hand.