permission problem

Hi, i have a small problem. Ok, basically. i have http://home.drirc.net

i just created that.. so what i did was
mkdir -p /dh/users
mkdir -p /dh/htdocs
mkdir -p /dh/wwwlogs

then i went in httpd.conf, added a vhost for home.drirc.net, document root = /dh/htdocs
# home.drirc.net
<VirtualHost 64.124.9.175:80>
ServerName home.drirc.net
ServerAdmin devnull@drirc.net
DocumentRoot /dh/htdocs
ErrorLog /dh/wwwlogs/error_log
CustomLog /dh/wwwlogs/access_log combined
</VirtualHost>

anyhow
basically what i want to do is i just want to be able to give some friends home pages, about 10mb of space.
i want it to be either http://home.drirc.net/~username or http://home.drirc.net/username

so what i did was, i made a small shell script, nothing fancy, nothing big...

#!/bin/sh
# Adding a new domain to the webserver.
echo Whats the username
read username
adduser $username -d /dh/users/$username
passwd $username
echo
echo
echo Creating htdocs directory for $username
mkdir -p /dh/users/$username/htdocs
echo Setting permissions properly..
chown -R $username /dh/users/$username
chmod 711 /dh/users/$username
chmod -R 755 /dh/users/$username/htdocs
chown -R $username /dh/users/$username
chgrp -R $username /dh/users/$username
rm -rf /dh/users/*/.kde
rm -rf /dh/users/*/.wl
rm -rf /dh/users/*/Desktop
rm -f /dh/users/*/.bash*
rm -f /dh/users/*/.screen*
rm -f /dh/users/*/.em*
echo
echo Done!

what i do is i login thru ftp, with the username i created
and it works and all
i go in the htdocs dir
and upload an image
so when u goto http://home.drirc.net/~username it shows the index OF....... But when u click on the image, or file, or whatever.. it says 403 forbidden

/dh/wwwlogs/error_Log says

[Sat Nov 17 15:00:15 2001] [error] [client 24.226.14.56] (13)Permission denied: file permissions deny server access: /dh/users/bob/htdocs/cool.jpg

can anyone help?
BTW, in my httpd.conf, i have this stuff put in
Code:
<IfModule mod_userdir.c>
    UserDir public_html
    UserDir htdocs
</IfModule>

<Directory /home/*/public_html>
    AllowOverride All
    Options All MultiViews
</Directory>

<Directory /dh/users/*/htdocs>
    AllowOverride All
    Options All MultiViews
</Directory>
  
<Directory /dh/htdocs>  
    AllowOverride All  
    Options All MultiViews
</Directory>
i dunno what is wrong.

can anyone help me out?

 

 

 

 

Top