Hi. I have a little problem with mount permissions that I can’t seem to figure out. The unomunted directory permissions change as soon as I mount the directory. I need them to stay the same permissions mounted as they are unmounted

When unmounted the permissions are:

drwxr-xr-x 2 www-data www-data 1024 2009-02-04 11:19 adv

When I mount the folder it changes to:

drwxrwxrwx 1 root root 0 2009-02-04 11:25 adv

When mount I want it to say this:

drwxr-xr-x 1 www-data www-data 1024 2009-02-04 11:19 adv

I don’t understand what I am doing wrong and I have been googling about it. I am mounting the directory like this:

mount -t cifs -o username=adv,password=adv //imaging/ImagingUploads /mnt/upload

Below is how I have it setup in the fstab file:

//imaging/ImagingUploads /mnt/upload smbfs uid=www-data,gid=www-data,username=adv,password=adv 0 0

Can anyone give me any pointers of what I am doing wrong? Thanks for your time.