smbmount is messing with mount point permissions
I have a strange problem with mounting windows shares.
I use command:
smbmount //server/[ShareName] /home/user/[MountPoint] -o
username=user,password=psw,uid=user,gid=users,
fmask=777,dmask=777,workgroup=workgroup,rw,
iocharset=iso8859-13,codepage=cp775,ttl=10000
user is my user name.
I tried it on different shares with success. Everything works fine. On this particular
share mount point permissions are wrong after mount. I cannot delete or modify
items directly under mount point, as mount point permissions are set to dr_xr_xr_x.
Everything is fine in subfolders
The strange thing is that I can modify those items right after I mount the share. Mount
point permissions are drwxrwxrwx. After some seconds the permissions change to dr_xr_xr_x.
I have found out, that this behaviour depends on ttl parameter. If I do not set it, the
permissions are dr_xr_xr_x right away. It seems like server reconsiders directory
access and new access rights are given.
Does anybody know how to fix that problem?
|