Need some help with file shares - TrueNAS to Kubuntu

I am brand new to TrueNAS, but using Debian OS’s for decades…

I think I setup the share correctly on TrueNAS

Kubuntu under SMB Shares I can see my NAS

I try to open it, it asks for username/password
It accepts it, and now I can see the 2 shared NAS folders that I made.

Now to open a folder it asks for username/password - and it won’t accept it.

I am using the same username/password as my user on the TrueNAS.

Any suggestion?

Hi and welcome to the forums.

I presume when you created your dataset you selected SMB as the type? Can you share a screenshot of your dataset permissions.

Not really sure. I think one was SMB type and the other APPS

Permissions

Owner:

root:root

Click an item to view NFSv4 permissions

owner@ - root

Allow | Full Control

group@ - root

Allow | Modify

Group - builtin_users

Allow | Modify

Group - builtin_administrators

Allow | Full Control

User - apps

Allow | Modify

First time posting here, not sure it is allowing me to paste a screen shot.

I also tried to mount from Ubuntu in terminal using cif

It mounts a folder, no error but its empty

And I can’t write anything to the folder, says permission

If you mean by that the user “truenas_admin”, that you use to login with the WebGUI - that doesnt work (anymore).

You need to create a new user with the proper permissions for the dataset you are sharing through SMB.

Like I said, this is my first time using TrueNAS, and I have been reading a bunch.

It looks like I solved my issue by doing this, not sure if it is correct, but it worked.

When configuring “Share ACL”
There is a field for Permission and Type.
I changed these to “FULL” and “DENIED”

Maybe this is too open of a share, I still would like to tie it to a specific user account that I use.

Why are you using SMB to access files on TrueNAS from Kubuntu? SMB is for Windows; you should be using NFS on a Linux/Unix system.

SMB is for everyone Win, Mac and Linux.

Just because you can use SMB on Linux doesn’t mean you should. NFS works far, far better. SMB is only there for legacy Windows systems.

Quite the opposite. SMB has become a universal protocol overs the years.

SMB is single-threaded in TrueNAS, and doesn’t support the Unix permission model used by Linux.

Look Im not saying NFS doesn’t have a time and a place as it does but this idea that Linux machines should only talk NFS and somehow that SMB is purely for legacy Windows systems is a very old fashioned and outdated view.

SMB is a great choice for mixed OS access, AD environments, General purpose file shares to name a few.

NFS is great for Linux servers, Datastores, VM storage to name a few.

It’s horses for courses.

We’re talking about an environment with a TrueNAS server (Linux), and a Kubuntu (Linux) client. There’s no mention of other OSes, and it’s obviously not an AD environment.

Exactly what advantage does SMB have here? It has a huge performance penalty compared to NFS and doesn’t support Unix permissions.

My advice for the average user regardless of their client OS would be to use SMB if you are using your TrueNAS as a general purpose file share. It is much more flexible going forward should people join your network and you wish to share data and allows greater and more granular permissions using NFSv4 ACLs. It also provides better security by default because it relies on user based authentication rather than IP based auth.

I do not agree with this statement. Once again the average home user accessing either over WiFi or 1Gb is not going to see any difference in performance. If anything NFS could be worse if the client is requesting sync writes.

Not sure why you are getting hung-up about this? It’s not a failure it’s by design to improve permissions.

I am using SMB cause that is what I always used in the past with a mix of Windows and Linux.

I created a NFS share on TrueNAS
I tried to mount it on my Kubuntu laptop, I think it does..
Then I try to access the folder and it only asks for a password…. Which anything I type in fails and locks it out.

I have been playing with NFS share and I am stuck.

I can get the NFS share on TrueNAS to mount on my Ubuntu machine but….

I don’t have access unless I am root, and even then it looks like read only.
So I need to figure out this permissions issue…