Can't Access mounted SMB share with user, only root

I can successfully mount the osmc share in linuxmint with the following:

sudo mount -t cifs -o credentials=~/.smbosmc,//192.168.0.xxx/osmc /mnt/osmc

The problem is I can only write to files on the share using root. I have tried to chmod permissions /mnt/osmc but when the share mounts it changes the permissions back to root owner and read only access.

How can I mount the osmc share and have rw access for the user?

After trying many examples I finally found a solution on this website:

sudo mount -t cifs -o credentials=~/.smbosmc,dir_mode=0777,file_mode=0777 //192.168.xxx.xxx/osmc /mnt/osmc

I made an alias with the ablve command and I now can mount and umount my osmc SMB share.