I want to obtain, for every one of my system's users (or at least, every one with a home directory under /home), the amount of disk space their files use. I have root access, but - there are many users with lots and lots of files, and the directory is an nfs-mount. So, counting is kind of slow; and my machine may be rebooted in the process, so I need to be able to resume counting after the machine is up again.
What would be a decent way of achieving this?
I don't very much mind the output format.
Notes:
- I can't set quotas. I mean, I have root access, but I don't get to do what I want.
du -sm /home/*take?/homeuse? You might find it more effective to use quotas for this, even if you don’t enforce limits.no_root_squashmeans that users can write their own suid binaries (something that otherwise only root can do), and I'm not sure which kind of access control you have, but allowing an NFS client to tell the NFS server that they are, in fact, requesting files on behalf of root, would basically allow any machine that users control to access all files, no matter who they belong to.