I have FreeNAS server and domain-controller with Windows Server 2008.
I use OpenSuse 11.4 and my Windows account have full access to FreeNAS CIFS share.
I can connect through any filemanager with smb protocol support using
smb://windows_user@freenas/share and I can read and write to any folder.
Now I'm trying to setup mount.cifs. Here is my string in
//freenas/share /mnt/Data cifs username=windows_user,password=windows_password,_netdev,uid=1000,gid=100 0 0
(where 1000 is my default linux user ID and 100 is 'users' group ID).
mount -a I see folders from FreeNAS share but I can read/write them only as root user (not default user with ID = 1000).
ls -o says that folder's owner is 1000 but no read/write access.
I tried options like 'file_mode=0777' or 'dir_mode' or force uid or add user 1000 to root group - none of this worked. Any ideas what's wrong?