How to change sftp-server options?

Status
Not open for further replies.

scottfreeze

Cadet
Joined
Oct 21, 2011
Messages
3
Hi,

Short version of my question: How do I add the -R (read-only) option to the sftp-server subsystem in a way that will persist through service restarts and/or system reboots?

Longer version: I'd like to add the -R (read only) option to the sftp-server subsystem options. From what I can tell, this change is typically made by editing the sshd_config file located in /etc/ssh. However, when I do that, the changes to the file revert upon restarting the FreeNAS SSH service. Then I read that changes made to the sshd_config file in /conf/base/etc/ssh might persist through a restart of the service (which they did), but when I made the change there, it didn't seem to take, as the sftp service is still read/write. Can anyone shed some light on what I need to do to enforce a solely read-only sftp environment?

Here is the reference I am following: FreeBSD sftp-server man page

Thanks in advance,
-Freeze
 
Status
Not open for further replies.
Top