Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Rick 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?
-
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
-
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
-
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.