SMB Shares ??

indivision

Guru
Joined
Jan 4, 2013
Messages
806
That could ultimately work. But, I see two down-sides:

A) Sharing TrueNAS->SMB is more direct than going through TrueNAS->VM->SMB. So, it wouldn't be as efficient and may not perform as well.

B) I don't have experience setting up VM in the Scale context. Just haven't needed it yet. But, I have to believe that it's at least as involved as an SMB share.
 

mervincm

Contributor
Joined
Mar 21, 2014
Messages
157
Have you tried from a powershell command line?

Restart your worstation service to kill any lingering connections, then map a drive using credentials specified in the command.
(from an administrator Powershell prompt)

net stop workstation /y
net start workstation
net use * \\truenas\media password /user:truenas\username

This works for me.

if not I would then look at your TRUENAS SMB service, share/permission details
 
Last edited:

StarTrek133

Contributor
Joined
Sep 5, 2022
Messages
112
Thanks Indivision for the advice .. That might be true about the performance hit .. but I at a lost as to how to get this all working .. My current Media/File server has a failing raid card and I need to get everything moved sooner rather than later ..

If someone wants to provide me simple step instructions to follow to create the SMB shares I will try again .. but regardless I still have to create a windows 11 virtual machine because I need that machine to run Plex and Shoko .. So if I am going to create a VM anyways that is windows and its what I know why not do it from there ..

I am not against learning new things .. I am just very fustrated and confused as to why it works for everyone else and not me ..
 

StarTrek133

Contributor
Joined
Sep 5, 2022
Messages
112
Thanks Mervincm for the info ..

Not sure if you read in another post but currently I have nuked all the SMB Shares and have started over .. So nothing is currently setup .. also see the above post for more information ..

I also don't see how your windows command line would work if going throw explorer doesn't work .. it had to be a permissions issue but what I don't understand is using the Root admin account it doesn't work or making a new user like I have seen in videos .. If its on my own network and I am the only person logging into it making a new users seems stupid and I should just be able to use the Root account ..
 

mervincm

Contributor
Joined
Mar 21, 2014
Messages
157
Well as far as I know you can't connect to an SMB share using root , at least by default, so there is that ...
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
I should just be able to use the Root account
Your opinion is noted, but you can't. And if that's what you've been trying to do, that's your problem. And if you'd answered our questions rather than just (repeatedly) blowing it away and redoing the same thing over and over again, perhaps we could have determined that a bit sooner.
 

mervincm

Contributor
Joined
Mar 21, 2014
Messages
157
Start with a simple account, one that you use to map drives from your Windows system.
fullname / username can be your firstname, pick a password that is easy to type correctly and not embarasingly simple.
Leave everything else at defaults and you have yourself a decent start.
1663117107043.png

you now have an id and a group you can use for permissions


On your Windows system open your credentials manager, Windows credentials section, and delete any entries that you may have saved for your NAS by IP or by name.
1663117315375.png
 
Last edited:

StarTrek133

Contributor
Joined
Sep 5, 2022
Messages
112
Thanks Danb35 for the kind words .. maybe if someone had did what I asked and given me a simple list of instructions we could have figured out what the issue is .. I have repeatedly said that I am new to TrueNAS and Linux so making me feel like an idiot and that my questions are not welcome really makes me want to keep troubleshooting this ..

It the world of IT if's a new person or someone with 30 years under there belt you should never make them feel like less of a person ..
 

indivision

Guru
Joined
Jan 4, 2013
Messages
806
but regardless I still have to create a windows 11 virtual machine because I need that machine to run Plex and Shoko ..

You can run Plex as an app in TrueNAS. So, you don't need a VM for that.

Thanks Danb35 for the kind words .. maybe if someone had did what I asked and given me a simple list of instructions we could have figured out what the issue is ..

The list of simple instructions already exist in the docs in the link I posted. It wouldn't make sense for someone to repeat the same thing here.

I have offered to take a look at your settings to help figure out what is going on. We need something to work with.

I have repeatedly said that I am new to TrueNAS and Linux so making me feel like an idiot and that my questions are not welcome really makes me want to keep troubleshooting this ..

I don't think anyone has suggested questions aren't welcome. The problem seems to be that we have given specific instructions about what information we need to help you further. But, we haven't received that yet...
 

mervincm

Contributor
Joined
Mar 21, 2014
Messages
157
Thanks Danb35 for the kind words .. maybe if someone had did what I asked and given me a simple list of instructions we could have figured out what the issue is .. I have repeatedly said that I am new to TrueNAS and Linux so making me feel like an idiot and that my questions are not welcome really makes me want to keep troubleshooting this ..

It the world of IT if's a new person or someone with 30 years under there belt you should never make them feel like less of a person ..
I hear you ... you are frustrated ... I hope you also hear this as nothing more than frustration of folks who volunteer to help.
In the video you linked (the one you said you followed) the first thing he does (7:55) in the shares chapter is to make an SMB user account.
I think you can understand how it is disrespectful of volunteer's time when you say one thing and do another?

I watched the video and IMO he did a pretty good job, at least up to shares.

My advice to use the command line is preciisely to deal with issues that can arrise when using multiple simultaneous connections from one PC to one NAS. non obvious (but existing) connections and cached credentials are often confusing to new NAS users.
 

StarTrek133

Contributor
Joined
Sep 5, 2022
Messages
112
I tried again by following the link and still nothing .. Here are the pics .. I hope they help ..

 

Attachments

  • DataSet.jpg
    DataSet.jpg
    44.8 KB · Views: 151
  • Storage.jpg
    Storage.jpg
    58.1 KB · Views: 137
  • MP3 Share.jpg
    MP3 Share.jpg
    25.9 KB · Views: 135
  • New User.jpg
    New User.jpg
    50.6 KB · Views: 138
  • Premissions.jpg
    Premissions.jpg
    71 KB · Views: 139
  • Access Share.jpg
    Access Share.jpg
    96.9 KB · Views: 156

mervincm

Contributor
Joined
Mar 21, 2014
Messages
157
I noticed your id is Media / media. one has capital M and the other doesn't. Unlike Windows, Linux pays attention to capital letters in the ID. I am not an expert enough in truenas scale to know the precise impact of having that inconsistancy, but to make things simple, pick one or the other, and make sure to enter it correctly into Windows. My preference is just to make them all lower case.

Edit: I think you will be OK, fullname seems to be a description, and the username is the key one. as long as you user the lowercase version in Windows, you should be OK with this wrinkle.

Also you made the home directory /mnt/Data/Media. This is not what I showed in my example, or how it was done in the video. There are impacts ... complications of making something your home folder, and unless you understand them, it is best to keep things as they were suggested. I had issues with this at first, and eventually remade my IDs without home drives .. and it works for me.

Creativity in an area that you are still learning and have fundimental problems to resolve ... my preference is against that.
 
Last edited:

mervincm

Contributor
Joined
Mar 21, 2014
Messages
157
In Windows, is it fair to assume you typed in EXACTLY \\172.168.40.16\MP3? your old NAS named that share with a capital M small p 3. your new share was all caps MP3, so you must type in the correct case for your new share name.
 

woweee

Dabbler
Joined
Oct 1, 2015
Messages
13
I tried again by following the link and still nothing .. Here are the pics .. I hope they help ..

try this: at the SMB share permission, use ACL Preset, and give everyone full control. then back to your windows machine, you should be able to see your dataset as a shared folder without a password. ( by typing \\172.168.40.16). right-click the folder go to security, then add your NAS user. when you add your NAS user, you need to change the location to your NAS (172.168.40.16), click check name to make sure the user name it spelled correctly. it will update SMB ACL. after it is all done remove everyone from the folder security tab. hope those steps make sense to you. Basically, it gives NAS dataset full permission for everyone. and then you edit the ACL on the windows side.
 

ChrisRJ

Wizard
Joined
Oct 23, 2020
Messages
1,919
It the world of IT if's a new person or someone with 30 years under there belt you should never make them feel like less of a person ..
What I am writing here is not primarily meant as geared towards you, @StarTrek133, but more as a general comment. Situations like this, while not common, come up on a somewhat regular basis. Hence my spending time on this.

The way someone feels as a consequence of some communication is by definition determined by this receiving person, not the person sending the information. Now, there is content that is generally agreed-upon to be insulting etc. In such cases it is clear that the receiver is entitled to this kind of feeling. But there is also a grey area, where sensitivities are different. And I think that is what we are seeing here.

If someone feels attacked by a pretty direct statement about what they should have done better, from the perspective of the professional who is trying to help, that is primarily their problem. Unless, of course, some kind of insult was in the game. Could, in this case, the words have been chosen a bit less direct? Perhaps. But that's about it in my view. I honestly see no reason to be upset.

As @mervincm so aptly put it, not providing information that is required as per the forum rules (there is a very good reason for that!) or asked for in the thread, is disrespectful towards those that are asked for help. What some people probably don't realize is how much they would otherwise pay for the consulting they get here for free. If you want something for free, respecting the rules of those who provide it, and following their requests is nothing but the basic rules of courtesy.

Sorry for the off-topic, but this was important to me.
 

indivision

Guru
Joined
Jan 4, 2013
Messages
806
I tried again by following the link and still nothing .. Here are the pics .. I hope they help ..


Thank you for posting the screens.

Have you turned SMB on in the "System Settings > Services" section?

For simplicity, I would recommend working with Unix permissions instead of ACL.

Try this:

1. Go to "Storage"
2. Under the "Data" pool, click the 3 dots to open options for "Data". Select "Add Dataset". (Not "Add Zvol").
3. Name it "test". Don't change anything else. Click "Save".
4. Once "test" is created, click on its 3 dots to open options and select "View Permissions". Then click on the pencil in the permissions box to edit them.
5. You should see Unix style permissions options here. Not the ACL style permissions you posted a screen of. If you don't, stop here and let us know.
6. In the Unix permissions boxes, select every box. So, that is read, write, execute for every box.
7. Change the user and group to media.
8. Check "Apply permissions recursively". Select "Save".
9. Go to Shares page. Click "Add"
10. Point it to the "test" dataset.
11. Name it "test" and click "Save"
12. Open windows explorer. Right click "This PC" and select "Map Network Drive"
13. Enter "\\YOUR_SERVER_IP_ADDRESS\test" in the Folder field. Select "Connect using different credentials". Click "finish".
14. For user name enter "YOUR_SERVER_IP_ADDRESS\media" and password.

Report back what happens.

PS: Have you turned SMB on in the "System Settings > Services" section?
 
Last edited:

StarTrek133

Contributor
Joined
Sep 5, 2022
Messages
112
Still nothing .. Here are more screen shots ..

Man this is crazy .. why its so confusing and difficult ..
 

Attachments

  • Test DataSet.jpg
    Test DataSet.jpg
    43.8 KB · Views: 131
  • Test Premissions.jpg
    Test Premissions.jpg
    39.9 KB · Views: 131
  • Test Share.jpg
    Test Share.jpg
    27.1 KB · Views: 174
  • Test Mapped Drive.jpg
    Test Mapped Drive.jpg
    43.1 KB · Views: 136
  • Test Map User.jpg
    Test Map User.jpg
    42.1 KB · Views: 139
  • Test Error.jpg
    Test Error.jpg
    35.5 KB · Views: 143
  • Services.jpg
    Services.jpg
    72.6 KB · Views: 131

LarsR

Guru
Joined
Oct 23, 2020
Messages
719
in credentials you have to put the name of the user not the ip\share

so in the screen test map user.jpg first field is user name second field is password.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
media is a built-in user, under which a variety of services run. It doesn't have a password and can't log in. Create a user, set a password for that user, and use that username and password to connect.
 

StarTrek133

Contributor
Joined
Sep 5, 2022
Messages
112
Hey Danb35 ..

I just finished trying that .. I made a "test" user and left everything default and still same issue ..
 

Attachments

  • Test User Premissions.jpg
    Test User Premissions.jpg
    15 KB · Views: 126
  • Test User.jpg
    Test User.jpg
    44.4 KB · Views: 140
Top