The setweb command

The setweb command is used to change the group associated with a directory to www, so that the Web server can access files in the directory.

This command must be used after you create the directory, and before you put any files in it.

To change the group for a directory, use the command setweb directory-name:

stealth% pwd
/stealth/users/ariel/Mail
stealth% ls -ldg stuff
drwxr-x---  2 ariel    staff         512 Jul 28 15:34 stuff
stealth% setweb stuff
stealth% ls -ldg stuff
drwxr-x---  2 ariel    www           512 Jul 28 15:34 stuff

Now you can move files into the directory or create new files, and they will all have the correct group associated with them:

stealth% cd stuff
stealth% cat > junk
here's some junk for the junk file
[^D here]
stealth% ls -lg
total 1
-rw-r--r--  1 ariel    www            35 Jul 28 16:18 junk