I mounted a Windows share to my Ubuntu 11.10 system via adding the following line to the /etc/fstab
:
//serveraddr/sharedfolder /mnt/foldername/ smbfs credentials=/home/myname/.smbpasswd 0 0
using the tutorial here.
But there's a problem with the permissions. The owner of the mount folder is root
. I can not create any folders or files in the mounted point is I don't become the root. Even I can not change the ownership to my default user via
sudo chown -R myname .
I googled and saw that it might stem from the fact that Windows file formats (fat32/ntfs) can not save ownership. But when I connect to the same location via samba as
smb://serveraddr/sharedfolder
by providing my credentials, I have the privileges to write without being the root.
How can I make it to let me write to the mounted folder?