SOLVED Problem Accessing single SMB folder via SFTP

binarybcc

Dabbler
Joined
Mar 16, 2020
Messages
20
Running:
OS Version:
FreeNAS-11.3-U3.2
Model:
Super Server
Memory:
64 GiB

I've searched, but the items I see only carry me so far. Please advise.

The mission: Server in office; local PCs and Macs have SMB access to an SMBShare. Want remote user to have SFTP access to a folder that is also available to the local users via SMB. Currently Have (for sftp access: /mnt/egpool0/smbset/fcn/fcn setup as its own SMB dataset. fcn lives in an SMB dataset called share /mnt/egpool0/smbset/share/fcn. (see below)

Screen Shot 2020-06-17 at 9.59.00 AM.png


The local access works fine. I have setup the owner:group on the path to the sftp folder to be root:wheel and the last fcn folder is fcn:sftp (user:group)

When connecting via Cyberduck, this is the setup:
Screen Shot 2020-06-17 at 10.02.19 AM.png


And this is the error I get:
Screen Shot 2020-06-17 at 10.03.21 AM.png

Screen Shot 2020-06-17 at 10.10.22 AM.png


And here is my ssh setup
Screen Shot 2020-06-17 at 10.11.44 AM.png



ANd here is what I get if I remove the ChrootDirectory option

Screen Shot 2020-06-17 at 11.14.23 AM.png


I notice how the SMBSET does not show up.... hmm
 
Last edited:

binarybcc

Dabbler
Joined
Mar 16, 2020
Messages
20
Okay... Made some headway. Got the SMBset to show up in the sftp directory structure.

Then went to the fcn USER setup; it had home set to /nonexistent. I changed that to /mnt/egpool0/smbset/fcn/fcn

Then, after 40 billion tries of ChrootDirectory, I removed the ChrootDirectory option and went to my cyberduck bookmark and changed the bookmark to make the home the correct directory. This is fine. (fire burns around us).

It does work though
 
Top