Hello, I am new to Linux (been using for 1 month) and have just started learning about scripting in a UNIX/Linux class. I understand a little and have wrote a few simples scripts, but am having difficult designing a particular script for class. The script is meant to check each user (including root) directory on that computer and report 2 things:

(1) a Long listing of the user home directory (not the files) to see the rights the owner has.
(2) Disk space used by each user directory includeing sub directory's.

The script then takes the results and adds them to a file (stdout). The main issue I am havening is figuring out how to make the script check each user's home directory. If anyone could offer help, advice, it would be appreciated.

Thanks~