Why are the file permissions different when viewed in my truenas scale shell compared to when I mount them in ubuntu?

I have a dataset on my truenas scale server that I would like to be able to access from my various computers and I am having problems with the write access. I’m a bit of a newbie to these things so this is not too surprising. In trying to fix this I noticed the following:

When viewing my location in the shell on my truenas scale server I see the following:

However, when I view the same location mounted on my ubuntu machine I see the following:

I don’t understand how the directories can appear to have different owners and permissions?

SMB doesn’t reflect the literal Unix ownership/permissions as seen on the source filesystem.

You’ll need to mount the share with the uid and gid options to reflect the user(s) and group(s) accessing the share. (The client user.)

For example: uid=1000,gid=1000 in your mount parameters.