Ooh interesting. So I just checked the dataset > permissions on the folder and group users have read and write permissions.
the user I added is in the group folder
Ooh interesting. So I just checked the dataset > permissions on the folder and group users have read and write permissions.
the user I added is in the group folder
i posted it in the OP but will reshare here and yes i followed that guide
//IP Address/books /mnt/books cifs credentials=/home/USERNAME/.smbcredentials 0 0
the folder path in truenas as displayed under Path in the data set is
data/fs1/books
double checked and all users on the group users
have read and execute access. the user in question is in the users group.
and just to reiterate i manually made the directory on the ubuntu machine already
Can you post the format of the
fstab
entry? You can change/hide sensitive info if desired, but > keep the syntax and format in place.
What are the permissions and ownership for the file
/home/USERNAME/.smbcredentials
?Does the password contain any special characters?
Is the share name really “books”, and the path on the server is
/mnt/data/fs1/books
?
it’s not books, name is private but the rest of the path is 100% accurate, copied and pasted directly from truenas expect truenas doesn’t use mnt in the data set path like you did above
Can you temporarily mount the share without fstab
?
mkdir /mnt/smbtest mount -t cifs -o ro,file_mode=0444,dir_mode=0555,uid=1000,gid=1000,username=truenasuser //192.168.0.100/share /mnt/smbtest
EDIT: Change the values accordingly, such as the IP address.
I try now
no clue why my text is big here lol
Well, you are a big guy. The owner of this very forum.
Yes it does. TrueNAS imports pools with -R /mnt
, so that all paths start with /mnt/<poolname>
.
Unless you circumvented the web UI when importing this pool.
Can you confirm the permissions for this file?
If the manual mount
command doesn’t work, you can try again, but this time change the TrueNAS user’s password to something simple like password1234
. This way we can rule out special characters.
Yes it does. TrueNAS imports pools with
-R /mnt
, so that all paths start with/mnt/<poolname>
.
Unless you circumvented the web UI when importing this pool.
I just used the GUI, and have no knowledge of the truenas shell.
so were on the same page im using the latest truenas community and when clicking datasets > datasets name > books > dataset details the Path shows exactly Path: data/fs1/books
in that exact format. There is not mnt in the path and i still can’t share screenshots to prove my innocence here.
Can you confirm the permissions for this file?
my bad forgot to mention above, my .smbcredentials file permission are 600 just like that article stated.
If the manual
mount
command doesn’t work, you can try again, but this time change the TrueNAS user’s password to something simple likepassword1234
. This way we can rule out special characters.
changed it what you wrote. still producing the same error as in my OP
That’s the dataset layout.
For the actual filesystem path (folders), it is /mnt/data/fs1/books/
, which is also what the SMB shares are concerned with.
Did you try it with a simple password, like password1234
? You’ll have to make your TrueNAS user’s password temporarily password1234
.
That’s the dataset layout.
For the actual filesystem path (folders), it is
/mnt/data/fs1/books/
, which is also what the SMB shares are concerned with.
are you saying that I should try with //192.168.1.200/mnt/data/fs1/books/
instead?
yes that’s what i did, i changed the password in truenas and made it password1234 then placed that in the command you shared.
That produced the same error as in my OP
I’m a dummy. I missed the other part of your post.
Please don’t ban my account, TrueNAS Forum Owner. I’ll try better.
You’re on Ubuntu…
Can you double check:
apt install cifs-utils
you have 1 strike against your account. again and banhammer time
you want me to reinstall it?
I had an incident on Pop!_OS where an update removed cifs-utils
without me noticing it. My SMB shares stopped working.
I had to manually reinstall the package.
Doesn’t hurt to try.
cifs-utils is already the newest version (2:7.0-2build1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
im sure this is user error on my end regarding truenas. im just have a gut feeling since I’m not new to linux but just truenas
No. The first way was correct:
//192.168.1.200/books
Assuming that “books” is the Share Name as configured in TrueNAS.
So how about we just start from scratch with a new dataset and i’ll make a test user.
I can’t find a link to documentation so someone drop one if you know the right way to create > setup > grants permissions to a new dataset.
Just use a preset for “Open” permissions.
only options in the dataset preset are: