Ok, now i am confused. I made this smb_user to protect mounting process with password, when i don't use this username, and mount as guest, then the owner of all files is nobody:nobody. Now i have config of samba:
Code:
[testshare]
comment = Test share
path = /path/to/my/share
guest ok = yes
writeable = Yes
create mask = 0666
directory mask = 0555
And i am mounting like:
Code:
mount -vvvv -t cifs //<IP>/testshare /mnt/data/ -o setuids,guest
And now no matter as who i am logged, when i create a file on /mnt/data/ the owner is nobody:nobody (exactly like before, bot it was smb_user:smb_usert, when i was mounting with password). No way, to force the owner Alice:Alice