SFTP within Jail

Urumiko

Dabbler
Joined
Jul 2, 2017
Messages
32
Hi,

I have a fresh install of TrueNAS-12.0-U5.1.

First off let me say I'm a complete newbie and if there is a plugin I can use to do this better I'm all ears.
I have a "Video" dataset that is shared on my local network, and also moulted to my plex jail without issue.

I want to be able to share this directory remotely via sftp to a friend using read only access.
I have created a jail mounting video to a folder /SHARE within the jail, and created a user in the jail called "mark"
I have made the home directory of this user the /SHARE solder.
I can connect to the sftp server no problem but it cannot read the directory listing.
Similarly find if I use putty to ssh to the server the 'ls' command fails, but if I "cd .." to the parent directory 'ls' works as expected.

ls works fine when I'm logged on to the jail as root.

Can anyone suggest how/where the permissions need fixing?
please note im not well versed in linux etc.

thanks.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Easiest way is to make the numerical UID and GID of the user "mark" the same as the user owning the /SHARE folder.
 

Urumiko

Dabbler
Joined
Jul 2, 2017
Messages
32
Easiest way is to make the numerical UID and GID of the user "mark" the same as the user owning the /SHARE folder.
Thanks.

I'm sure I can Google those operations when I get home. Just to be clear is that the user id and group ID in the jail OS itself? Then check the folder permissions again within the jail itself?

Thanks
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
No. The group and user id of the user itself. Which can be changed by e.g. the vipw command inside the jail.
 
Top