Accessing from Windows machine - can't open from CMD line

kirkdickinson

Contributor
Joined
Jun 29, 2015
Messages
174
I recently set up a new TrueNAS machine. I have been using FreeNAS for a few years and that machine is still running along fine. Newer machine has the newest OS, newer hardware, and more storage. The new machine is not my main machine. Has been running for a couple months mostly just backing up stuff. I have started moving some stuff there to actively use it instead of just backing up to it. Yesterday I found something weird. I can browse to a JPG from windows explorer, click on it, and it opens in Photoshop like I expect. I do a lot of Photoshop action files and sometimes I need to open dozens of different photos. For years I have used a batch file to open the jpgs. What worked on my old FreeNAS machine will not work on the new TrueNAS machine. I get an error "access denied" and it won't open. Even browsing with command line to the file won't allow it to open. I am sure there are permission problems, but I don't completely understand how that all works and followed a tutorial when I set it up.

One other thing that I noticed. I keep a folder on the server for "Program Updates". I can't run them from the server, but have to copy the file to the workstation.

Attached is a screengrab. I can double click in Explorer and the file will open in Photoshop but access is denied from CMD (or batch file.)

Thanks,
Kirk
access-denied.jpg
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
You should look at the permissions for that directory.

Try getfacl Photos/2021 (from the TrueNAS CLI)
 

kirkdickinson

Contributor
Joined
Jun 29, 2015
Messages
174
You should look at the permissions for that directory.

Try getfacl Photos/2021 (from the TrueNAS CLI)

Thanks, but I am not versed in the command line enough to get to the proper place to run that. I can open the shell, but don't know how to change to the pool to run the command? When I open the shell, I am at a command line: root@TrueNAS1[~]

I can type zpool status and it reports my pool, but how to I change to the pool to even run the getfacl? My pool is named Texas-29-Z2

So far, I have just used FreeNAS and TrueNAS pretty much from the GUI and have been able to make it do what I needed. Now... Not so much. :(
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
but how to I change to the pool to even run the getfacl?
cd /mnt/Texas-29-Z2/Photos
ls -l
getfacl 2021

So far, I have just used FreeNAS and TrueNAS pretty much from the GUI and have been able to make it do what I needed
You can also look at the Edit ACL on the SMB share to see pretty much the same thing in the GUI... I was just playing CLI/shell back to you because you started with it.
 

kirkdickinson

Contributor
Joined
Jun 29, 2015
Messages
174
cd /mnt/Texas-29-Z2/Photos
ls -l
getfacl 2021


You can also look at the Edit ACL on the SMB share to see pretty much the same thing in the GUI... I was just playing CLI/shell back to you because you started with it.

Thank you very much for helping me here. I really like Free/TrueNAS. It has just worked without a lot of fiddling, so I never really delved in very deeply to figure this stuff out.

Looks like it has allow everything for permissions.
1611254782578.png

Here is what the SMB Share ACL shows:
1611254885596.png


I noticed that the CLI ways group wheel and the ACL says Everyone. Is this wrong?

Do I need to have something in the "Domain" setting??? There is a help bubble but I don't understand what it means.

1611255010035.png
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,702
Do I need to have something in the "Domain" setting??? There is a help bubble but I don't understand what it means.
As it says there, it's only needed when a SID isn't entered. You have one there, so it's fine.

One thing to note is that the owner is a user called Longhorn. Your Windows machine seems to be logged in as Kirk.

Did you have a user called Kirk on your old FreeNAS?
 

kirkdickinson

Contributor
Joined
Jun 29, 2015
Messages
174
As it says there, it's only needed when a SID isn't entered. You have one there, so it's fine.

One thing to note is that the owner is a user called Longhorn. Your Windows machine seems to be logged in as Kirk.

Did you have a user called Kirk on your old FreeNAS?

I am not logged in as Kirk. Where you saw that was the CMD from windows on my local windows machine. Neither of my Free/TrueNAS machines has a username of Kirk.

When I set up the link to the SMB share on these machines, I used the user name Longhorn.
1611338038152.png
 
Top