SMB Share not writeable from Ubuntu VM

Joined
Jul 7, 2022
Messages
3
Very new to TrueNAS and the Linux environment, let's get that outa the way :)

The share is accessible and writeable from a Win 10 Machine w/o a problem. (My main machine)

I set up a Ubuntu 20.04.4 VM inside of a TrueNAS virtual machine and I am able to mount it manually in terminal with:
Code:
sudo mount -t cifs -o rw,username=$username,password=$password //ip/share /vm_share


From terminal, I can create directories no issue, kick ass! I thought I nailed it but then when creating folders from the Ubuntu GUI (or programs like qbittorent trying to move completed torrents, NOT Terminal) I get a permission denied.
denied.PNG


After hours and hours I then realize that the terminal is actually "logged in" as my main/root TrueNAS user.
torbox.PNG
and NOT the user I created when going through the Ubuntu installation which is just "tor". From Terminal I of course have no issues writing.
So needless to say I am very confused and I don't even know where to start troubleshooting from here. I'm assuming it's because the local account of the VM box, 'tor', is the one attempting to create inside the directory in which it doesn't have permissions. I create a user 'tor" on the TrueNAS side, but not surprisingly that UbuntuVM local account cant create / modify the directory. Can anyone give me some guidance here? I also want to post this before I fudge up and close the tab. More edits to come.
 
Joined
Jul 7, 2022
Messages
3
I also searched through some posts and found this suggestions:
fstab.PNG

Running this followed by
Code:
sudo mount -a

Code:
mount error(13): Permission denied
 
Joined
Jul 7, 2022
Messages
3
Solved from searching and "reading" :)
Found the key to the madness:
Code:
 mount -t cifs -o credentials=/root/.creds,uid=1000,gid=1000,file_mode=0644 //192.168.0.XX/grandchild /mnt
 
Top