I want to mount a samba sghare to a directory in my home dir. I have created it but mount the share as root. Upon mount, the owner of my dir changes to root and my user doesn't have permission tow rite files on the share… How do I modify my mount line to be able to mount with write permissions? It currently looks like this: sudo mount -t cifs //IP/share/ /mount/point/ -o rw,username=user,password=pass,domain=domain
Directory changes permission when mounted
mountpermissionssamba
Best Answer
Use the
uid
andgid
mount options: