Unix file systems and Windows file systems are different. You have to provide the owner with the
uid option because the SMB client will not be able to extract an owner from the Windows file system. As the owner presented to the Linux programs doesn't exist, it's not possible to change the owner. This leaves two possibilities for system calls like
- They can either return failure, because they can't succeed, but that would lead to many warning messages or even to programs the stop once they fail.
- Or they can pretend that they succeeded. Many programs operate smoothly thinking that everything worked as expected, but it can also be confusing when you expect the operation to actually succeed.
So you aren't doing anything wrong, the software doesn't support it.
You can use the
gid options to specify user and group for all files in the mounted file system. You can also use
dir_mode for the permissions of files and directories.
This will give read/write access to everybody. Use with caution.
mount -t cifs //W10/Users ~/public/ -o username=bobb,dir_mode=777,file_mode=666
This will mount the file system as
mount -t cifs //W10/Users ~/public/ -o username=bobb,uid=user,gid=group