Permissions change when I mount a directory
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. |
Your problem is the filesystem, cifs/samba ... you can't override those
values. |
Thanks of the reply. So should I be mounting directories a different way that what I have been doing? Or won't that matter and still have the same problem? Thanks again
|
All times are GMT -5. The time now is 12:52 AM. |